Github user sethah commented on a diff in the pull request:
https://github.com/apache/spark/pull/8675#discussion_r39698374
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/classification/GBTClassifier.scala ---
@@ -175,6 +177,14 @@ final class GBTClassificationModel(
require(_trees.length == _treeWeights.length, "GBTClassificationModel
given trees, treeWeights" +
s" of non-matching lengths (${_trees.length}, ${_treeWeights.length},
respectively).")
+ /**
+ * Construct a GBTClassificationModel
+ * @param _trees Decision trees in the ensemble.
+ * @param _treeWeights Weights for the decision trees in the ensemble.
+ */
+ def this(uid: String, _trees: Array[DecisionTreeRegressionModel],
_treeWeights: Array[Double]) =
+ this(uid, _trees, _treeWeights, -1)
+
--- End diff --
@jkbradley I want to make sure I interpreted your note correctly.
---
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]