GitHub user ludatabricks opened a pull request:
https://github.com/apache/spark/pull/21204
[SPARK-24132][ML]Expand instrumentation for classification
## What changes were proposed in this pull request?
- Add OptionalInstrumentation as argument for getNumClasses in
ml.classification.Classifier
- Change the function call for getNumClasses in train() in
ml.classification.DecisionTreeClassifier,
ml.classification.RandomForestClassifier, and ml.classification.NaiveBayes
- Modify the instrumentation creation in ml.classification.LinearSVC
- Change the log call in ml.classification.OneVsRest and
ml.classification.LinearSVC
## How was this patch tested?
Manual.
Please review http://spark.apache.org/contributing.html before opening a
pull request.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ludatabricks/spark-1 SPARK-23686
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/21204.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 #21204
----
commit 7b75ed6aaa21faf68f5f2db04eaf550f2d468542
Author: Lu WANG <lu.wang@...>
Date: 2018-05-01T06:13:36Z
Expand instrumentation for classification
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]