Quantcast
Channel: Active questions tagged python - Stack Overflow
Viewing all articles
Browse latest Browse all 23247

TypeError in imblearn pipeline: type 'Pipeline' is not subscriptable

$
0
0
transform = [("ord", OrdinalEncoder(), ['job', 'education']),             ("ohe", OneHotEncoder(), ['contact', 'month', 'poutcome'])]ct = ColumnTransformer(transform, remainder='passthrough')p = imbpipeline[('ct', ct),                ('scaler', StandardScaler()),                ('smote', SMOTE(random_state=0)),                ('xgb', XGBClassifier())]

While trying to run the above I am getting error

"TypeError: type 'Pipeline' is not subscriptable"

Viewing all articles
Browse latest Browse all 23247

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>