6
$\begingroup$

I'm pretty new to machine learning and I have a question regarding weighting features.

I was able to get code running with scikit-learn and random forest. Now I would like to weight certain features higher to give them more importance. The data ranges anywhere from T/F to dollar amounts. Can someone point me in a good direction for this? I haven't been very successful finding examples to use.

$\endgroup$
2
  • $\begingroup$ Can you provide more information here? I'm not sure if this will be answerable at present. $\endgroup$ Commented Mar 29, 2017 at 19:24
  • 1
    $\begingroup$ Do you want to reweight the importance of predictive features, or predicted? $\endgroup$ Commented Mar 30, 2017 at 0:47

1 Answer 1

7
$\begingroup$

Generally, it's not a great idea to try to meddle with feature weights - RF (and machine learning algorithms in general) works out the importance of features by itself.

See also: https://stackoverflow.com/questions/38034702/how-to-put-more-weight-on-certain-features-in-machine-learning

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.