How to assign weights to a set of features Linear regression
<p>I am making a machine learning program just with a simple linear regression. In the dataset, I have two types of features: 
   Low dimension features: e.g. word count, length, etc. 
   High dimension features: TFIDF features</p>

<p>I just to want to manually assign weights on different set of features. </p>

<p>I have been trying with pipleline featureunion (transformer_weights), but I find it is difficult to do so if I want to have a TFIDF feature built from a vocabulary created by both train and test data.</p>

<p>Could you please advice if there are any solution other than using pipeline? </p>

<p>Thanks a lot!</p>