Github user sethah commented on a diff in the pull request:
https://github.com/apache/spark/pull/15574#discussion_r84956369
--- Diff:
mllib/src/main/scala/org/apache/spark/ml/regression/GBTRegressor.scala ---
@@ -123,9 +123,17 @@ class GBTRegressor @Since("1.4.0") (@Since("1.4.0")
override val uid: String)
val oldDataset: RDD[LabeledPoint] = extractLabeledPoints(dataset)
val numFeatures = oldDataset.first().features.size
val boostingStrategy =
super.getOldBoostingStrategy(categoricalFeatures, OldAlgo.Regression)
+
+ val instr = Instrumentation.create(this, oldDataset)
+ instr.logParams(params: _*)
+ instr.logNumFeatures(numFeatures)
+ instr.logNumClasses(0)
--- End diff --
Actually, I'm going to leave RF the way it is since it has been logging
numClasses as zero for regression since it was created.
---
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]