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_keyobject in Line 9 ofRecessionPredictor_paths.pyon your local computer. - Run
RecessionPredictor_master.pyvia the command line. It takes one positional argumentprocess, whose choices arebacktestordeploy:
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.csvfile.
License: MIT
For a more in depth explanation of the code, click here.