Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preprocessing.OneHotEncoder TypeError: __init__() got an unexpected keyword argument 'categories' #2

Open
xing2858 opened this issue Jun 14, 2019 · 0 comments

Comments

@xing2858
Copy link

您好 在pycharm上运行您的代码 其中独热编码这一段 要报错 没有category这个关键词 请问是什么原因呢
onehot_encoder = preprocessing.OneHotEncoder(sparse=False,categories=[range(labels_nums)])
TypeError: init() got an unexpected keyword argument 'categories'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant