Skill

Implement and Optimize CatBoost Classifiers

Expert agent for implementing, optimizing, and deploying CatBoost classifiers with native categorical handling and GPU acceleration.

Works with githubsklearnpandasoptuna

91
Spark score
out of 100
Updated 21 days ago
Version 1.0.0
Models

Add to Favorites

Why it matters

Leverage advanced gradient boosting techniques with CatBoost to build, tune, and deploy high-performance classification models. This asset provides expert guidance and code patterns for handling categorical data, optimizing hyperparameters, and ensuring efficient production deployment.

Outcomes

What it gets done

01

Implement CatBoost classifiers with native categorical feature handling.

02

Optimize model performance through hyperparameter tuning (Grid Search, Bayesian Optimization).

03

Deploy CatBoost models efficiently for high-throughput predictions.

04

Analyze model interpretability using feature importance and SHAP values.

Install

Add it to your toolbox

Run in your project directory:

curl -fsSL https://spark.entire.vc/get/vb-catboost-classifier | bash

Overview

CatBoost Classifier Expert Agent

This agent is an expert in implementing, optimizing, and deploying CatBoost classifiers. It leverages gradient boosting algorithms with native categorical feature handling, symmetric tree structures, ordered boosting, and built-in regularization. It supports GPU acceleration for efficient training on large datasets. Use this agent when you need to build robust classification models, especially those with a significant number of categorical features. It is ideal for optimizing model performance through hyperparameter tuning, implementing advanced feature engineering techniques, and ensuring efficient production deployment.

What it does

As a data scientist, I want to build and deploy high-performance classification models efficiently, so that I can derive accurate predictions from my data.

I need a tool that can handle categorical features natively, optimize model training, and facilitate deployment.

from catboost import CatBoostClassifier, Pool
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.metrics import classification_report, roc_auc_score

### Prepare data with categorical features
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)

### Specify categorical feature indices
cat_features = ['category_col1', 'category_col2']  # or indices [0, 3, 5]

### Create CatBoost classifier
model = CatBoostClassifier(
    iterations=1000,
    learning_rate=0.1,
    depth=6,
    cat_features=cat_features,
    eval_metric='AUC',
    random_seed=42,
    verbose=100
)

### Train model
model.fit(
    X_train, y_train,
    eval_set=(X_test, y_test),
    early_stopping_rounds=100,
    plot=True
)

FAQ

Common questions

Discussion

Questions & comments ยท 0

Sign In Sign in to leave a comment.