Giter Club home page Giter Club logo

machinelearningclassification-kashyap_suratia's Introduction

ABOUT PROJECT

Sometimes a model may have a very high accuracy due to target variable feature imbalance. The model may perform poorly in the field. Imbalance learning balances the target variable features.

Installation of the modules

You can install sklearn and 'imblearn' modules via the terminal by;

pip install sklearn
pip install imblearn

or via the Jupyter notebook cell;

!pip install sklearn
!pip install imblearn

Imbalanced learning techniques

There are different approaches to imbalanced learning;

  • Oversampling
  • Undersampling
  • (Over and Under) Sampling

Oversampling

Oversampling randomly chooses data from the minority and adds to the dataset without replacement. The oversampling techniques used here were;

  • Naive Random Oversampling
  • SMOTE Oversampling

Undersampling

Undersampling randoms deletes the majority form the dataset to create a balance. The appraoches used in this project include;

  • Cluster centroids

(Over and Under) Sampling

THis is a resampling technique that combines both over and under sampling. The SMOTEENN approach was used here.

The balanced dataset was therefore trained on Logistic Regression for the first project.

The second project involved ensemble learning from imblearn module. Multiple models are applied here including resampling, classifiers and regression. The techniques used were;

  • Balanced Random Forest Classifier,
  • Easy Ensemble Classifier.

machinelearningclassification-kashyap_suratia's People

Contributors

kashyap-s1 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.