Изменения
CatBoost
,→Пример использования
== Пример использования ==
X_train, X_validation, y_train, y_validation = train_test_split(X, y, train_size=0.5, random_state=1234)
print(X_train.shape, X_validation.shape)
from catboost import CatBoostClassifier
)
best_model.fit(
X_train, y_train,
)
print ('Resulting tree count:', best_model.tree_count_)
''Resulting tree count: 217''