GitHub user wangmiao1981 opened a pull request:
https://github.com/apache/spark/pull/12882
[SPARK-14900][ML]:spark.ml classification metrics should include accuracy
## What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
Add accuracy to MulticlassMetrics class and add corresponding code in
MulticlassClassificationEvaluator.
## How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration
tests, manual tests)
Scala Unit tests in ml.evaluation
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangmiao1981/spark accuracy
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12882.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #12882
----
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]