Github user sethah commented on a diff in the pull request:
https://github.com/apache/spark/pull/11335#discussion_r54168918
--- 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 description for this parameter in scala is "ratio between training set
and validation set (>= 0 && <= 1)". It would be good to maintain consistency
here.
---
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]