TypeError Traceback (most recent call last)
Cell In[90], line 3
1 #%pip install -r requirements.txt
2 import lazypredict
—-> 3 from lazypredict.Supervised import LazyClassifier
File c:Usersw23052945AppDataLocalanaconda3Libsite-packageslazypredictSupervised.py:98
89 # CLASSIFIERS.append((‘CatBoostClassifier’,catboost.CatBoostClassifier))
91 numeric_transformer = Pipeline(
92 steps=[(“imputer”, SimpleImputer(strategy=”mean”)), (“scaler”, StandardScaler())]
93 )
95 categorical_transformer_low = Pipeline(
96 steps=[
97 (“imputer”, SimpleImputer(strategy=”constant”, fill_value=”missing”)),
—> 98 (“encoding”, OneHotEncoder(handle_unknown=”ignore”, sparse=False)),
99 ]
100 )
102 categorical_transformer_high = Pipeline(
103 steps=[
104 (“imputer”, SimpleImputer(strategy=”constant”, fill_value=”missing”)),
(…)
107 ]
108 )
111 # Helper function
TypeError: OneHotEncoder.init() got an unexpected keyword argument ‘sparse’
import lazypredict
from lazypredict.Supervised import LazyClassifier
Henry Kabuye is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.