Training neural networks to buy and sell stocks
This was originally conceieved as a project for UC's Revolution Hackathon. The project was so exciting though, that we decided to work on it prior to the hackathon, and so will not be "competing" for any prizes, but will still be making use of the time to continue development.
See requirements.txt for required python packages. In order to use CUDA you should have an appropriate GPU and the following versions installed. This guide should help. You will need to sign up for the NVIDIA Developer program (it's free).
Usage: main.py [-h] [--inputSize INPUTSIZE] [--forecast FORECAST] [--stocksToRead STOCKSTOREAD] [--trainingFraction TRAININGFRACTION]
A machine learning program to evaluate stocks
optional arguments: -h, --help
show this help message and exit
--inputSize INPUTSIZE
Specifies how many inputs (neurons) should be used for the first layer of the neural network.
Default is 240 days (i.e. 1 year's worth of historical data).
--forecast FORECAST
Specifies how many (business) days into the future the network should try to predict a value.
Default is 20 days (1 month).
--stocksToRead STOCKSTOREAD
Specifies how many stocks' historical data should be used to train/validate the model.
Default is 10.
--trainingFraction TRAININGFRACTION
Specifies what percentage of the data you want to be set aside for training.
Default is 0.6.