From 8ccf6e96c45d30230162656828942d7526fc75bb Mon Sep 17 00:00:00 2001 From: Joe Sweeney Date: Sat, 22 Apr 2017 15:20:39 -0400 Subject: [PATCH] Change so data_sz is always correct number --- src/LearningEvaluator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LearningEvaluator.java b/src/LearningEvaluator.java index 91a6556..47d80eb 100644 --- a/src/LearningEvaluator.java +++ b/src/LearningEvaluator.java @@ -40,7 +40,7 @@ public class LearningEvaluator extends BaseEvaluator{ // get a lot of singular matrices // we could do samuel's method or come up with another function to modify the coefficients int curr_in = 0; - int data_sz = 8; // need to do regression with data sets of size 10, so each iteration of loop uses 10 lines of data + int data_sz = params.get(0).length + 1; // need to do regression with data sets of size 10, so each iteration of loop uses 10 lines of data while(params.size() - curr_in > data_sz){ double[] vals = new double [data_sz]; //converting arraylist to array System.out.println("printing values");