Skip to content
Permalink
Browse files

Change so data_sz is always correct number

  • Loading branch information
joesweeney committed Apr 22, 2017
1 parent e38d720 commit 8ccf6e96c45d30230162656828942d7526fc75bb
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/LearningEvaluator.java
@@ -40,7 +40,7 @@ public void updateWeights(){
// 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");

0 comments on commit 8ccf6e9

Please sign in to comment.
You can’t perform that action at this time.