GitHub user holdenk opened a pull request:
https://github.com/apache/spark/pull/12889
[SPARK-15113][PySpark][ML] Add missing num features num classes
## What changes were proposed in this pull request?
Add missing `numFeatures` and `numClasses` to the wrapped Java models in
PySpark ML pipelines. Also tag `DecisionTreeClassificationModel` as
Expiremental to match Scala doc.
## How was this patch tested?
Extended doctests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/holdenk/spark
SPARK-15113-add-missing-numFeatures-numClasses
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12889.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 #12889
----
commit 0ef982672a4075b392ea915db4d56117d200e55c
Author: Holden Karau <[email protected]>
Date: 2016-05-04T06:28:34Z
Add JavaPredictionModel to expose numFeatures for wrapped Java models
commit 256c550fd11aa16575e114a4f96a63f6f0f552c1
Author: Holden Karau <[email protected]>
Date: 2016-05-04T06:29:45Z
Add numFeatures to DecisionTreeModel in regression
commit c1961ae344e3728d49ecb8b05a060d574585971d
Author: Holden Karau <[email protected]>
Date: 2016-05-04T06:31:28Z
Add numFeatures / numClasses to the wrapped Java models in
classification.py and mark experimental class to match scala class
----
---
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]