Tutorial - continuous and categorical features need to be updated
The following line generates an error:
encoder = sklearn.preprocessing.OneHotEncoder(categorical_features=categorical_features)
TypeError Traceback (most recent call last)
in
----> 1 encoder = sklearn.preprocessing.OneHotEncoder(categorical_features=categorical_features)
2 # encoder = sklearn.preprocessing.OneHotEncoder(categorical_features)
~/anaconda3/lib/python3.7/site-packages/sklearn/utils/validation.py in inner_f(*args, **kwargs)
70 FutureWarning)
71 kwargs.update({k: arg for k, arg in zip(sig.parameters, args)})
---> 72 return f(**kwargs)
73 return inner_f
74
TypeError: __init__() got an unexpected keyword argument 'categorical_features'
This seems like an issue with SKLearn OneHotEncoder being changed
Tutorial - continuous and categorical features need to be updated The following line generates an error: encoder = sklearn.preprocessing.OneHotEncoder(categorical_features=categorical_features)
TypeError Traceback (most recent call last)