Github user feynmanliang commented on a diff in the pull request:
https://github.com/apache/spark/pull/8377#discussion_r38117589
--- Diff: docs/ml-guide.md ---
@@ -868,6 +868,132 @@ jsc.stop();
</div>
+## Example: Model Selection via Train Validation Split
+In addition to `CrossValidator` Spark also offers
+[`TrainValidationSplit`](api/scala/index.html#org.apache.spark.ml.tuning.TrainValidationSplit)
for hyper-parameter tuning.
+`TrainValidationSplit` only evaluates each combination of parameters once
as opposed to k times in
+ case of `CrossValidator`. It is therefore less expensive, but will not
produce as reliable results.
+
+`TrainValidationSplit` takes an `Estimator`, a set of `ParamMap`s provided
in the `estimatorParamMaps` parameter, and an
+[`Evaluator`](api/scala/index.html#org.apache.spark.ml.Evaluator).
--- End diff --
@jkbradley has told me in the past to keep the scala API links under the
scala codetab and to create a separate version linking java API docs under java
codetabs.
However, it looks like we have been inconsistent throughout `ml-guide.md`
about this so I'm OK with how it looks now. Just wanted to flag it in case
others have something to say.
---
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]