Gradient boosting with kernel regression base learners
Project description
KernelBoost
Gradient boosting with kernel-based local constant estimators
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file kernelboost-0.2.1.tar.gz.
File metadata
- Download URL: kernelboost-0.2.1.tar.gz
- Upload date:
- Size: 57.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4388316cc45d547368aa42893468f2fb5ff011fa0ee6dba2efd5695e4314dcc
|
|
| MD5 |
942e7d0fbc0aa87d797a26a1d01e1b66
|
|
| BLAKE2b-256 |
2a931f0c79822c77543875f0704914919d89d27d4c790abfef113827f7e4ff25
|
File details
Details for the file kernelboost-0.2.1-py3-none-any.whl.
File metadata
- Download URL: kernelboost-0.2.1-py3-none-any.whl
- Upload date:
- Size: 65.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7d8e27bdf4d4e5a7b8e7270af06b329a8fef5022b6c9aff28f6c38095662faf
|
|
| MD5 |
0621a91194fdd1ae41079f928216ee07
|
|
| BLAKE2b-256 |
99337c5cdd4682df1f3c9cd7371fdf6c9712ce905a89558734dbc38ebd93b124
|