scikit-learn: how to scale back the 'y' predicted result scikit-learn: how to scale back the 'y' predicted result python python

scikit-learn: how to scale back the 'y' predicted result


You can use inverse_transform using your scalery object:

y_new_inverse = scalery.inverse_transform(y_new)


Bit late to the game: Just don't scale your y. With scaling y you actually loose your units. The regression or loss optimization is actually determined by the relative differences between the features. BTW for house prices (or any other monetary value) it is common practice to take the logarithm. Then you obviously need to do an numpy.exp() to get back to the actual dollars/euros/yens...