fastogb
fastogb is a NumPy-first package for constructing additive rule ensembles. 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 release from PyPI with:
pip install fastogb
The main public estimator is GeneralRuleBoostingEstimator. Its complete constructor, nested configuration,
methods and fitted attributes are described in the
GeneralRuleBoostingEstimator interface.
Package maintainers can follow the release guide for TestPyPI and production PyPI uploads.
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.1
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.1.tar.gz | 45.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| fastogb-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 91.0 kB
Release files / fastogb-0.1.1.tar.gz
| Download URL | fastogb-0.1.1.tar.gz |
|---|---|
| Size | 45.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
732dd3b49c0680488cf9f6f2f9b71c7960d7af51fb21bdf2a38cca8130a89fb1
|
|
BLAKE2b-256 checksum How to use checksums |
3d397118278788a76b10e02831869ace96c1ecdceebcdf4d78db3c378fdf5b4f
|
| 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.1-py3-none-any.whl
| Download URL | fastogb-0.1.1-py3-none-any.whl |
|---|---|
| Size | 45.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2d22a867c34530abcb1d95a62d6ad4db9b1f9bf69b396a5cb8bb536926ee6a1
|
|
BLAKE2b-256 checksum How to use checksums |
dc0a39e2467957d0bb70ffddb6eab136d9b165f6f498218151ecc1f970d6cbd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.11
|