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 ) ; }
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