Code Monkey home page Code Monkey logo

ece_228_project_public's Introduction

Setup Prerequisite

Kaggle Token

Generate your own valid Kaggle Token and place it under src/data/kaggle.json.

To use the Kaggle API, sign up for a Kaggle account at https://www.kaggle.com. Then go to the 'Account' tab of your user profile (https://www.kaggle.com/<username>/account) and select 'Create API Token'. This will trigger the download of kaggle.json, a file containing your API credentials.

The kaggle.json file is also required to have limited access rights, which can be set through the following:

chmod 600 src/data/kaggle.json

Initial Setup

git clone https://github.com/niralpathak/ECE_228_Project.git
sh ECE_228_Project/src/data/setup.sh

The .sh script does the following:

  1. Download, extract, and relocate train & test files from Kaggle
  2. Install Python dependencies

How to run code

In src/model/keras/, each main .py script corresponds to a particular network model .py script. For example, main_custom_0.py will train a network specified in net_custom_0.py.

The classes in net_*.py inherit from the Solver class in solver.py for modularity.

cd ECE_228_Project/src/models/keras
python main_*.py --batch=<batch_size> --epochs=<epoch_size> --training_imgs=../../data/train-jpg/ --training_labels=../../data/train_v2.csv --patience=<patience_size> --testing_imgs=../../data/test-jpg/ --sample_submission=../../data/sample_submission_v2.csv --checkpoint_dir=<checkpoint_dir>

Example

python main_custom_0.py --batch=128 --epochs=10 --training_imgs=../../data/train-jpg/ --training_labels=../../data/train_v2.csv --patience=3 --testing_imgs=../../data/test-jpg/ --sample_submission=../../data/sample_submission_v2.csv --checkpoint_dir=./checkpoint_main

ece_228_project_public's People

Contributors

niralpathak avatar

Watchers

Samuel Sunarjo 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.