Skip to main content

A self-generalizing, hyperparameter-free gradient boosting machine

Project description

Python Versions PyPI Version Crates.io Version

Perpetual

A self-generalizing, hyperparameter-free gradient boosting machine

PerpetualBooster is a gradient boosting machine (GBM) algorithm which doesn't have hyperparameters to be tuned so that you can use it without needing hyperparameter optimization packages unlike other GBM algorithms. Similar to AutoML libraries, it has a budget parameter which ranges between (0, 1). Increasing the budget parameter increases predictive power of the algorithm and gives better results on unseen data. Start with a small budget and increase it once you are confident with your features. If you don't see any improvement with further increasing budget, it means that you are already extracting the most predictive power out of your data.

Hyperparameter optimization usually takes 100 iterations with plain GBM algorithms. PerpetualBooster achieves the same accuracy in the single run. Thus, it achieves around 100x speed-up at the same accuracy with different budget levels and with different datasets. The speed-up might be slightly lower or significantly higher than 100x depending on the dataset.

PerpetualBooster prevents overfitting with a generalization algorithm. The paper is work-in-progress to explain how the algorithm works.

Usage

You can use the algorithm like in the example below. Check examples folders for both Rust and Python.

from perpetual import PerpetualBooster

model = PerpetualBooster(objective="SquaredLoss")
model.fit(X, y, budget=0.4)

Documentation

Documentation for the python API can be found here.

Installation

The package can be installed directly from pypi.

pip install perpetual

To use in a rust project, add the following to your Cargo.toml file.

perpetual = "0.0.5"

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

perpetual-0.0.5-cp312-none-win_amd64.whl (521.0 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

perpetual-0.0.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (618.0 kB view hashes)

Uploaded CPython 3.12 manylinux: glibc 2.17+ x86-64

perpetual-0.0.5-cp312-cp312-macosx_11_0_arm64.whl (545.4 kB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

perpetual-0.0.5-cp311-none-win_amd64.whl (520.5 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

perpetual-0.0.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (619.0 kB view hashes)

Uploaded CPython 3.11 manylinux: glibc 2.17+ x86-64

perpetual-0.0.5-cp311-cp311-macosx_11_0_arm64.whl (546.4 kB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

perpetual-0.0.5-cp310-none-win_amd64.whl (520.3 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

perpetual-0.0.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (618.4 kB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

perpetual-0.0.5-cp39-none-win_amd64.whl (520.1 kB view hashes)

Uploaded CPython 3.9 Windows x86-64

perpetual-0.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (619.4 kB view hashes)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

perpetual-0.0.5-cp38-none-win_amd64.whl (520.2 kB view hashes)

Uploaded CPython 3.8 Windows x86-64

perpetual-0.0.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (619.1 kB view hashes)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

Supported by

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