Solved – Scikit-Learn – Adding Weights to Features

machine learningpythonscikit learnweighted-data

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.

Best Answer

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

Related Question