简体   繁体   English

我正在尝试标准化我的属性,但由于 Python 找不到它而出现标准缩放器错误

[英]I'm trying to standardize my attribute but I'm getting standard scaler error because Python can not find it

I'm trying to use a standard scaler but Python could not find, here is the error:我正在尝试使用标准缩放器,但 Python 找不到,这是错误:

z_scaler = Standardscaler() 
 
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
<ipython-input-13-09f39beade2e> in <module>
----> 1 z_scaler = Standardscaler()

NameError: name 'Standardscaler' is not defined

Is there any particular package I need for Standard Scaler? Standard Scaler 是否需要任何特定的包?

您正在寻找StandardScaler ,而不是Standardscaler

from sklearn.preprocessing import StandardScaler

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 即使我使用opencv-contrib-python更新了opencv之后,我仍然遇到属性错误 - i'm getting attribute error even after i updated my opencv using opencv-contrib-python 尝试使用python附魔,但出现属性错误 - Attempting to use python Enchant but I'm getting an Attribute Error 为什么我得到 object has no attribute error in python tkinter - Why I'm getting object has no attribute error in python tkinter 找不到我正在使用Python ElementTree查找的属性 - Can't find the attribute I'm looking for using Python ElementTree 尝试使用Selenium 2与Python绑定,但我收到导入错误 - Trying to use Selenium 2 with Python bindings, but I'm getting an import error 我正在尝试使用此 python 代码创建 wordcloud,但不断出现错误 - I'm trying to create a wordcloud with this python code, but keeps getting error 我正在尝试使用 sqlalchemy 连接到我机器上的 SQL Express 服务器,但出现错误 - I'm trying to connect to a SQL Express Server on my machine using sqlalchemy but I'm getting an error 谁能告诉我为什么我收到错误 [AttributeError: 'list' object has no attribute 'encode'] - Can anyone tell my why I'm getting the error [AttributeError: 'list' object has no attribute 'encode'] 不知道为什么我得到这个属性错误 - Not sure why I'm getting this attribute error 我正在尝试在 python 中使用 HTML img 标签发送邮件,但出现以下错误 - I'm trying to use HTML img tag in python to send a mail, but I'm getting the following error
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM