Changing parameter 'learning_rate' for CatBoostRegressor

Is there any possibility to change (decrease) parameter 'learning rate', a gradient step coefficient, during training the model CatBoostRegressor() ? It would reduce the iterations number and...

Can CatBoost be installed in a Conda environment?

Does Yandex support Anaconda environments? I'm trying to get CatBoost working in PyCharm using an Anaconda environment as Python interpreter, but I continue to get the ModuleNotFoundError: No...

Typeerror with VotingClassifier

I want to use VotingClassifier, but I have some problems with cross validating x_train, x_validation, y_train, y_validation = train_test_split(x, y, test_size=.22, random_state=2) x_train...

What is the intuition behind symmetric trees in catboost algorithm?

I have been going through the catboost algorithm and it is hard for me to see the point of using symmetric trees. On this regard, i found in their github: An important part of the algorithm is...

CatBoost precision imbalanced classes

I use a CatBoostClassifier and my classes are highly imbalanced. I applied a scale_pos_weight parameter to account for that. While training with an evaluation dataset (test) CatBoost shows a high...

Why does pip install not work for catboost?

I have to install catboost but can not make it by pip install catboost. There is not catboost library in Anaconda, so pip in the one way. The error message is: Could not find a version that...

Measuring AUPRC in CatBoost

I want to measure area under the curve of precision-recall curve (AUPRC) in catboost, but the CatBoostClassifier, doesn not have AUPRC as an evaluation metric.Any suggestion that helps me to...

shap.force_plot() raises Exeption: In v0.20 force_plot now requires the base value as the first parameter

I'm using Catboost and would like to visualize shap_values: from catboost import CatBoostClassifier model = CatBoostClassifier(iterations=300) model.fit(X, y,cat_features=cat_features) pool1 =...

TypeError: __init__() got an unexpected keyword argument 'early_stopping_rounds' for CatBoost in Python

I get this error when I try to run a CatBoost algorithm. It is one of the parameters so I don't understand why this error occurs when I comment out early_stopping_rounds I get the same error for...

Multiclass multilabel classification in CatBoost

I need to perform a multiclass multilabel classification with CatBoost. Example data: X = [[1, 2, 3, 4], [2, 3, 5, 1], [4, 5, 1, 3]] y = [[3, 1], [2, 8], [7, 8]] Could you provide a working...

How to conduct catboost grid search using GPU in R?

I'm setting up a grid search using the catboost package in R. Following the catboost documentation (https://catboost.ai/docs/), the grid search for hyperparameter tuning can be conducted using...

Python Catboost: Multiclass F1 score custom metric

How do you find the F1-score for each class of a multiclass Catboost Classifier? I've already read through the documentation and the github repo where someone asks the same question. However, I am...

Plot Learning Curve of CatBoostClassifier with Yellowbrick

I'm trying to plot a learning curve for the CatBoostClassifier. The error occurs when I fit the CatBoostClassifier into LearningCurve from yellowbrick. I think this should work since CatBoost is...

cat boost Feature has 'Categorical type in training data but 'Float' type in test dataset

I am working with catboostclassifier, and I have a training dataset and a validation dataset. Each dataset have the same 5 columns, and there is one column named 'colC' that is categorical (column...

Catboost: Why is multiclass classification internally transforming to regression/single class classification problem

While using a custom loss function in a multi class classification, I am getting an error that my custom objective function is not having calc_ders_range attribute. However, as per my discussion...

TypeError: can't pickle _thread.RLock objects when adding a Neural Network to an Stacking Ensemble

I am currently trying to build a stacking ensemble that consists of both "standard models" and a neural network. The ensemble contains Random Forest, XGBoost, SVM and Catboost. But as soon as I...

Error while creating Catboost Pools for Ranking Model

I am trying to build a ranking model using Catboost library. I am getting the below error while creating a Pool on my training set. CatBoostError: catboost/private/libs/data_types/query.cpp:25:...

How can I get the feature importance of a CatBoost in a pandas dataframe?

So I was running a Catboost model using Python, which was pretty simple, basically: from catboost import CatBoostClassifier, Pool, cv catboost_model = CatBoostClassifier( ...

Early stopping with Pycaret? Overfitting with Catboost and XGBoost

I'm comparing the performance of Catboost, XGBoost and LinearRegression in Pycaret. Catboost and XGBoost are untuned. So far I see that Catboost and XGBoost are overfitting. For linear regression...

What is Pool in Catboost?When to use Pool instead of numpy array?

I use this code to test CatBoostClassifier. import numpy as np from catboost import CatBoostClassifier, Pool # initialize data train_data = np.random.randint(0, 100, size=(100, 10)) train_labels...

How to convert logit shap values to probability

I've been trying to convert shap values with the logit link to probabilities for all my features in a dataset. The model_output ='probability' parameter doesn't work for my catboost model. I want...

Optuna catboost pruning

is there a way to have pruning with CatBoost and Optuna (in LightGBM it's easy but in Catboost I can't find any hint). My code is like this def objective(trial): param = { ...

NotFittedError: All estimators failed to fit while using CatBoostClassifier with GridSearchCV

I am trying to use GridSearchCV with CatBoostClassifier for multiclass (3), and am getting error. The code seems to work OK in this Kaggle notebook. The estimator also works successfully without...

Error in LightGBM algorithm using tidymodels and treesnip package

I want to try the LightGBM algorithm using tidymodels and treesnip package. Some preproccessing... # remotes::install_github("curso-r/treesnip") # install.packages("titanic") ...

CatBoost on GPU provides much worse performance than on CPU

We are testing CatBoost on both CPU and GPU. While it runs much faster on GPU than on CPU, the results we are getting are so much worse and we are using the same data. I am talking around 50%...

CatBoost -- suppressing iteration results in a grid search

I am trying to use CatBoost Classifier. Using it I do perform a grid search using randomised_search() method. Unfortunately, the method prints to stdout iteration results for each tree built for...

Python AWS Lambda Error "libgomp.so.1: cannot open shared object file: No such file or directory" from AWS EFS file system mounted on Ubuntu

I have an AWS lambda function connected to an AWS EFS mounted on a EC2 instance of Ubunutu 18. I am getting this error below when importing a LightGBM model i believe. { "errorMessage":...

__init__() got an unexpected keyword argument 'iid'

I am trying to use BayesSearchCV but I got an unexpected error. I don't use iid parameter but the error keeps saying __init__() got an unexpected keyword argument 'iid'. I will share my code...

VS code showing Error: Session cannot generate requests after every use of catboost with gpu

I have been trying to use my Nvidia Geforce GTX 1650 GPU for training catboost regressor. It worked well but after finish training, it kills the kernel and needs to restart the vs code Here is...

Unable to tune hyperparameters for CatBoostRegressor

I am trying to fit a CatBoostRegressor to my model. When I perform K fold CV for the baseline model everything works fine. But when I use Optuna for hyperparameter tuning, it does something really...