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.2.0.tar.gz (57.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.2.0-py3-none-any.whl (65.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: kernelboost-0.2.0.tar.gz
  • Upload date:
  • Size: 57.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.2.0.tar.gz
Algorithm Hash digest
SHA256 c17775a6612f0d49fd0e83d9db82ddc3a4a857ebbeb430100f287eedf4dd979d
MD5 f3421ce43d266430c8167296c95ab3ca
BLAKE2b-256 8127ba34cf8df0c979d950a249cc7800d1925705434ff80cec98f68a4e510019

See more details on using hashes here.

File details

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

File metadata

  • Download URL: kernelboost-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 65.7 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2636b27998ae6204b3e91fd144be680bc72d77b920ccdaa2fce163dad8228956
MD5 601a06f713410e7770ae190d64ab3da7
BLAKE2b-256 020b5f686e0679574e2793831435493ade083355b5a94b12534cc9fe4129f943

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