美文网首页
sklearn.exceptions.NotFittedErro

sklearn.exceptions.NotFittedErro

作者: 逍遥_yjz | 来源:发表于2021-02-05 20:40 被阅读0次

报错:sklearn.exceptions.NotFittedError: This StandardScaler instance is not fitted yet. Call 'fit' with a
原因:
sklearn.exceptions.notfitte错误:尚未安装此StandardScaler实例。称“fit”
解决方法

ss_X = StandardScaler()  
ss_y = StandardScaler()
X_train = ss_X.fit_transform(X_train)            
X_test  = ss_X.transform(X_test)

相关文章

网友评论

      本文标题:sklearn.exceptions.NotFittedErro

      本文链接:https://www.haomeiwen.com/subject/mnvgtltx.html