diff options
author | Yanbo Liang <ybliang8@gmail.com> | 2016-06-06 09:36:34 +0100 |
---|---|---|
committer | Sean Owen <sowen@cloudera.com> | 2016-06-06 09:36:34 +0100 |
commit | a95252823e09939b654dd425db38dadc4100bc87 (patch) | |
tree | 3d563d80f9d6c946b882a31145a12383e0b649bf /python/pyspark/mllib/evaluation.py | |
parent | fd8af397132fa1415a4c19d7f5cb5a41aa6ddb27 (diff) | |
download | spark-a95252823e09939b654dd425db38dadc4100bc87.tar.gz spark-a95252823e09939b654dd425db38dadc4100bc87.tar.bz2 spark-a95252823e09939b654dd425db38dadc4100bc87.zip |
[SPARK-15771][ML][EXAMPLES] Use 'accuracy' rather than 'precision' in many ML examples
## What changes were proposed in this pull request?
Since [SPARK-15617](https://issues.apache.org/jira/browse/SPARK-15617) deprecated ```precision``` in ```MulticlassClassificationEvaluator```, many ML examples broken.
```python
pyspark.sql.utils.IllegalArgumentException: u'MulticlassClassificationEvaluator_4c3bb1d73d8cc0cedae6 parameter metricName given invalid value precision.'
```
We should use ```accuracy``` to replace ```precision``` in these examples.
## How was this patch tested?
Offline tests.
Author: Yanbo Liang <ybliang8@gmail.com>
Closes #13519 from yanboliang/spark-15771.
Diffstat (limited to 'python/pyspark/mllib/evaluation.py')
0 files changed, 0 insertions, 0 deletions