How to scale back target variable using inverse_transform

218 views Asked by At

I used StandardScaler() to scale my data before predictions . Now I want to scale back only the predicted values (using inverse_transform) but im unable to do so because it expects to see 4 variables whereas I only want to scale back the target value from my predictions. How can I do this?

#Error when i try to transform y_pred and y_test
operands could not be broadcast together with shapes (52,) (4,) (52,) 
0

There are 0 answers