aboutsummaryrefslogtreecommitdiff
path: root/mllib/src/test
diff options
context:
space:
mode:
authorRuifeng Zheng <ruifengz@foxmail.com>2016-06-04 13:56:04 +0100
committerSean Owen <sowen@cloudera.com>2016-06-04 13:56:04 +0100
commit2099e05f93067937cdf6cedcf493afd66e212abe (patch)
treedf00189031ecedfea74cd07e60c6542e4cc894dc /mllib/src/test
parent2ca563cc45d1ac1c19b8e84c5a87a950c712ab87 (diff)
downloadspark-2099e05f93067937cdf6cedcf493afd66e212abe.tar.gz
spark-2099e05f93067937cdf6cedcf493afd66e212abe.tar.bz2
spark-2099e05f93067937cdf6cedcf493afd66e212abe.zip
[SPARK-15617][ML][DOC] Clarify that fMeasure in MulticlassMetrics is "micro" f1_score
## What changes were proposed in this pull request? 1, del precision,recall in `ml.MulticlassClassificationEvaluator` 2, update user guide for `mlllib.weightedFMeasure` ## How was this patch tested? local build Author: Ruifeng Zheng <ruifengz@foxmail.com> Closes #13390 from zhengruifeng/clarify_f1.
Diffstat (limited to 'mllib/src/test')
-rw-r--r--mllib/src/test/scala/org/apache/spark/ml/evaluation/MulticlassClassificationEvaluatorSuite.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/mllib/src/test/scala/org/apache/spark/ml/evaluation/MulticlassClassificationEvaluatorSuite.scala b/mllib/src/test/scala/org/apache/spark/ml/evaluation/MulticlassClassificationEvaluatorSuite.scala
index 522f6675d7..1a3a8a13a2 100644
--- a/mllib/src/test/scala/org/apache/spark/ml/evaluation/MulticlassClassificationEvaluatorSuite.scala
+++ b/mllib/src/test/scala/org/apache/spark/ml/evaluation/MulticlassClassificationEvaluatorSuite.scala
@@ -33,7 +33,7 @@ class MulticlassClassificationEvaluatorSuite
val evaluator = new MulticlassClassificationEvaluator()
.setPredictionCol("myPrediction")
.setLabelCol("myLabel")
- .setMetricName("recall")
+ .setMetricName("accuracy")
testDefaultReadWrite(evaluator)
}