title: How to get classification probabilities from MultilayerPerceptronClassifier?
body: <p>This seems most related to: <a href="https://stackoverflow.com/questions/31231514/how-to-get-the-probability-per-instance-in-classifications-models-in-spark-mllib">How to get the probability per instance in classifications models in spark.mllib</a></p>
  
  <p>I'm doing a classification task with spark ml, building a MultilayerPerceptronClassifier.  Once I build a model, I can get a predicted class given an input vector, but I can't get the probability for each output class.  The above listing indicates that NaiveBayesModel supports this functionality as of Spark 1.5.0 <a href="http://spark.apache.org/docs/latest/api/java/org/apache/spark/mllib/classification/NaiveBayesModel.html#predictProbabilities(org.apache.spark.mllib.linalg.Vector)" rel="nofollow noreferrer">(using a predictProbabilities method)</a>.  I would like to get at this functionality for the MLPC.  Is there a way I can hack at it to get my probabilities?  Will it be included in 1.6.2?</p>