Giter Club home page Giter Club logo

unit11-classification's Introduction

Unit11 - Machine Learning: Classification

In this assignment built and evaluated machine learning models to predict credit risk using data that one would typically see from peer-to-peer lending services. Credit risk is an inherently imbalanced classification problem (the number of good loans is much larger than the number of at-risk loans), so we had to employ different techniques for training and evaluating models with imbalanced classes. We have used the imbalanced-learn and Scikit-learn libraries to build and evaluate models using the two following techniques:

  1. Resampling

In this exercise we split the data into training an testing (created our features and target), followed by:

  • We used StandardScaler from sklearn to fit and scale the training and testing data.
  • We ran the Simple Logistic Regression to calculate the balanced accuracy score, display the confusion matrix, and print the imbalanced classification report.
  • We then moved onto Oversampling using the Naive Random Oversampler, and SMOTE algorithms
  • Followed by undersampling using the Cluster Centroids algorithm.
  • And over and undersampled using the combination SMOTEEN algorithm.
  1. Ensemble Learning

In this exercise we split the data into training an testing (created our features and target), followed by:

  • We used StandardScaler from sklearn to fit and scale the training and testing data.
  • Then we compared two ensemble algorithms determine which algorithm results in the best performance.
  • We trained a Balanced Random Forest Classifier and an Easy Ensemble classifier.

Based on teh results from each of our exercises we were able to answer the questions asked in the assignment (the answers are in each of the respective Jupyter notebooks).

unit11-classification's People

Contributors

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