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.0.tar.gz (99.8 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.0-py3-none-any.whl (108.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kernelboost-0.3.0.tar.gz
  • Upload date:
  • Size: 99.8 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.0.tar.gz
Algorithm Hash digest
SHA256 cdef98ecff5e85e900be7c48230e03510df3cc5af879ef6ab8d9d95f397bfbd7
MD5 48f2768c5fa9dc8ae7fd3c6f24fe5ada
BLAKE2b-256 59e05b5091c9c3f8cdbaf61cf02d1bb4cb78da09061f2267b2bec05b6a0db322

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kernelboost-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 108.6 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc63d4757aa239071633a80f5cccca254fa50a0a47cc232364336a298b400021
MD5 c0b9605fcf5f82cc9c6f715094ae63ed
BLAKE2b-256 11c00b8470dda4318636bb34d8e5b9fccba18a5786caef51e3022c8c192f4c45

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