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