code: @Deprecated
      public static JavaRDD<LabeledPoint> fromDataSet(JavaSparkContext sc, JavaRDD<DataSet> data) {
  
          return data.map(new Function<DataSet, LabeledPoint>() {
              @Override
              public LabeledPoint call(DataSet pt) {
                  return toLabeledPoint(pt);
              }
          });
      }
docs: Convert an rdd of data set in to labeled point
  @param sc the spark context to use
  @param data the dataset to convert
  @return an rdd of labeled point
  @deprecated Use {@link #fromDataSet(JavaRDD)}