Python API#

This section documents the complete Python API for boosters.

boosters provides two APIs:

  • Core API — Full control with explicit configuration (GBDTModel, GBDTConfig, etc.)

  • sklearn API — Familiar sklearn-compatible estimators (GBDTRegressor, GBDTClassifier, etc.)

See Choosing an API for guidance on which to use.

Core API#

The core API provides full control over model training and configuration.

Models

Dataset

Dataset holding features, labels, and optional metadata.

GBDTModel

Gradient Boosted Decision Tree model.

GBLinearModel

Gradient Boosted Linear model.

Configuration

GBDTConfig

Main configuration for GBDT model.

GBLinearConfig

Main configuration for GBLinear model.

Objective

Objective (loss) functions for gradient boosting.

Metric

Evaluation metrics for gradient boosting.

sklearn API#

The sklearn API provides familiar estimators that work with Pipeline, cross_val_score, GridSearchCV, and other sklearn utilities.

GBDTRegressor

Gradient Boosted Decision Tree Regressor.

GBDTClassifier

Gradient Boosted Decision Tree Classifier.

GBLinearRegressor

Gradient Boosted Linear Regressor.

GBLinearClassifier

Gradient Boosted Linear Classifier.