如何使用inverse_transform缩小目标变量

问题描述

我在预测之前使用StandardScaler()缩放了我的数据。现在,我只想缩小预测值(使用inverse_transform),但我无法这样做,因为它希望看到4个变量,而我只想缩小预测的目标值。我该怎么办?

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

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)