private static List < LabeledPoint > toLabeledPoint ( List < DataSet > labeledPoints ) { List < LabeledPoint > ret = new ArrayList <> ( ) ; for ( DataSet point : labeledPoints ) { ret . add ( toLabeledPoint ( point ) ) ; } return ret ; }
Convert a list of dataset in to a list of labeled points