Giter Site home page Giter Site logo

machine-learning's Introduction

machine-learning

CS 7641 coursework

Data Sources

Prerequisites:

  • Install all the dependent python libraries - scikit-learn, matplotlib, numpy and pandas
  • util.py provides utlity function to input data and print learning curves abstracted for other files
  • Store the .py files and data in the same folder

Decision Tree:

  • In DecisionTree.py, remove line 85 and replace it with a function call to draw_learning_curve_1() to draw_learning_curve_2() to create the learning curves for Phishing Dataset and Optical Recognition Dataset, respectively. Modify line 84 with X1, Y1 or X2, Y2 to pick the dataset.
  • Additionally, a 3-D graph can be generated with the function testBothParams() and max depth graph can be generated by calling testMaxDepth()

KNN:

  • Follow same steps as Decision Trees by calling functions to create graphs using KNN.py

SVM:

  • Use either plot function to plot the graphs

Neural Network : Multilayer Perceptron:

  • The code in MultiLayerPerceptron.py generates epoch curves for Phishing Data, uncomment the last block and comment lines 85 to 98 to generate them for Optical Recognition Dataset

Boosting:

  • Uncomment line 41 to 62 to create graphs for Optical Recognition Dataset, change learning_rate or max_depth to create graphs for a higher or lower learning_rate or depth
  • Comment the block for Phishing or create two sub plots

References:

machine-learning's People

Contributors

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