Github user manishamde commented on a diff in the pull request:
https://github.com/apache/spark/pull/3320#discussion_r20618922
--- Diff: python/pyspark/mllib/tree.py ---
@@ -181,8 +180,191 @@ def trainRegressor(data, categoricalFeaturesInfo,
>>> model.predict(rdd).collect()
[1.0, 0.0]
"""
- return DecisionTree._train(data, "regression", 0,
categoricalFeaturesInfo,
- impurity, maxDepth, maxBins,
minInstancesPerNode, minInfoGain)
+ return cls._train(data, "regression", 0, categoricalFeaturesInfo,
+ impurity, maxDepth, maxBins,
minInstancesPerNode, minInfoGain)
+
+
+class WeightedEnsembleModel(JavaModelWrapper):
--- End diff --
Yes. Let's make it internal for now. We still need to figure out how to
handle it with the new MLlib API so it's better not to expose it yet.
We will have to implement GradientBoostingModel class then that extends
WeightedEnsembleModel.
---
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]