apachecn/hands-on-ml-zh

第二章 CategoricalEncoder代码小错误

racg4869 opened this issue · 0 comments

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