This repository is used to train the Tensorflow model, track the training metrics on Neptune AI, and deploy model artifacts to Hugging Face if the model accuracy has improved since the deployed model became stale.
First install the Python environment using:
conda env create -f environment.yml
Then you can activate the environment with the command below:
conda activate stock_ml_train
To track each training iteration, you will first need to create an account at Neptune.ai. Then follow the Create a Neptune Project tutorial to create project that will store each experiment run.
In order for this code to communicate with Neptune.ai, you will need to provide it the API token as shown in the Set Neptune credentials page. This code requires the user to store the token as NEPTUNE_TOKEN
in a .env
file.
This repository interacts with the following services below: