---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
Cell In[65], line 2
1 # catboost Classifier Model
----> 2 from catboost import CatBoostClassifier
4 # instantiate the model
5 cat = CatBoostClassifier(learning_rate = 0.1, verbose=0)
File c:\Users\Asus\AppData\Local\Programs\Python\Python312\Lib\site-packages\catboost\__init__.py:1
----> 1 from .core import (
2 FeaturesData, EFstrType, EShapCalcType, EFeaturesSelectionAlgorithm, EFeaturesSelectionGrouping,
3 Pool, CatBoost, CatBoostClassifier, CatBoostRegressor, CatBoostRanker, CatBoostError, cv, sample_gaussian_process, train,
4 sum_models, _have_equal_features, to_regressor, to_classifier, to_ranker, MultiRegressionCustomMetric,
5 MultiRegressionCustomObjective, MultiTargetCustomMetric, MultiTargetCustomObjective
6 ) # noqa
7 from .version import VERSION as __version__ # noqa
8 __all__ = [
9 'FeaturesData', 'EFstrType', 'EShapCalcType', 'EFeaturesSelectionAlgorithm', 'EFeaturesSelectionGrouping',
10 'Pool', 'CatBoost', 'CatBoostClassifier', 'CatBoostRegressor', 'CatBoostRanker', 'CatboostError',
(...)
13 'MultiTargetCustomMetric', 'MultiTargetCustomObjective'
14 ]
File c:\Users\Asus\AppData\Local\Programs\Python\Python312\Lib\site-packages\catboost\core.py:45
40 pass
...
9 def try_plot_offline(figs):
File _catboost.pyx:1, in init _catboost()
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
# Output is truncated. View as a scrollable element or open in a text editor. Adjust cell output settings...
# catboost Classifier Model
from catboost import CatBoostClassifier
# instantiate the model
cat = CatBoostClassifier(learning_rate = 0.1, verbose=0)
# fit the model
cat.fit(X_train,y_train)
Подробнее здесь: https://stackoverflow.com/questions/787 ... boost-modu