CatBoost is an open-source gradient boosting on decision trees library with categorical features support out of the box for Python, R
Questions tagged [catboost]
344 questions
4
votes
1 answer
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 unable to figure out the codesmithing to achieve…

user2205916
- 3,196
- 11
- 54
- 82
4
votes
1 answer
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 example?
I suppose I'd need to wrap the…

user1234
- 41
- 1
- 4
4
votes
2 answers
Catboost: how do I pass cat_features to a saved model in Python?
I have this pre-trained saved model, where I informed my categorical features, and it's working fine if I predict right after training. Now I wanna use it again in another context but I don't know how to properly inform the categorical features. I…

Marcus
- 41
- 4
4
votes
2 answers
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 measure this performance metric will be appreciated.
This…

amiref
- 3,181
- 7
- 38
- 62
4
votes
4 answers
ImportError: No module named '_catboost'
I am using python 3.4 and have installed catboost library but when i try to import, it shows the following error.
ImportError Traceback (most recent call last)
c:\python34\lib\site-packages\catboost\core.py in…

suryansh pandey
- 41
- 1
- 1
- 2
4
votes
3 answers
Categorical variables with large amounts of categories in XGBoost/CatBoost
I have a question regarding random forests. Imagine that I have data on users interacting with items. The number of items is large, around 10 000. My output of the random forest should be the items that the user is likely to interact with (like a…

digestivee
- 690
- 1
- 8
- 16
4
votes
1 answer
IPython ImportError: cannot import name Layout
I'm trying CatBoost based on this article
In it's code, CatBoost has plot in model.fit(), so I want to try it on my IPython.
Here's my CatBoost code:
from catboost import CatBoostRegressor
# indicate categorical features for…

Cherry Wu
- 3,844
- 9
- 43
- 63
4
votes
2 answers
How to export CatBoost model to text for future parsing to if-else decision tree?
I'm currently using new CatBoost algorithm (python version) and trying to export my model to txt file to transfer my model to C/Java implementation.
Looking into documentation I have only found save_model method which is only accept two formats of…

pavko_a
- 507
- 4
- 16
3
votes
0 answers
How to fit Sklearn Pipeline on Catboost Classifier with Embedding features
I have a Catboost Classifier that predicts on some embedding features, and AFAIK these embedding features can only be specified through Pools (meaning I have to create a pool and then pass the pool for the Catboost classifier's .fit method in order…

Edouard Malet
- 51
- 1
3
votes
1 answer
Predicting probabilities in CatBoost regressor
Does CatBoost regressor have a method to predict the probabilities of each prediction? I see one for CatBoost classifier (https://catboost.ai/en/docs/concepts/python-reference_catboostclassifier_predict_proba) but not for regressor.

user308827
- 21,227
- 87
- 254
- 417
3
votes
1 answer
How to feed text features into catboost model.predict
I am trying to use CatBoost for an NLP multiclass classification problem, trying to classify sentences based upon their labels.
This is fine for the training of the model by using the text_features parameter in the model fit:
model.fit(x_train,…

geds133
- 1,503
- 5
- 20
- 52
3
votes
0 answers
Quantile Regression For Multiple Targets Simultaneously
I am able to fit several targets using the MultiRMSE loss function, but I'm not sure how to estimate uncertainty for multiple targets. How can one perform quantile regression for multiple targets?

jlopezNEU
- 31
- 2
3
votes
1 answer
How do I know the order of the classes in a CatBoost classifier weights?
This is a pretty dumb question, but I couldn't find anywhere, so I will take my chances in here...
I'm building a classifier using CatBoost. Since this is a NLP problem, my features are the words/tokens in the tweet and the target is the…

Yuxxxxxx
- 203
- 1
- 5
3
votes
1 answer
Passing a Go slice of float32 to CGo as a C float[]
I'm trying to use catboost to predict for one array of floats.
In the documentation for CalcModelPredictionSingle it takes as param "floatFeatures - array of float…

Gargameli
- 85
- 1
- 2
- 8
3
votes
0 answers
catboost data visualization is not displayed
I'm trying to use the data visualization feature in catboost - the one that visualizes training vs validation error (learning curve):
model.fit(X_train, y_train,cat_features=categorical_features_indices,eval_set=(X_val,…

AnnaMos
- 31
- 4