Skip to content

Commit b2bcc98

Browse files
author
Kevin
committed
Commit before I screw with things
1 parent dd1b002 commit b2bcc98

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/com/autoStock/backtest/BacktestPredictFuture.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void run(){
8989

9090
for (DbStockHistoricalPrice slice : listOfResultsIS){
9191
Co.println("--> Slice: (" + sequence + ")" + slice.dateTime + ", " + slice.priceClose);
92-
MathTools.getPercentChangeList(percentChangeWindow, slice.priceOpen, slice.priceHigh, slice.priceLow, slice.priceClose);
92+
MathTools.addPercentChangeList(percentChangeWindow, slice.priceOpen, slice.priceHigh, slice.priceLow, slice.priceClose);
9393

9494
if (sequence != 0 && sequence % INPUT_POINTS == 0){
9595
Co.println("--> Would add slice at: " + sequence);
@@ -128,7 +128,7 @@ public void run(){
128128
BasicNetwork network = getMLNetwork(INPUT_NEURONS, OUTPUT_NEURONS);
129129
MLTrain train = new ResilientPropagation(network, dataSet);
130130

131-
for (int i=0; i<10000; i++){
131+
for (int i=0; i<1000; i++){
132132
train.iteration();
133133
System.out.println("" + train.getError() * 1000);
134134
}

src/com/autoStock/tools/MathTools.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public static double[] getDeltasAsPercent(double[] arrayOfDouble) {
358358

359359
private static double[] lastValues = new double[4];
360360

361-
public static void getPercentChangeList(ArrayList<Double> resultList, double... values){
361+
public static void addPercentChangeList(ArrayList<Double> resultList, double... values){
362362
if (resultList.size() == 0){
363363
for (int i=0; i<values.length; i++){
364364
resultList.add(Double.NaN);

0 commit comments

Comments
 (0)