Code Monkey home page Code Monkey logo

nnalgs's Introduction

Introduction

  • package for neural network algorithm training and tuning
  • uproot+lmdb+keras/keras-tuner
  • [email protected]

Installation

  • install anaconda

  • then restore the environments

conda env create -f CondaEnv.yml
  • (updated on 04/06/2020 using)
conda env export > CondaEnv.yml
  • git clone this repository

How to run it

# to train with static architecture
python NNAlgs Train NNAlgs/config/ConfDSNN.yaml
# to tune hyper-parameters
python NNAlgs Tune NNAlgs/config/ConfDSNN.yaml

How to add a new project

Layout

.
├── CondaEnv.yml
├── README.md
├── __main__.py
├── config
│   ├── ArchDSNN.yaml
│   ├── ArchLSTM.yaml
│   ├── ConfDSNN.yaml
│   ├── ConfLSTM.yaml
│   ├── DatasetBuilder.py
│   ├── GeneratorLoaders.py
│   └── __init__.py
├── data
│   ├── json
│   └── lmdb
├── nnalgs
│   ├── __init__.py
│   ├── algs
│   │   ├── DataGenerators.py
│   │   ├── LMDBCreators.py
│   │   ├── Models.py
│   │   └── __init__.py
│   ├── base
│   │   ├── BuilderDirector.py
│   │   ├── DataGenerator.py
│   │   ├── DatasetBuilder.py
│   │   ├── GeneratorLoader.py
│   │   ├── IDataset.py
│   │   ├── LMDBCreator.py
│   │   └── __init__.py
│   └── utils
│       ├── CallBack.py
│       ├── Common.py
│       ├── Enum.py
│       ├── LMDBGen.py
│       ├── Logger.py
│       ├── Math.py
│       └── __init__.py
└── nnexec
    ├── TrainDecayMode.py
    ├── TuneDecayMode.py
    └── __init__.py

TODOs

  • increase GPU usage [1]

[1] What does GPU-Util means in nvidia-smi

nnalgs's People

Contributors

bowenzhang23 avatar

Watchers

James Cloos avatar  avatar

Forkers

runngezhang

nnalgs's Issues

Validation Generator and Spliting

  • testing will be done in thor (more properly than doing it here but any plotting here is also good), don't worry

  • validation generator might need different batch size (larger)

  • so far 4:1 train/validation splitting, which is hardcoded, not good

  • in the future, a cross validation might also need to be considered..

Minor: tensorflow 2.x -> multi adaptor

The code doesn't work if tensoflow 2.x is installed instead of 1.15 as recommended in CondaEnv.yml

It's still not clear how to solved the issue.

It's known that it is stem from using the keras.utils.Sequence as data generator

Might think about using a simple python generator function to replace this, but not sure if it will do the job.

Anyway we still use 1.15 for now..

Minor: event weight

Sometimes the MC sample has weights. This should be taken into account in the, e.g., loss function or so.

But currently this is not supported in this package.

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.