Questions tagged [catboost]

CatBoost is an open-source gradient boosting on decision trees library with categorical features support out of the box for Python, R

Filter by
Sorted by
Tagged with
0 votes
0 answers
20 views

What is the purpose of showing the learning rate for CatBoost?

I'm using a multiclass classifier CatBoost model for the first time. When I fit my CatBoost model, it goes through multiple iterations (1000 in this case) each with its own learning rate. However, ...
1 vote
1 answer
45 views

deploy catboost model shinyapps.io

I have a shiny app that I'm trying to deploy on the https://shinyapps.io page, however the app uses the catboost package. Which can be installed in R as indicated in https://catboost.ai/en/docs/...
  • 2,094
0 votes
1 answer
22 views

catboost model can not be read anymore in onnxruntime

I am new to using onnxruntime and am using my friend's old code to evaluate some data on the torch and catboost binary classification models in C++. The code was working nicely with onnxruntime v1.6.0 ...
  • 166
0 votes
0 answers
4 views

Is the Current Training Iteration Count available in the custom loss function of Catboost?

I would like to change the gradient returned by the custom loss function based on the current training iteration (i.e. the tree index). I used a custom loss function presented in the examples that can ...
  • 1
-2 votes
0 answers
16 views

Converting a neural embedding into a form that is friendly for Tree-based models

Problem Statement Sentence classification models are often end-to-end where a classification layer is added on top of a pre-trained language model e.g. BERT+MLP. However, in my case, I am constrained ...
0 votes
0 answers
25 views

Trying to use CatBoostClassifier, but it doesn't see cat_cols nevertheless parameters

I'm trying to apply gradient descent on my data and then evaluate model with ROC_AUC method. Previously I've tried Logistic Regression and it worked perfectly fine, but Gradient Descent model somehow ...
0 votes
0 answers
13 views

Does Optuna makes use of Catboost Logging information?

I am training a Catboost model while keeping the logging information as silent, which means that it won't save any information regarding model metric. I want to make sure that does Optuna uses this ...
  • 493
-1 votes
1 answer
132 views

ImportError: cannot import name 'Sequence' from 'collections'

I'm trying to build a machine learning model and when I import the catboost I get an error when I run: from catboost import CatBoostRegressor I get: ImportError: cannot import name 'Sequence' from '...
1 vote
0 answers
52 views

Java issues when training a Catboost model in pyspark (Databricks environment)

I am trying to fit a CatBoostClassifier in my data but I'm having some issues related with Java staff. This is what I want to run: from pyspark.sql import Row,SparkSession from pyspark.ml.linalg ...
  • 11
0 votes
0 answers
29 views

I need to understand the following error: "CatBoostError: The left argument is not fitted, only fitted models could be compared."

I am trying to run a RandomizedSearchCV on various classification models through "For" loop for Hyperparameter tuning. There is no issue with running any other models except CatBoost. Also ...
0 votes
1 answer
180 views

Why does pip install not work for catboost? Problem with python distribution

I have to install catboost but can not make it by pip install catboost. Pip sad 'No matching distribution found for catboost' but that is not as i think. I read this question Why does pip install not ...
0 votes
1 answer
50 views

Squared Error Relevance Area (SERA) implementation in Python as custom evaluation metric

I'm facing an imbalanced regression problem and I've already tried several ways to solve this problem. Eventually I came a cross this new metric called SERA (Squared Error Relevance Area) as a custom ...
0 votes
0 answers
28 views

Troubles installing catboost in R

I keep getting the error message: Warning in file(con, "r") : cannot open file 'C:PROGRA~1RR-42~1.2/share/Rd/macros/system.Rd': No such file or directory Error in file(con, "r&...
  • 2,297
1 vote
0 answers
24 views

Can anyone explain about "Formula Value" of v1 ,v2 ​ in PredictionValuesChange of Feature importance in CatBoost? what is Formula Value?

what is Formula Value? --> "Formula Value" of v1 ,v2 ​ in PredictionValuesChange of Feature importance in CatBoost? to find out what meaning of Formula Value ? calculate from what ...
0 votes
1 answer
34 views

BentoML - Seving a CatBoostClassifier with cat_features

I am trying to create a BentoML service for a CatBoostClassifier model that was trained using a column as a categorical feature. If i save the model and I try to make some predictions with the saved ...
0 votes
0 answers
37 views

Does Catboost One Hot Encodes the Categorical Variables?

My question is split in to two parts the first part is that I want to understand how Catboost handles categorical variables does it One Hot Encodes them or not? If not than what technique is applied ...
  • 493
0 votes
1 answer
121 views

Understand shap values for binary classification

I have trained my imbalanced dataset (binary classification) using CatboostClassifer. Now, I am trying to interpret the model using the SHAP library. Below is the code to fit the model and calculate ...
0 votes
0 answers
106 views

How to calculate 'predict_proba' manually (Catboost)?

I train the model using Catboost and get the output probabilities (between 0 and 1) as per the below (where X_train are the input predictors): output = model.predict_proba(X_train)[:,1] However, I am ...
  • 829
0 votes
0 answers
103 views

Getting import error while loading CatBoostClassifier

installed catboost and ipywidgets still getting import error: cannot import name 'Iterable' from 'collections' from catboost import CatBoostClassifire -------------------------------------------------...
0 votes
0 answers
18 views

How catboost overfitting detector works with multiple eval datasets?

Catboost model can use several eval_sets for detecting overfit. But how overfitting-detector works when multiple datasets are passed? Read docs, googled it. I thought I'd find something, but I didn't.....
2 votes
1 answer
77 views

How to build Catboost C Evaluation Library API?

I had to use a Catboost model in some programming languages, Golang and Python. The best option (for performance and compatibility) is to use an evaluation library which can be a C or C++ API. I ...
0 votes
0 answers
69 views

Applying GridSearch on Catboost Regressor with Categorical Variables

I have a Catboost regressor with some input features that are categorical. I've passed them to the model using code below. cb = CatBoostRegressor( iterations=400, ...
  • 493
-2 votes
1 answer
71 views

L1 regularization in catboost

I want use l1 regularization with catboost to remove some irrelevant features and avoid over fitting. But I cannot find out how to use it. It seems to me there isn’t l1? Please help me. Thank you. ...
  • 1
0 votes
0 answers
62 views

Continue training CatBoostRanker model

Is it possible to continue training a CatBoostRanker model? The function train has a parameter named init_model but doesn't accept type CatBoostRanker.
-1 votes
1 answer
32 views

Get dependant probabilities in multiclassification

After training my CatBoostClassifier model I call get_proba function which returns me list of probabilities. The problem starts from an another point... I transfer that data into dataframe then to ...
0 votes
0 answers
62 views

Change class weights and classification threshold to deal with unbalanced dataset

i'm working on my thesis and i used a Catboost classifier to perform a binary analysis on a very unbalanced dataset: class0 = x number of samples class1 = 10*x number of samples In order to optimize ...
1 vote
1 answer
77 views

Catboost at Vertex AI endpoint prediction error : ValueError: Unable to coerce value

I built and deployed a CatBoost regressor model on Vertex AI and I am trying to make some predictions using Vertex AI python SDK. Here's my code: sample = [[2.0200e+03, 4.5000e+01, -2.6090e+01, -2....
0 votes
1 answer
112 views

Docker run exits when running an amd64/python image

I am very elementary at Docker and I know a few commands to test my tasks. I have built a Docker image for 64-bit python because I had to install CatBoost in it. My dockerfile looks like this: FROM ...
  • 129
0 votes
0 answers
51 views

Getting error while implementing LIME with Catboost

I am trying to learn how to implement LIME library on categorical features. For that I am trying to replicate a Git notebook on my data set. However I am facing an error for which the same function ...
  • 13
0 votes
0 answers
237 views

Multi target regression with CatBoost

I am doing a multi-target regression using Catboost. Following is the code: target_col = ['SISU_LP', 'SISU_AM', 'SISU_EP', 'SISU_HR', 'SISU_HS', 'SISU_HO'] text_cols=['surrender','feelings'] X = data....
0 votes
0 answers
26 views

Fixed Root Node for CatBoost/ XGBoost?

Set Root Node for CatBoost / Xgboost Dear all, My team are facing with a problem when using CatBoost / XGBoost. We want to set the first root for our algorithms but it seem impossible. Are there any ...
0 votes
0 answers
29 views

Scale parameter is fixed in CatBoost Regressor after training stage?

I am having this particular question with respect to CatBoost Regressor: does anyone know why CatBoost always keep the scale parameter = 1 in the final selected model (https://catboost.ai/en/docs/...
0 votes
0 answers
69 views

cross validation in grid_search CatBoost

Why do parameters calc_cv_statistics and search_by_train_test_split are set to True by default in grid search CatBoost? I don't get the sense: we choose the best values by mean score on each fold in ...
0 votes
0 answers
21 views

Kernel Restarting. It appears dead when I try to fit the data

Kernel is dead. It will restart automatically. from catboost import CatBoostRegressor cat = CatBoostRegressor() cat.fit(X_train, y_train) The problem is actually coming from the line of code where I ...
2 votes
2 answers
96 views

Is there a dark mode for Catboost fitting plot?

It seems there is no darkmode easily accessible for catboost fitting plot. The documentation does not seem to contain anything on the subject. I am running my Jupyter Notebook into VS code and I am ...
  • 153
1 vote
0 answers
68 views

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 ...
0 votes
0 answers
64 views

dataproc serverless - spark driver has 0 core & won't finish even if all tasks have been successfully completed

I am running catboost with pyspark on dataproc serverless. Everything works perfectly except the batch job will run indefinitely even if all tasks have been completed. I have tried os._exit(0) or ...
0 votes
1 answer
169 views

Catboost: 'CatBoostRegressor' object has no attribute 'select_features'

I am trying to apply automated feature selection when training with catboost. The catboost version I have (0.11.2) seems not to have the 'select_features' method advertised in https://catboost.ai/en/...
  • 1
0 votes
0 answers
85 views

How does the Catboost grow_policy calculates the best split?

With Catboost grow_policy you have the choice between 3 construction methods(Symmetric, Depthwise, Lossguide) to grow up the tree, so far so clear. To my question, does Catboost calculate the best ...
  • 15
0 votes
0 answers
17 views

Numpy array converts into C_CONTIGUOUS after trimming rows

Output of this is: print(arr.shape) print(arr.flags) Output: (676, 3516) C_CONTIGUOUS : False F_CONTIGUOUS : True OWNDATA : False WRITEABLE : False ALIGNED : True WRITEBACKIFCOPY : ...
0 votes
1 answer
352 views

xGBoost and Catboost in pycaret

I'm going to use pycaret for a regression problem. Although according to its tutorials (here: regression tutorial/ beginner level ) models such as xgboost and catboost are available in the package, I ...
  • 23
0 votes
1 answer
275 views

Trial 0 failed, because the value <function mean_squared_error at 0x000001799EEFB5E0> could not be cast to float

I am trying to tune catboost classifier with Optuna. I am getting this message to all my trials: [W 2022-10-05 15:05:30,474] Trial 0 failed, because the value <function mean_squared_error at ...
0 votes
0 answers
81 views

CatBoost interface with C++

I need to interface with CatBoost through C++ to fit models on some dataset I have in RAM (say as a matrix of floats). However, it does not seem to have a C++ (or any API). I am considering using the ...
  • 134
1 vote
1 answer
298 views

How use Catboost to encode a dataset?

There is a package based on the Catboost algorithm, [https://contrib.scikit-learn.org/category_encoders/_modules/category_encoders/cat_boost.html#CatBoostEncoder] that claims to use catboost algorithm ...
1 vote
0 answers
202 views

Displaying or saving training plot when fitting Catboost model in Jupyterlab

When fitting a Catboost model like this in Jupyterlab inside venv: from catboost import CatBoostClassifier, Pool train_data = [[1, 3], [0, 4], [1, 7], [0, 3]] train_labels = [1, 0, 1, 1] model = ...
  • 11
0 votes
1 answer
62 views

How to get the Endpoint for a model built in my machine

I have built a model in my machine and want to deploy the model (catboost classifier) in the amazon sagemaker. Not able to get the endpoint of the model. Looking for a code/ process to get the end ...
0 votes
0 answers
56 views

Can i only extract Catboost Categorical Variable Encoder

In my application, since I cannot disrupt the flow of the application, I would like to present the categorical data encoding process within catboost itself on the encoding screen. In other words, ...
1 vote
1 answer
367 views

CatBoostError-All train targets are equal

I am trying to do multi output regression analysis in Catboost. Size of the matrices are: x_train=(60,20) y_train=(60,17657) x_test=(15,20) y_test=(15,17657) Relevant code is below: cat_model=...
  • 11
0 votes
1 answer
112 views

Select threshold for binary classification using desired fpr value

I want to recreate catboost.utils.select_threshold(desc) method for CalibratedClassifierCV model. In Catboost I can select desired fpr value, to return the boundary at which the given FPR value is ...
  • 317
0 votes
0 answers
104 views

Multilabel classification using catboost spark

Trying to implement multilabel classification using catboost spark, I was faced with the error: Py4JJavaError: An error occurred while calling o2950.fit. : ai.catboost.CatBoostError: unsupported ...

1
2 3 4 5
7