GithubHelp home page GithubHelp logo

tcsl's Introduction


title: Timing Comparisons for Supervised Learning of a Classifier author:

  • name: Joshua Cook affiliation: Udacity, Machine Learning Nanodegree
  • name: Matthew Zhou affiliation: Udacity, Machine Learning Nanodegree
  • name: Other Authors affiliation: Udacity, Machine Learning Nanodegree abstract:
    • This paper describes $n$ methods for fitting a binary supervised learning classifier on a single large dataset with multiple-typed features. Timing and accuracy metrics are presented for each method, with analysis on the results in terms of the structure of the data set. Fits were performed using the popular open-source machine learning library scikit-learn. Additionally, a code repository including all necessary infrastructure has been developed and shared for reproducibility of results.

System Design

For portability and reproducibility of results, we have elected to use the Docker system and its Dockerfile syntax to prepare. As this work is done using Python and its scikit-learn libraries we have elected to use a system built via the Anaconda package manager. Furthermore, leveraging images designed by and for using the Jupyter system, which is built via Anaconda, allows a single container to be used both for running the analysis script and for interactive analysis of the data via Jupyter. The following Dockerfile completely describes the system used for this work. Note that it inherits from a Docker image designed and maintained by the Jupyter team.

mlnd/tcsl Dockerfile

FROM jupyter/scipy-notebook
VOLUMES .:/home/jovyan/work

Via the above, fit analysis can be run on a single classifier,

$ docker run -e CLASSIFIER='decision tree' mlnd/tcsl python project.py

all classifiers,

$ docker run mlnd/tcsl python project.py

or via an interactive notebook server

$ docker run mlnd/tcsl

Note that the last leverages a built-in launch script inherited from the original notebook definition, in that no explicit command was passed to the container.

Data Set

Select a dataset Proposed requirements:

  • Large but not too large i.e. can fit on a single system running Docker
  • lends itself to binary classification
  • many different types of feature parameters
  • from UCI Machine Learning Dataset Library

Data Visualization

Feature Engineering

one-hot encode classification parameters convert all booleans to numeric values

Split Data Set

  • training
  • test
  • use seed for reproducibility

Models

For each model complete the following: Copy and paste this template to add a new model. name: brief description: time complexity, training: time complexity, prediction: strengths: Weaknesses:

Metrics

What metrics should be used for timing, for accuracy, others?

Pipeline

  1. raw fit of classifier
  2. raw prediction of classifier
  3. gridsearchCV fit
  4. prediction on tuned model

Analysis

Highest performing model What this says about the data set chosen

List of Supervised Learning Models: PUT YOUR NAME NEXT TO ONE YOU WOULD LIKE TO IMPLEMENT http://scikit-learn.org/stable/supervised_learning.html Decision Trees

  • Support Vector Machines (Matt)
  • Naive Bayes
  • Ridge Regression
  • Stochastic Gradient Descent (Joshua)
  • Adaptive Moment Estimation (ADAM)
  • Linear/Logistic Regression
  • K-nearest Neighbors (Matt)
  • Random Forests
  • XGBoost (may require additional lib) (Matt)
  • Linear Discriminant Analysis
  • Quadratic Discriminant Analysis
  • Gaussian Processes
  • Elastic Lasso
  • AdaBoost
  • Gradient Tree Boost
  • Perceptron

tcsl's People

Contributors

joshuacook avatar geekman2 avatar

Watchers

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