public static double [ ] toRegressionOutputVector ( Iterable < MLRegressionRecord > data ) { final Stream < MLRegressionRecord > stream = StreamSupport . stream ( data . spliterator ( ) , false ) ; return stream . mapToDouble ( MLRegressionRecord :: getRegressionOutput ) . toArray ( ) ; }
Generates a vector of regression outputs for every record