Author: Terrence Zhang
Python (3.7.13)
Modules: requirements.txt
- Download all folders and files in the repository. Maintain the file organization structure.
- Get your personal FRED API key here
- Copy and paste your FRED API key into the
fred_api_key
object in Line 9 ofRecessionPredictor_paths.py
on your local computer. - Run
RecessionPredictor_master.py
via the command line. It takes one positional argumentprocess
, whose choices arebacktest
ordeploy
:
backtest
: runs all modules required for backtesting models. These modules get the data, perform exploratory analysis, build features, conduct backtests, and plot results from the backtest.deploy
: runs all modules required for model deployment. These modules get the data, build features, and deploy the chosen model onto the most recent data. Model outputs are saved to thdeployment_chart.csv
file.
License: MIT
For a more in depth explanation of the code, click here.