diff options
author | JeremyNixon <jnixon2@gmail.com> | 2016-03-10 09:09:56 +0200 |
---|---|---|
committer | Nick Pentreath <nick.pentreath@gmail.com> | 2016-03-10 09:18:15 +0200 |
commit | 3e3c3d58d8d42b42e930d42eb70b0e84d02967eb (patch) | |
tree | 9383504010bacd44331a936b1c349db7cb90af15 /docs/ml-guide.md | |
parent | 8bcad28a5a6788c96bf1c302eb6f18d37b798b03 (diff) | |
download | spark-3e3c3d58d8d42b42e930d42eb70b0e84d02967eb.tar.gz spark-3e3c3d58d8d42b42e930d42eb70b0e84d02967eb.tar.bz2 spark-3e3c3d58d8d42b42e930d42eb70b0e84d02967eb.zip |
[SPARK-13706][ML] Add Python Example for Train Validation Split
## What changes were proposed in this pull request?
This pull request adds a python example for train validation split.
## How was this patch tested?
This was style tested through lint-python, generally tested with ./dev/run-tests, and run in notebook and shell environments. It was viewed in docs locally with jekyll serve.
This contribution is my original work and I license it to Spark under its open source license.
Author: JeremyNixon <jnixon2@gmail.com>
Closes #11547 from JeremyNixon/tvs_example.
Diffstat (limited to 'docs/ml-guide.md')
-rw-r--r-- | docs/ml-guide.md | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/docs/ml-guide.md b/docs/ml-guide.md index a5a825f64e..99167873cd 100644 --- a/docs/ml-guide.md +++ b/docs/ml-guide.md @@ -316,4 +316,8 @@ The `ParamMap` which produces the best evaluation metric is selected as the best {% include_example java/org/apache/spark/examples/ml/JavaModelSelectionViaTrainValidationSplitExample.java %} </div> +<div data-lang="python"> +{% include_example python/ml/train_validation_split.py %} +</div> + </div> |