Guforu Guforu - 1 month ago 14
Java Question

Metrics of the class RankingMetrics, Spark

I use currently the class RankingMetrics and can calculate the

precision
. According API of this class, the method for the calculating of
recall
doesn't exist. Can somebody tell me, where I can find the implementation of
recall
for Spark Java?

PS
I have found also some useful link over all metrics

Answer

The recall method exists just with the org.apache.spark.mllib.evaluation.MulticlassMetrics, org.apache.spark.mllib.evaluation.MultilabelMetrics and org.apache.spark.mllib.evaluation.BinaryClassificationMetrics for the moment.

Check the javadoc for MulticlassMetrics, MultilabelMetrics and BinaryClassificationMetrics.

[with Spark 1.1+]

Comments