Git Product home page Git Product logo

conj_grad's Introduction

NLCG Optimization for Deep Learning

This is the base repository for the Master's thesis in Computer Science at the University of St. Gallen. To start training run the script main.py with all necessary arguments. These include:

  • path
    • Directory to where data should be stored
  • model
    • Choose which model should be used for training, they should be defined in src/models/model_archs
  • model_size
    • Depending on the model will allow to determine its size
  • data
    • Choose the dataset for optimization (MNIST, Fashion MNIST, CIFAR10, CIFAR100, SVHN)
  • dtype
    • Precision used (float32, float64)
  • optimizer
    • Decide on the optimizer (NLCG, Adam, RMSProp, SGD)
  • batch_size
    • Choose the size of your batches
  • gpu
    • In case of multiple available GPUs, decide how many and which ones you want to use
  • run_eagerly
    • Use eager execution in TensorFlow
  • max_epochs
    • Limit the number of epochs
  • use_wandb
    • Track your experiments with WandB
  • max_calls
    • Limit the number of optimization steps

Here is an exemplary run for the script:

python main.py --path "/home/user/code/data/tf_data" --model FlatMLP --model_size small --data MNIST --dtype float64 --optimizer ADAM --batch_size 6000 --gpu 4 --run_eagerly --max_epochs 50000 --use_wandb --max_calls 6697

Find more in the experiment folder.

conj_grad's People

Contributors

marccgrau avatar

Watchers

Kostas Georgiou 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.