您当前的位置: 首页 >  ar
  • 0浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决sklearn.exceptions.NotFittedError: This StandardScaler instance is not fitted yet. Call ‘fit‘ wi

一个处女座的程序猿 发布时间:2020-09-04 22:28:49 ,浏览量:0

成功解决sklearn.exceptions.NotFittedError: This StandardScaler instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator.

 

 

 

目录

解决问题

解决思路

解决方法

 

 

 

解决问题

sklearn.exceptions.NotFittedError: This StandardScaler instance is not fitted yet. Call 'fit' with appropriate arguments before using this estimator.

 

 

 

解决思路

sklearn异常未装配错误:此StandardScaler实例尚未装配。在使用这个估计器之前,使用适当的参数调用“fit”。

 

 

解决方法
ss_X = StandardScaler()  
ss_y = StandardScaler()
X_train = ss_X.fit_transform(X_train)            
X_test  = ss_X.transform(X_test)

 

 

 

 

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0458s