Giter Club home page Giter Club logo

eecs583_unroll_ml's Introduction

EECS583_Unroll_ML

clean_description2code.py transforms description2code into a more workable format and randomly selects one solution per problem to be our example code.

After running script dataset looks like:

bash

description2code_clean
├── problem_1
├── problem_2
│   ├── deccription.txt
│   ├── solution.cpp
│   ├── samples
│   │   ├── 1_input.txt
│   │   ├── 1_output.txt
│   │   ├── ...
├── ...

Please Note: CSV is in form: Name,Operations,Operands,MemoryOps,FPOps,Branch,resMII,frequentBBs,nestDepth,tripcount

Instructions for model.ipynb

A shared, working model.ipynb is shared in the 'EECS583 Project' folder on Google Drive and is here on GitHub. It's probably useful for all of us to have our own copy to run our own tests, so you can make a copy in Google Drive, for example, and open your copy in Colab to run your experiments.

To train/validate the model, you will need to drag/drop training and validation csvs into the filesystem and possibly modify the csv paths in the cell that sets up the dataloaders. By default, it is setup to look for train_norm.csv and val_norm.csv on the same level as (not inside) sample_data/ in the file system.

Two things of note are commented out by default:

  • The scheduler variable, which decreases the learning rate by gamma every step_size epochs. You can pass this into the mlp.train_model() function.
  • The class_weights tensor and its corresponding criterion. These were calculated according to the label distribution with the formula w_j = n_samples / (n_classes * n_samples_j) to help the model learn the minority classes.

eecs583_unroll_ml's People

Contributors

lanbas avatar lxguan1 avatar tbrady12234 avatar tgregart avatar

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.