aboutsummaryrefslogtreecommitdiff
path: root/python
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 /python
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 'python')
-rw-r--r--python/pyspark/ml/evaluation.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/python/pyspark/ml/evaluation.py b/python/pyspark/ml/evaluation.py
index b8b2b37af5..c480525e9b 100644
--- a/python/pyspark/ml/evaluation.py
+++ b/python/pyspark/ml/evaluation.py
@@ -258,9 +258,7 @@ class MulticlassClassificationEvaluator(JavaEvaluator, HasLabelCol, HasPredictio
>>> evaluator = MulticlassClassificationEvaluator(predictionCol="prediction")
>>> evaluator.evaluate(dataset)
0.66...
- >>> evaluator.evaluate(dataset, {evaluator.metricName: "precision"})
- 0.66...
- >>> evaluator.evaluate(dataset, {evaluator.metricName: "recall"})
+ >>> evaluator.evaluate(dataset, {evaluator.metricName: "accuracy"})
0.66...
.. versionadded:: 1.5.0