Giter Site home page Giter Site logo

ml_supervised_learning's Introduction

Code can be found at: https://github.com/albutko/ml_supervised_learning
Data is stored in the data directory, so clone the repo and you will have everything

My HW1 implementation was written using python, scikit-learn, matplotlib, numpy, and pandas.

First, if necessary, install packages using pip from requirements.txt with command:
    pip install -r requirements.txt


this should install all necessary packages.
Next, if you want to recreate any of my results, you will do so in code/experiments.py file

In the main() method you will find a list of 20 function calls. There are two types
of functions here:
    1. *****Experiment(dataset)
    2. *****BestClassifier(dataset)

Each of these functions use an if statement to path the analysis based on the dataset so make
sure you are commenting the correct code out in the correct if-statement when necessary

These functions take in a dataset as input: higgs or mapping.

The *Experiment(*dataset*) method will run the cross validation and grid search experiments I used
for hyperparameter tuning and will use matplotlib and the standard output to visualize results.
matplotlib windows must be closed for the program to continue outputting results.

The *BestClassifier(*dataset*) method will train and test the best classifier configuration
for the associated classifier.

To run any of these methods simply uncomment the method calls in main() for the specific dataset
you wish to test from the code directory on command line run: 
    python experiments.py

For some experiments, I searched across multiple parameters, for these I have the different
parameter dictionaries commented out in the Experiment functions. You must uncomment what you
wish to test. Also if there is more than one parameter in the search you must set
graph=False in the `best_hyperparameter_search()` function as it can only graph change due
to one parameter

For SVM because two kernels were tested you must make sure to go into the SVMExperiment and
SVMBestClassifierTest to uncomment the parameter dict or kernel you wish to use.

ml_supervised_learning's People

Watchers

Alex Butenko 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.