Skip to content
This repository has been archived by the owner on Aug 9, 2021. It is now read-only.

第二章 CategoricalEncoder代码小错误 #88

Open
racg4869 opened this issue Aug 1, 2018 · 0 comments
Open

第二章 CategoricalEncoder代码小错误 #88

racg4869 opened this issue Aug 1, 2018 · 0 comments

Comments

@racg4869
Copy link

racg4869 commented Aug 1, 2018

if self.encoding not in ['onehot', 'onehot-dense', 'ordinal']:
template = ("encoding should be either 'onehot', 'onehot-dense' "
"or 'ordinal', got %s")
raise ValueError(template % self.handle_unknown)

中的self.handle_unknow 应该是self.encoding

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

No branches or pull requests

1 participant