【发布时间】:2016-06-28 00:57:43
【问题描述】:
这似乎与以下最相关:How to get the probability per instance in classifications models in spark.mllib
我正在使用 spark ml 进行分类任务,构建 MultilayerPerceptronClassifier。一旦我建立了一个模型,我可以得到一个给定输入向量的预测类,但我不能得到每个输出类的概率。上面的清单表明 NaiveBayesModel 从 Spark 1.5.0 (using a predictProbabilities method) 开始支持此功能。我想了解 MLPC 的这个功能。有没有办法破解它来获得我的概率?会在 1.6.2 中包含吗?
【问题讨论】:
-
在 Spark ML 中 - Spark MultilayerPerceptronClassifier Class Probabilities
标签: java scala apache-spark apache-spark-ml