Coder Social home page Coder Social logo

fwanjala / machine-learning-rare-event-classification Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leihuaye/machine-learning-rare-event-classification

0.0 1.0 0.0 633 KB

With unbalanced outcome distribution, which ML classifier performs better? Any tradeoff?

Home Page: https://towardsdatascience.com/classifying-rare-events-using-five-machine-learning-techniques-fab464573233

machine-learning-rare-event-classification's Introduction

Project Summary

This repository aims to compare the performances of multiple machine learning (ML) algorisms when the data distribution is highly imbalanced with one overwhelming response category. The dataset was randomly divided into two parts: training and test sets. Then, I will develop a statistical model out of the training set and apply it to the test set, recording down the misclassification errors.

Furthermore, I will use ROC and AUC to compare the performances and conclude KNN, as a non-parametrical method, outperforms the others when the distribution is highly imbalanced.

For the entire dataset, please refer to my Medium post: A Pain in the Neck: Predict A Rare Event using 5 Machine Learning Methods, https://towardsdatascience.com/classifying-rare-events-using-five-machine-learning-techniques-fab464573233.

Installing

This project is conducted in the R environment, and you have to pre-install the following libraries: readr, knitr, dplyr, plyr, class, reshape2, tree, randomForest, car, and e1071.

What is the data?

This dataset is collected by a Portuguese banking institution to assess the effect of direct marketing campaigns (phone calls) in predicting if the client will subscribe to a term deposit. The data source can be accessed here at https://archive.ics.uci.edu/ml/datasets/bank+marketing.

About the Author

Leihua Ye is a Ph.D. Researcher at the UC, Santa Barbara. He has received extensive trainings in Causal Inference, Research Design, Machine Learning, Big Data, and Machine Learning.

He receives his B.A. and M.A. from the Uni. of Nottingham.

Contact

Email: [email protected]

LinkedIn: www.linkedin.com/in/leihuaye

Tech Blog: https://medium.com/@leihua_ye

machine-learning-rare-event-classification's People

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.