@ Deprecated public static JavaRDD < DataSet > fromLabeledPoint ( JavaSparkContext sc , JavaRDD < LabeledPoint > data , final long numPossibleLabels ) { return data . map ( new Function < LabeledPoint , DataSet > ( ) { @ Override public DataSet call ( LabeledPoint lp ) { return fromLabeledPoint ( lp , numPossibleLabels ) ; } } ) ; }
From labeled point