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.3

  • Fix probability and prediction function

0.1.2

  • Changed default weight model to LGBMRegressor
  • Changed default final model to GaussianNB
  • Enhanced weight learning using feature space
  • Improved probability calibration

0.1.1

  • Enhanced predict_proba to return full probability matrix

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.3.tar.gz (3.8 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.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: lestari_classifier-0.1.3.tar.gz
  • Upload date:
  • Size: 3.8 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.3.tar.gz
Algorithm Hash digest
SHA256 c6880f61186a4eb799657e5a7db8f5c167069b1aca6e7ae8294c908cc065d9b4
MD5 a894f01c8cc407a51c4f388a271be327
BLAKE2b-256 3b17d4d66b177a3f4c3ddb7252856cc8b60161a0fc20dde4b95441b3e71e0081

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for lestari_classifier-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9e6710c348b209ed8402c83a60ae8c2d040b400ff306c6ea0e41cc5f58095828
MD5 00c64f2ee1dbfc17ad6461e2b171b9e0
BLAKE2b-256 f6fa2dbd34051c238ae7fcdd15a114b6ff2e7a4d037a9244cccef3fd4df4cf14

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