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.2.tar.gz (100.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.2-py3-none-any.whl (109.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kernelboost-0.3.2.tar.gz
  • Upload date:
  • Size: 100.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.2.tar.gz
Algorithm Hash digest
SHA256 0d9082c5e195bb13fb4f2ce7155d5c4ef38842190d6589d66102947aabcd69d1
MD5 cdec9b3bafa553691c4d015a749b2375
BLAKE2b-256 5806f8f20de79b3f9bac0239942341af6a20de11f824fde5fe823896063c8f9a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kernelboost-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 109.3 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 abb56938ae543ad881592f27d3e39624a7862b0abcdb30ff288988297ac155cf
MD5 9571fa68fe87d3147ffb7303be779e58
BLAKE2b-256 1df15b405cdbe4d10c777cedf06edb527784f17c8af19e5ac52648308992e89a

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