public static JavaRDD < DataSet > fromContinuousLabeledPoint ( JavaRDD < LabeledPoint > data , boolean preCache ) { if ( preCache && ! data . getStorageLevel ( ) . useMemory ( ) ) { data . cache ( ) ; } return data . map ( new Function < LabeledPoint , DataSet > ( ) { @ Override public DataSet call ( LabeledPoint lp ) { return convertToDataset ( lp ) ; } } ) ; }
Converts a continuous JavaRDD LabeledPoint to a JavaRDD DataSet .