Coder Social home page Coder Social logo

koozy0 / learn-scikit-learn Goto Github PK

View Code? Open in Web Editor NEW

This project forked from davified/learn-scikit-learn

0.0 1.0 0.0 2.34 MB

Demonstrate how to approach a machine learning problem with the tools of scikit-learn.

Jupyter Notebook 99.93% Shell 0.07%

learn-scikit-learn's Introduction

Analyzing bank marketing data with scikit-learn

This repo contains 2 notebooks which demonstrate how one can approach a classification machine learning problem using scikit-learn. The models are trained on data on direct marketing campaigns (phone calls) of a Portuguese banking institution (Data source: UCI Machine Learning Repository). The classification goal is to predict if the client will subscribe a term deposit (variable y).

For the hands-on workshop, please use the classification-model-workshop notebook. You can also refer to the solutions if you'd like.

To see the complete process of approaching a machine learning problem, please see the bank-data-model notebook. It illustrates the process of training, evaluating, tuning/optimizing and interpreting a logistic regression model

The comparing-models notebook demonstrates how you can follow a similar pattern for training a model using Logistic Regression Classifier, Naive Bayes Classifier, KNearest Neighbour Classifier, Decision Tree Classifier, Support Vector Machine Classifier, Random Forest Classifier. It also demonstrates how you can optimize a Random Forest Classifier using GridSearchCV

Get started

  1. Clone the repo and cd into the directory: git clone github.com/davified/learn-scikit-learn && cd learn-scikit-learn

  2. Run ./bin/setup.sh (read it before running!). Under the hood, this will:

    • Install python

    • Create a virtualenv folder in repo to store the dependencies in the next bullet

    • Install dependencies

      • jupyter
      • pandas
      • numpy
      • matplotlib
      • sklearn
  3. source .venv/bin/activate

  4. Start the notebook: jupyter notebook (if you're not familiar with jupyter notebook, it's just an IDE. You can refer to the cheatsheet)

learn-scikit-learn's People

Contributors

davidtan-tw avatar davified avatar

Watchers

James Cloos 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.