Missing File
Class predict.marketPredict at first could't find the file marketdate.eg so I copied the file from encog1. However with that file, I receive : Exception in thread "main" org.encog.persist.PersistError: Can't find objects collection, invalid file. Any advice on making a valid marketdata.eg?
Thanks




I should probably explain this better in the example comments, but at any rate, you run this example in three steps.
Step 1: Generate Training Data
Execute the class "MarketBuildTraining". This will build the file that you are missing. This generates the training data, as well as the neural network and saves it to a .eg file.
Step 2: Train the Neural Network
Execute the class "MarketTrain", it will read the file from step 1 and begin training it. Modify the values in Config to determine how long you want to train for.
Step 3: Evaluate the Trained Network
Once step 2 is done, the file is resaved. This time, with a trained neural network. This program will test the network on market data from the last 30 days and report on how accurate it is.
This is a very simple example, using one company, essentially in a vacuum to predict itself. So the results will not be overly accurate, but it does recognize some trends in some companies. I hope to have better stockmarket examples at some point.