private DataPoint getPredVecR ( DataPoint data ) { Vec w = new DenseVector ( baseRegressors . size ( ) ) ; for ( int i = 0 ; i < baseRegressors . size ( ) ; i ++ ) w . set ( i , baseRegressors . get ( i ) . regress ( data ) ) ; return new DataPoint ( w ) ; }
Gets the predicted vector wrapped in a new DataPoint from a data point assuming we are doing regression