Github user jkbradley commented on a diff in the pull request:
https://github.com/apache/spark/pull/15913#discussion_r89537785
--- Diff: mllib/src/main/scala/org/apache/spark/ml/tree/treeParams.scala ---
@@ -443,12 +429,11 @@ private[ml] trait GBTParams extends
TreeEnsembleParams with HasMaxIter with HasS
* (default = 0.1)
* @group setParam
*/
- def setStepSize(value: Double): this.type = set(stepSize, value)
-
- override def validateParams(): Unit = {
+ def setStepSize(value: Double): this.type = {
require(ParamValidators.inRange(0, 1, lowerInclusive = false,
upperInclusive = true)(
- getStepSize), "GBT parameter stepSize should be in interval (0, 1],
" +
- s"but it given invalid value $getStepSize.")
+ value), "GBT parameter stepSize should be in interval (0, 1], " +
+ s"but it given invalid value $value.")
--- End diff --
"it given invalid value" -> "it was given an invalid value"
---
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]