This python code will use historic data to predict whether the SNP500 will increase or decrease over the next week
Setup Instructions:
- install yfinance to provide historical data about the SNP500.
pip install yfinance
- install scikit-learn used for calculating the precision of the model.
pip install scikit-learn
- install xgboost used for gradient boosting. It builds trees sequentially, where each new tree tries to fix the errors of the previous one.
pip install xgboost
- install pennylane module for creating the quantum computing machine learning model
pip install pennylane
Instruction of Use:
To recieve instruction on how much to invest in the SNP500 (assuming a starting capital of £10,000), run the decision_engine.py file.