Scikit-learn: getting same result on all rows when reusing the model

I believe you need to call sc.transform on X1 as well. Otherwise, the scale of the features would be off, and the predictions become erroneous too.

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top