Giter Club home page Giter Club logo

godson199 / ecological-footprint-predictor Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.81 MB

In this project, I worked on a classification problem using an imbalanced dataset which predicts ecological footprints. The aim of the project was not necessarily to build a classification model but to investigate the different methods of correcting an imbalanced dataset in order not to build a biased classifier

Jupyter Notebook 100.00%
data-preprocessing data-science data-visualization data-wrangling lgbmclassifier machine-learning oversampling-technique randomforestclassifier smote undersampling-technique

ecological-footprint-predictor's Introduction

Ecological-Footprint-Predictor

Description

In this project, I worked on a classification problem using an imbalanced dataset which predicts ecological footprints. The aim of the project was not necessarily to build a classification model but to investigate the different methods of correcting an imbalanced dataset in order not to build a biased classifier.

Data Sources and Description

The data set used for this project was gotten from the University of Carlifornia (UCI) machine learning repository

Exploratory Data Analysis

The statistical overview of the dataset was properly investigated using the pandas-profiling report, pandas correlation method (corr()) cum matplotlib's heatmap. The EDA reaveals that most of the features were strongly correlated and there was no missing values in the dataset. The dataset was also described to give a statistical summary such as the mean, percentiles, minimum and maximum values (this reveals the range of the data for outlier detection).

Data Preprocessing

For the data preprocessing, I used three different techniques , namely: Under sampling, Over sampling with replacement and SMOTE technique from imblearn. The preprocessing of the data is at the heart of the project. For undersampling tecnique, the majority instances were reduced to a very close number with the minority classes. while in the oversampling tecnique with replacement, I increased the minority class to meet the number of the majority class each time taking an instace from a class and replacing it before picking another. The SMOTE tecnique as provided by imblearn (A project that is formerly part of scikit-learn) is an acronymn for Synthetic Minority Oversampling Technique. The difference between this method and the oversampling with replacement is that synthetic data was generated for the minority class while in the former the original data was repeated.

Modelling

In the modelling aspect of this project, I used a voting classification method which consists of three different models ie XGBOOST, Logistic Regression and LGBM. The different models were stacked to form a single model (the models learning from each other)

Conclusion

The classification report as a method of evaluation shows the most effective method as can be seen in the source code. This may arguably be problem specific and each method should be explored for every problem before decision making as the saying goes: There's no free lauch.

ecological-footprint-predictor's People

Contributors

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