code: 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);
              }
          });
      }
docs: Converts a continuous JavaRDD LabeledPoint to a JavaRDD DataSet.
  @param data JavaRdd LabeledPoint
  @param preCache boolean pre-cache rdd before operation
  @return