Coder Social home page Coder Social logo

neuralnet_v1's Introduction

TensorFlow & PyTorch Research Library

Setup library

git clone https://github.com/araujoalexandre/neuralnet.git
export PROJECTDIR=`pwd`/neuralnet

# define the data and models folders
mkdir data models
export DATADIR=`pwd`/data
export WORKDIR=`pwd`

# download and processed datasets 
cd neuralnet
python3 code/dataset/generate_tfrecords.py --output_dir=$DATADIR --dataset=all

Run training and eval

The config.yaml file should be in the config folder

./sub/submit.py --config=config --cluster=None | bash

You may have to choose the backend given the model to use

./sub/submit.py --config=config_torch --backend=pytorch --cluster=None | bash

To make an eval under attack after training

./sub/submit.py --mode=attack --attack=fgm --folder=XXX --cluster=None | bash 

Attack choice: fgm, pgd, carlini and elasticnet

Grid Search

To launch a series of experiment with different parameters, it possible to use the config file as a template and populate it with values.

Example of config file as template:

default: &DEFAULT
  train_batch_size:           {batch_size}
  num_epochs:                 {epochs}
  start_new_model:            True
  train_num_gpu:              2
...

You can populate the values with the "params" parameter:

./sub/submit.py --config=config --cluster=None --grid_search="epochs:5,10,15;batch_size:32,64,128}'

New config file will be generated and saved in the 'config_gen' folder. Each config file will have a different id.

neuralnet_v1's People

Contributors

araujoalexandre avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

andrewssobral

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.