aracelimanzanoch / seed-keras-models

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SEED AI models

Must have

** Use anaconda or virtualenvwrapper

Set workspace

# with virtualenvwrapper
$ mkvirtualenv -p python3 bot # create virtual environment
$ workon bot # enter VE
(bot) $ pip install -r requirements.txt # install dependencies (make sure you are in the bot VE)
(bot) $ deactivate # exit VE

# with anaconda
$ conda env create -f environment.yml # create virtual environment
$ conda activate bot # enter VE
(bot) $ conda deactivate # exit VE

Run

(bot) $ python -m pkg_name.cmd -h # to train the pkg

(bot) $ python -m api # to run the api endpoint to predict

Folder Structure

Split each NN into different packages

.
├── README.md
├── api.py # main API handler
├── requirements.txt
├── setup.py # package information
├── pkg_name # summarizer PKG
│   ├── __init__.py
│   ├── api.py # API to consume the model predictions
│   ├── cmd.py # CLI to train the model
│   ├── model.py # Keras model
│   └── task.py # training logic
└── utils # commons
    └── __init__.py

About


Languages

Language:Python 100.0%