Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- preprocessor = ColumnTransformer([
- ('num_scale', StandardScaler(), numerical_features)],
- remainder='passthrough'
- )
- cbc_pipeline = Pipeline([
- ('preprocessor', preprocessor),
- ('classifier', CatBoostClassifier(random_state=STATE, cat_features=categorical_features, auto_class_weights='balanced', verbose=False))
- ])
- searcher = GridSearchCV(cbc_pipeline,
- param_grid={},
- scoring='f1',
- cv=2,
- n_jobs=-1,
- verbose=10)
- cv_model = searcher.fit(X_train, y_train)
- # конец текста ошибки
- File "/usr/local/lib/python3.10/dist-packages/catboost/core.py", line 277, in _get_features_indices
- raise CatBoostError("features parameter contains string value '{}' but feature names "
- _catboost.CatBoostError: features parameter contains string value 'language' but feature names for a dataset are not specified
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement