Skip to main content

An ensemble classifier that combines multiple base models using learned weights

Project description

LestariClassifier

LESTARI (Layered Ensemble Stacking Technique with Adaptive Regression of Individual-errors) is an advanced ensemble classifier that intelligently combines multiple base models using a weighted ensemble approach. The weights are dynamically learned based on the prediction errors of individual instances across each base model. LESTARI was developed as part of my Master of Computer Science thesis at BINUS University, and is lovingly dedicated to my beloved wife, whose surname Lestari inspired the name of this technique.

Features

  • Multiple base models support
  • Automatic weight learning
  • Scikit-learn compatible
  • Probability estimates
  • Internal cross-validation

Install

pip install lestari-classifier

Usage

from lestari_classifier import LestariClassifier
from lightgbm import LGBMClassifier
from catboost import CatBoostClassifier

estimators = [
    ('lgbm', LGBMClassifier()),
    ('cb', CatBoostClassifier(verbose=0))
]

clf = LestariClassifier(estimators=estimators)
clf.fit(X_train, y_train)
predictions = clf.predict(X_test)
probabilities = clf.predict_proba(X_test)

Changelog

0.1.1

  • Enhanced predict_proba to return full probability matrix
  • Improved probability estimation

0.1.0

  • Initial release

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

lestari_classifier-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lestari_classifier-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file lestari_classifier-0.1.1.tar.gz.

File metadata

  • Download URL: lestari_classifier-0.1.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for lestari_classifier-0.1.1.tar.gz
Algorithm Hash digest
SHA256 2002950275766cda3e9b8a3ed633e476356694bdfd3bb252f2f034dc1afaea98
MD5 e0fde8496b427a9569050460a7ae5b65
BLAKE2b-256 8c09c49b05d36e37683d0505950e96932cd40cb219f2a684fbf5d18415b53766

See more details on using hashes here.

File details

Details for the file lestari_classifier-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for lestari_classifier-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 128ae33725f57ab115b2aa50ca36fcf719a610b7d50a5dff2f262057f37173e7
MD5 1afc5b38f495c6f88c8246e1be30a2e4
BLAKE2b-256 bf945ee6908908744d1d2263de59e2b67f016408946428f34d3a56eac0056d16

See more details on using hashes here.

Supported by

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