ValueError: X has 4 features, but LinearRegression is expecting 3 features as input.
Opened this issue · 3 comments
ManishaaP commented
nachi-hebbar commented
If your input has 4 attributes, you will have to retrain the model with 4 attributes. It wont directly work with my model which was trained on 3 attributes.
Hesham1000 commented
If your input has 4 attributes, you will have to retrain the model with 4 attributes. It wont directly work with my model which was trained on 3 attributes.
how?
Hesham1000 commented
If your input has 4 attributes, you will have to retrain the model with 4 attributes. It wont directly work with my model which was trained on 3 attributes.
i have 7 features but linear regression expect 12 can you help me ?