GitHub user wangmiao1981 opened a pull request:
https://github.com/apache/spark/pull/12116
[SPARK-12569][PySpark][ML]:DecisionTreeRegressor: provide variance of
prediction: Python AP
## What changes were proposed in this pull request?
A new column VarianceCol has been added to DecisionTreeRegressor in ML
scala code.
This patch adds the corresponding Python API, HasVarianceCol, to class
DecisionTreeRegressor.
## How was this patch tested?
./dev/lint-python
PEP8 checks passed.
rm -rf _build/*
pydoc checks passed.
./python/run-tests --python-executables=python2.7 --modules=pyspark-ml
Running PySpark tests. Output is in
/Users/mwang/spark_ws_0904/python/unit-tests.log
Will test against the following Python executables: ['python2.7']
Will test the following Python modules: ['pyspark-ml']
Finished test(python2.7): pyspark.ml.evaluation (12s)
Finished test(python2.7): pyspark.ml.clustering (18s)
Finished test(python2.7): pyspark.ml.classification (30s)
Finished test(python2.7): pyspark.ml.recommendation (28s)
Finished test(python2.7): pyspark.ml.feature (43s)
Finished test(python2.7): pyspark.ml.regression (31s)
Finished test(python2.7): pyspark.ml.tuning (19s)
Finished test(python2.7): pyspark.ml.tests (34s)
(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/wangmiao1981/spark fix_api
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/12116.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 #12116
----
commit 5a6de8f3d4830b5d0a1ea2a437091a67deb121fc
Author: [email protected] <[email protected]>
Date: 2016-04-01T21:36:51Z
Add variance of prediction: Python API for DecisionTreeRegressor
----
---
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]