Github user JeremyNixon commented on a diff in the pull request:
https://github.com/apache/spark/pull/11335#discussion_r54183627
--- Diff: python/pyspark/ml/tuning.py ---
@@ -288,6 +289,172 @@ def copy(self, extra=None):
return CrossValidatorModel(self.bestModel.copy(extra))
+class TrainValidationSplit(Estimator, HasSeed):
+
+ estimator = Param(Params._dummy(), "estimator", "estimator to be
tested")
+ estimatorParamMaps = Param(Params._dummy(), "estimatorParamMaps",
"estimator param maps")
+ evaluator = Param(
+ Params._dummy(), "evaluator",
+ "evaluator used to select hyper-parameters that maximize the
metric")
+ trainRatio = Param(Params._dummy(), "trainRatio", "proportion for
train-validation ratio")
--- End diff --
The Scala parameter comments above trainRatio also say 'Param for ratio
between train and validation data. Must be between 0 and 1.' - seems faster to
parse for a developer. Have a preference?
---
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]