add_feature_weights function

Add feature weights