Skip to main content

Improved Balanced Random Forest (iBRF) Classifier

Project description

iBRF

This repository contains the code and supplementary files for the proposed iBRF (Improved Balanced Random Forest) classifier.

Dependencies

This project uses the following libraries:

scikit-learn imbalanced-learn

Paper

The paper on this work has been published in IEEE Xplore.

Title - iBRF: Improved Balanced Random Forest Classifier

DOI: https://doi.org/10.23919/FRUCT61870.2024.10516372

Synopsis

This paper proposes a modification to the original BRF classifier for enhanced prediction performance.

In the original algorithm, the Random Undersampling (RUS) technique is utilized to balance the bootstrap samples. However, randomly eliminating too many samples from the data leads to significant data loss, resulting in a major decline in performance.

This paper proposed a novel sampling approach that, when incorporated into the framework of the RF classifier, achieves better and more generalized prediction performance. The proposed algorithm outperforms the original BRF classifier.

Original BRF classifier implementation in the imblearn library: https://imbalanced-learn.org/stable/references/generated/imblearn.ensemble.BalancedRandomForestClassifier.html

Installation

pip install iBRF

Usage

from ibrf import iBRF

clf = iBRF(balance_split=0.65, n_estimators=200, random_state=42)
clf.fit(X_train, y_train)
y_pred = clf.predict(X_test)

Screenshots

App Screenshot

Note

This repository currently contains the earliest version of the proposed iBRF framework. A more advanced version is currently under development.

LemaÃŽtre, G., Nogueira, F. and Aridas, C.K., 2017. Imbalanced-learn: A python toolbox to tackle the curse of imbalanced datasets in machine learning. Journal of machine learning research, 18(17), pp.1-5.

BibTex Citation

@INPROCEEDINGS{10516372,
  author={Newaz, Asif and Mohosheu, Md. Salman and Noman, Md. Abdullah Al and Jabid, Taskeed},
  booktitle={2024 35th Conference of Open Innovations Association (FRUCT)}, 
  title={iBRF: Improved Balanced Random Forest Classifier}, 
  year={2024},
  volume={},
  number={},
  pages={501-508},
  keywords={Technological innovation;Data preprocessing;Benchmark testing;Prediction algorithms;Data models;Classification algorithms;Ensemble learning},
  doi={10.23919/FRUCT61870.2024.10516372}}

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

ibrf-0.1.1.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

ibrf-0.1.1-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ibrf-0.1.1.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ibrf-0.1.1.tar.gz
Algorithm Hash digest
SHA256 036a9a1be88a526b45679c16d0db400703def02e88f9eb6b0a0efc17076056bc
MD5 38416d0e0e4646c872cd07f2616286ca
BLAKE2b-256 9eedd994d3f76fe4e191d3abd8735c05e859ebb208820c14c7c4b1079ebe2b37

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ibrf-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.19

File hashes

Hashes for ibrf-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 838a37f241260cbecf7639bd63d70ff27d332676a2138af72d1e751109db58e0
MD5 ad5f8686a347e67be0186ed88e3c2da3
BLAKE2b-256 9f69c643832eab0657218178d066639763af0409711e2f6293f547990fa465b3

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