GitHub user WeichenXu123 opened a pull request:
https://github.com/apache/spark/pull/15435
[SPARK-17139][ML] Add model summary for MultinomialLogisticRegression
## What changes were proposed in this pull request?
Add model summary for MultinomialLogisticRegression.
currently, using `MulticlassMetrics` to do the summary.
because multi-class case has some differences with binary case,
I just expose the `MulticlassMetrics` interface about summary for now.
And I add `findSummaryModelAndPredictionCol` method because the
`MulticlassMetrics` need the `predictionCol` value. Although the
`predictionCol` can be calculated from `probabilityCol`, put some code here to
do this thing will cause repeated code, so I do not use that way.
## How was this patch tested?
Existing tests.
(If this patch involves UI changes, please attach a screenshot; otherwise,
remove this)
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/WeichenXu123/spark mlor_summary
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/15435.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 #15435
----
commit e93740ead908251cebee22cc00059571a6e22a3f
Author: WeichenXu <[email protected]>
Date: 2016-10-11T00:25:45Z
update
----
---
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]