code: public MultiLayerNetwork fitLabeledPoint(JavaRDD<LabeledPoint> rdd) {
          int nLayers = network.getLayerWiseConfigurations().getConfs().size();
          FeedForwardLayer ffl = (FeedForwardLayer) network.getLayerWiseConfigurations().getConf(nLayers - 1).getLayer();
          JavaRDD<DataSet> ds = MLLibUtil.fromLabeledPoint(sc, rdd, ffl.getNOut());
          return fit(ds);
      }
docs: Fit a MultiLayerNetwork using Spark MLLib LabeledPoint instances.
  This will convert the labeled points to the internal DL4J data format and train the model on that
  
  @param rdd the rdd to fitDataSet
  @return the multi layer network that was fitDataSet