Questions tagged [catboostregressor]
40 questions
7
votes
2 answers
Usage of class_weights in catboostclassifier
How to use 'class_weights' while using CatboostClassifier for Multiclass problem. The documentation says it should be a list but In what order do I need to put the weights? I have a label array with 15 classes from -2 to +2 including decimal…

Avinash Shrivastava
- 71
- 1
- 1
- 3
4
votes
1 answer
Fitting linear function at leaves of a CatBoost model
Is there an equivalent to the linear_tree function in LightGBM in the CatBoost library? I would like to use a linear function at the leaves instead of a constant.

user308827
- 21,227
- 87
- 254
- 417
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
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
2
votes
0 answers
Custom Logger Error when using CatBoostRegressor in Sequential Feature Selector
I've run the following code using the CatBoostClassifier in other notebooks. However, when I repeat the same process with the same parameters using the CatBoostRegressor, I get an error about the Custom Logger. Any help would be appreciated.
from…

DataScience_FTW
- 31
- 4
2
votes
1 answer
Loading data into Catboost Pool object
I'm training a Catboost model and using a Pool object as following:
pool = Pool(data=x_train, label=y_train, cat_features=cat_cols)
eval_set = Pool(data=x_validation, label=y_validation['Label'], cat_features=cat_cols)
model.fit(pool,…

nofar mishraki
- 526
- 1
- 4
- 15
2
votes
1 answer
CatBoostError for Unknown class name
When I run the code below, the following error appears:
CatBoostError: c:/goagent/pipelines/buildmaster/catboost.git/catboost/libs/target/target_converter.cpp:64: Unknown class name: "219.9033"
My Code:
model=CatBoostRegressor(iterations=1000,
…

mongotop
- 7,114
- 14
- 51
- 76
1
vote
0 answers
Tuning underfit catboost regressor model with fixed training set
I'm currently using CatboostRegressor(iterations=500, random_seed=123, cat_features=['month_number', 'day_of_week', 'year']) for developing a 1-year predictive model at a daily level. The predictor variables are time feature date, categorical…

user177196
- 738
- 1
- 8
- 16
1
vote
0 answers
Categorical features with Catboost Spark
I am currently coding with catboost_spark version 1.0.3.
When I try to run a regression I get this error message:
Internal CatBoost Error (contact developers for assistance): attempt to interpret non-binary feature as binary
My code looks like…

CorenDataDev
- 11
- 2
1
vote
0 answers
ERROR: No matching distribution found for catboost on ARM64 architecture
I am trying to build a multi-architecture image for ARM64 using buildx command. I am using python:3.8-slim as a base image and trying to install catboost using pip, but I am getting the following error.
ERROR
ERROR: Could not find a version that…

Mayank Tomar
- 49
- 3
1
vote
1 answer
What is the scale of the leaf values in a CatBoostRegressor tree?
The puzzle
I can't interpret the values in the leaves of a CatBoostRegressor tree. The fitted model correctly captures the logic of the dataset, but the scale of the values when I graph a tree doesn't match the scale of the actual dataset.
In this…

A. S. K.
- 2,504
- 13
- 22
1
vote
1 answer
What Kind of Dataset can CatboostRegressor receive?
I have been trying my hands on a code project I found interest in. My dataset is from the forex market with 10 features, over 70000 attributes and has been split into a train and test set already but my CatboostRegressor keeps giving this error.…

Kay Ntows
- 11
- 1
1
vote
2 answers
Understanding CatBoost ordered boosting
in the video
Anna Veronika Dorogush - CatBoost - the new generation of Gradient Boosting
she talks in minute 15:30 about "objects". What exactly does she mean? Features? Columns? Rows?
And what exactly is the difference between classical and ordered…

Kamel
- 141
- 1
- 9
1
vote
1 answer
Catboost - Unexpected behavior in the java api
I'm training a toy model in python, saving the model binary to disk, and then loading it into java (kotlin) and evaluating. My predictions don't agree between python and kotlin. Anyone know what I'm doing wrong?
import catboost as cb
import pandas…

qua
- 972
- 1
- 8
- 22
1
vote
0 answers
Why does CatBoost Regressor output negative prediction interval?
I am trying to produce prediction intervals with CatBoostRegressor using Quantile Regression. As far as i know prediction intervals can't be negative. However, following code produces (some) negative intervals:
data =…

royalts94
- 11
- 1