Skip to main content

Genbooster

A gradient boosting and bagging (RandomBagClassifier, similar to RandomForestClassifier) implementation using Rust and Python. Any base learner can be employed. Base learners input features are engineered using a randomized artificial neural network layer.

For more details, see also https://www.researchgate.net/publication/386212136_Scalable_Gradient_Boosting_using_Randomized_Neural_Networks or https://thierrymoudiki.github.io/blog/2025/06/14/python/xgboost-default-overfitting

PyPI Downloads Documentation

1 - Installation

From GitHub:

pip install git+https://github.com/Techtonique/genbooster.git

It might be required to install Rust and Cargo first (normally, it isn't, and you can skip these steps):

Command line:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y

Python:

import os
os.environ['PATH'] = f"/root/.cargo/bin:{os.environ['PATH']}"

Command line:

echo $PATH
rustc --version
cargo --version

2 - Usage

2.1 - Boosting

import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from sklearn.utils.discovery import all_estimators
from sklearn.datasets import load_iris, load_breast_cancer, load_wine
from sklearn.linear_model import Ridge, RidgeCV
from sklearn.tree import ExtraTreeRegressor
from sklearn.model_selection import train_test_split
from genbooster.genboosterclassifier import BoosterClassifier
from genbooster.randombagclassifier import RandomBagClassifier

X, y = load_iris(return_X_y=True)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2, random_state=42)
clf = BoosterClassifier(base_estimator=ExtraTreeRegressor())
clf.fit(X_train, y_train)
preds = clf.predict(X_test)
print(np.mean(preds == y_test))

2.2 - Bagging (RandomBagClassifier, similar to RandomForestClassifier)

clf = RandomBagClassifier(base_estimator=ExtraTreeRegressor())
clf.fit(X_train, y_train)
preds = clf.predict(X_test)
print(np.mean(preds == y_test))

Metadata

Release files for genbooster 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for genbooster 0.7.0
File Actions
genbooster-0.7.0-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details for genbooster-0.7.0-cp311-cp311-win_amd64.whl
genbooster-0.7.0-cp311-cp311-manylinux_2_34_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.34+ x86-64 Details for genbooster-0.7.0-cp311-cp311-manylinux_2_34_x86_64.whl
genbooster-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details for genbooster-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl
genbooster-0.7.0-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details for genbooster-0.7.0-cp310-cp310-win_amd64.whl
genbooster-0.7.0-cp310-cp310-manylinux_2_34_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.34+ x86-64 Details for genbooster-0.7.0-cp310-cp310-manylinux_2_34_x86_64.whl
genbooster-0.7.0-cp310-cp310-macosx_10_12_x86_64.whl CPython 3.10 CPython 3.10 macOS 10.12+ x86-64 Details for genbooster-0.7.0-cp310-cp310-macosx_10_12_x86_64.whl
genbooster-0.7.0-cp39-cp39-win_amd64.whl CPython 3.9 CPython 3.9 Windows x86-64 Details for genbooster-0.7.0-cp39-cp39-win_amd64.whl
genbooster-0.7.0-cp39-cp39-manylinux_2_34_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.34+ x86-64 Details for genbooster-0.7.0-cp39-cp39-manylinux_2_34_x86_64.whl
genbooster-0.7.0-cp39-cp39-macosx_10_12_x86_64.whl CPython 3.9 CPython 3.9 macOS 10.12+ x86-64 Details for genbooster-0.7.0-cp39-cp39-macosx_10_12_x86_64.whl
genbooster-0.7.0-cp38-cp38-win_amd64.whl CPython 3.8 CPython 3.8 Windows x86-64 Details for genbooster-0.7.0-cp38-cp38-win_amd64.whl
genbooster-0.7.0-cp38-cp38-manylinux_2_34_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.34+ x86-64 Details for genbooster-0.7.0-cp38-cp38-manylinux_2_34_x86_64.whl
genbooster-0.7.0-cp38-cp38-macosx_10_12_x86_64.whl CPython 3.8 CPython 3.8 macOS 10.12+ x86-64 Details for genbooster-0.7.0-cp38-cp38-macosx_10_12_x86_64.whl

Total release size: 5.0 MB

Release files / genbooster-0.7.0-cp311-cp311-win_amd64.whl

Download URL genbooster-0.7.0-cp311-cp311-win_amd64.whl
Size 327.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
77aebfe296bbec29743697ddb43c9028114c773906e2e10843cc9af99acf1cc3
BLAKE2b-256 checksum
How to use checksums
07b84bd77658ab6b7bc317c800f87e191361a1f87af24b2d9ade9c0273896665
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp311-cp311-manylinux_2_34_x86_64.whl

Download URL genbooster-0.7.0-cp311-cp311-manylinux_2_34_x86_64.whl
Size 478.6 kB
Tags CPython 3.11 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
438b8df70e7c5328895c9f2ea72a9d09b2ce39f320870c96de9bf23f846c90af
BLAKE2b-256 checksum
How to use checksums
5a31ded09e4bba2c2a54001ddf8ff91023bf41a91e1dd480f5e17fe564f35f46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl

Download URL genbooster-0.7.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 432.5 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b7c49f031e9804bf1ea1f5e185abc7a084dc7a0e415806cbdf5c0eac0eae0dc7
BLAKE2b-256 checksum
How to use checksums
91de7849324a56cfc649a149af9973cb713cc5588addd0a5d6a84c9ce3eb4363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp310-cp310-win_amd64.whl

Download URL genbooster-0.7.0-cp310-cp310-win_amd64.whl
Size 327.0 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
526d220347a95f1e57618ee5c0e5bd4015e5491cfb326fdb11719e30cbf76527
BLAKE2b-256 checksum
How to use checksums
63ace317ad1b3daa7343c82109f443befcd6881901332126b756a06c6297eecc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp310-cp310-manylinux_2_34_x86_64.whl

Download URL genbooster-0.7.0-cp310-cp310-manylinux_2_34_x86_64.whl
Size 478.6 kB
Tags CPython 3.10 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
117891fe2742444b43ef9e9b92be0e8b38ede5ea31ccf07e35cfc20236592f64
BLAKE2b-256 checksum
How to use checksums
606c27c09ded76ff655bd1d083277bcf96a8e9ff572483de28a17f40f75f57b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp310-cp310-macosx_10_12_x86_64.whl

Download URL genbooster-0.7.0-cp310-cp310-macosx_10_12_x86_64.whl
Size 432.4 kB
Tags CPython 3.10 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
a2d2d4b6b580d0437780e2ee0e1d3d81a6886ffd4dc382b16cb34a1b6c5c3106
BLAKE2b-256 checksum
How to use checksums
16c1ff48573b45525a179e149d803af2c0ae1091df782bff75c7cd49f5ce2535
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp39-cp39-win_amd64.whl

Download URL genbooster-0.7.0-cp39-cp39-win_amd64.whl
Size 326.3 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
77457738642d690e5dba75424d0cb9f296107c901d0612bffaaf805497bb9456
BLAKE2b-256 checksum
How to use checksums
185547b96f1f0b3c5bc6b2b3bf60150b3b9bb035e3365fef802ba05f579d9047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp39-cp39-manylinux_2_34_x86_64.whl

Download URL genbooster-0.7.0-cp39-cp39-manylinux_2_34_x86_64.whl
Size 479.1 kB
Tags CPython 3.9 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
ec70e10b5e9de19b92bb7ed1f5f9447b7c21d048cb1d0598bbffb0074aecf0d6
BLAKE2b-256 checksum
How to use checksums
2bcaa5ec2b73aecf6bfa29f20415161b1209bcd121533193bcee0b2039068ed1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp39-cp39-macosx_10_12_x86_64.whl

Download URL genbooster-0.7.0-cp39-cp39-macosx_10_12_x86_64.whl
Size 432.5 kB
Tags CPython 3.9 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
43ad25afcb45b7f34ea1b38ac35a7418745e8f375cd05823465a6419328443e3
BLAKE2b-256 checksum
How to use checksums
ebfabe4d7659ebe2ad876b81e8111199ab993b797f836eed51dc2979189b4f69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp38-cp38-win_amd64.whl

Download URL genbooster-0.7.0-cp38-cp38-win_amd64.whl
Size 327.3 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
a3f2240d1b5a0a24de9fecaa3f7a017d2f2ef092f78d112f6daa318e8a68c083
BLAKE2b-256 checksum
How to use checksums
e2363615b2394ab424317ca9a519d57990bbbef510821affe4b4e9c49e62e2be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp38-cp38-manylinux_2_34_x86_64.whl

Download URL genbooster-0.7.0-cp38-cp38-manylinux_2_34_x86_64.whl
Size 478.5 kB
Tags CPython 3.8 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
632df76f9625e6a8392f5fab410d6e2672d9333ac4a25a888ba1fb6333a41a39
BLAKE2b-256 checksum
How to use checksums
f586bb02dfe597484c76a5fca3ce11591ccff24f31fec6e2e9472a867fd41590
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / genbooster-0.7.0-cp38-cp38-macosx_10_12_x86_64.whl

Download URL genbooster-0.7.0-cp38-cp38-macosx_10_12_x86_64.whl
Size 432.4 kB
Tags CPython 3.8 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8af813795e4fc0154fa27a193166bea622226abd26277116c9c7e7866fad5506
BLAKE2b-256 checksum
How to use checksums
91e97f37d583c8dd9d53487824d9c019497cf137d14c2bf1742d10330d80f0f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for genbooster 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page