Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

UserWarning: X does not have valid feature names, but LinearRegression was fitted with feature names

model_reg.fit(scaled_x_train.values, y_train[vp].values)
data_pred = model_reg.predict(scaled_x_test.values)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #X #valid #feature #LinearRegression #fitted #feature #names
ADD COMMENT
Topic
Name
3+5 =