Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Change so data_sz is always correct number
  • Loading branch information
joesweeney committed Apr 22, 2017
1 parent e38d720 commit 8ccf6e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LearningEvaluator.java
Expand Up @@ -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");
Expand Down

0 comments on commit 8ccf6e9

Please sign in to comment.