Github user manishamde commented on a diff in the pull request: https://github.com/apache/spark/pull/3320#discussion_r20619737 --- 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, if we decide to go down this route of using a new model class per algo. I will defer this choice to @mengxr and @jkbradley since I am not well-versed with the new MLlib api to understand the tradeoffs.
--- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org