Skip to main content

Gradient boosting with kernel regression base learners

Project description

KernelBoost

Gradient boosting with kernel-based local constant estimators

Python NumPy C GPU License Version

KernelBoost is a gradient boosting algorithm that uses Nadaraya-Watson (local constant) kernel estimators as base learners instead of decision trees. It has:

  • Support for regression, classification and quantile regression tasks.
  • sklearn style API (fit, predict).
  • CPU (via C) and GPU (via CuPy/CUDA) backends.

Installation

# Basic installation
pip install kernelboost

# With GPU support (requires CUDA)
pip install cupy-cuda12x  # for CUDA 12

Dependencies: NumPy only. CuPy optional for GPU acceleration.

Quick Start

from kernelboost import KernelBooster, MulticlassBooster
from kernelboost.objectives import MSEObjective, EntropyObjective

# Regression
booster = KernelBooster(objective=MSEObjective()).fit(X_train, y_train)
predictions = booster.predict(X_test)

# Binary classification
booster = KernelBooster(objective=EntropyObjective()).fit(X_train, y_train)
logits = booster.predict(X_test)
probabilities = booster.predict_proba(X_test)

# Multiclass classification (fits one booster per class)
booster = MulticlassBooster().fit(X_train, y_train)
class_labels = booster.predict(X_test)

Documentation

For full documentation, benchmarks, architecture details, and API reference, see the GitHub repository.

License

MIT License

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kernelboost-0.3.1.tar.gz (100.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kernelboost-0.3.1-py3-none-any.whl (109.0 kB view details)

Uploaded Python 3

File details

Details for the file kernelboost-0.3.1.tar.gz.

File metadata

  • Download URL: kernelboost-0.3.1.tar.gz
  • Upload date:
  • Size: 100.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for kernelboost-0.3.1.tar.gz
Algorithm Hash digest
SHA256 dcd2401c5f30cc084ef4d2542dbfa614385e24bbffa21e8a39de552fd5eb806a
MD5 7b3418ea520dd8acfcf8a9c003ebd6e6
BLAKE2b-256 7d4aea7a302529c5a6877e8f5a11c4b7c5a3aae5375853aa8f5edb5b610418a2

See more details on using hashes here.

File details

Details for the file kernelboost-0.3.1-py3-none-any.whl.

File metadata

  • Download URL: kernelboost-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 109.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for kernelboost-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1fb69b57ffda2b0146a1d4ed765f8b9a32655bd902cd82f80f41f327d1737e3a
MD5 135a5bd853ca436416c93f6c4dec4397
BLAKE2b-256 ba7abc7fd1d63dfecc7199c3cb12c8c72b0da052b87176ba1602b8bba18f80e5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page