faster-rule
faster-rule is the distribution name of the NumPy-first additive rule ensemble package imported as fastogb.
It provides configurable query-selection objectives, search algorithms, losses and weight-update methods, with
mandatory Numba CPU acceleration and optional CUDA acceleration for supported NVIDIA systems.
Install the current checkout from the project root with pip install -e .. An editable installation immediately
uses subsequent source changes, although a running Python or Jupyter process must be restarted after imports change.
The main public estimator is GeneralRuleBoostingEstimator. Its complete constructor, nested configuration,
methods and fitted attributes are described in the
GeneralRuleBoostingEstimator interface.
from fastogb import (FullyCorrective, GeneralRuleBoostingEstimator, OrthogonalBoostingObjective,
load_csv)
data, target, feature_names, categorical = load_csv(
'data.csv', target_name='target', target_map={'negative': -1.0, 'positive': 1.0})
model = GeneralRuleBoostingEstimator(
num_rules=10, objective_function=OrthogonalBoostingObjective,
weight_update_method=FullyCorrective(), loss='logistic', search='greedy', n_jobs=4,
search_params={'feature_names': feature_names, 'categorical': categorical},
objective_params={'epsilon': 1e-4})
model.fit(data, target)
print(model.rules_)
predictions = model.predict(data)
probabilities = model.predict_proba(data)
Release files for fastogb 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| fastogb-0.1.0.tar.gz | 45.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastogb-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 91.1 kB
Release files / fastogb-0.1.0.tar.gz
| Download URL | fastogb-0.1.0.tar.gz |
|---|---|
| Size | 45.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fa98786f3ef137f8c226abebbcd94618266f0bf494855cb931b3a0d63bbdb786
|
|
BLAKE2b-256 checksum How to use checksums |
bea9d29e32d30a88ac2a98ce7be78199b25e57c0ef179a13b3a49efc5a0197ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|
Release files / fastogb-0.1.0-py3-none-any.whl
| Download URL | fastogb-0.1.0-py3-none-any.whl |
|---|---|
| Size | 46.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cdf96550f9fbec92a17c5f190dce6ea02997d318cf02ef85c62db69342e1f06b
|
|
BLAKE2b-256 checksum How to use checksums |
51d09365eda8dd16f18e2974487ea93dc2d1e50aa922849455ceb6be43a7ce76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|