aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorJeremyNixon <jnixon2@gmail.com>2016-02-23 15:57:29 -0800
committerXiangrui Meng <meng@databricks.com>2016-02-23 15:57:29 -0800
commit230bbeaa614ed0ee87ecceece42355dd9a4bacb3 (patch)
tree79804a397f59d67c84b9405e190d37eec3f7bbfa /docs
parent8d29001dec5c3695721a76df3f70da50512ef28f (diff)
downloadspark-230bbeaa614ed0ee87ecceece42355dd9a4bacb3.tar.gz
spark-230bbeaa614ed0ee87ecceece42355dd9a4bacb3.tar.bz2
spark-230bbeaa614ed0ee87ecceece42355dd9a4bacb3.zip
[SPARK-10759][ML] update cross validator with include_example
This pull request uses {%include_example%} to add an example for the python cross validator to ml-guide. Author: JeremyNixon <jnixon2@gmail.com> Closes #11240 from JeremyNixon/pipeline_include_example.
Diffstat (limited to 'docs')
-rw-r--r--docs/ml-guide.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/ml-guide.md b/docs/ml-guide.md
index 5900d665b3..a5a825f64e 100644
--- a/docs/ml-guide.md
+++ b/docs/ml-guide.md
@@ -283,6 +283,11 @@ However, it is also a well-established method for choosing parameters which is m
{% include_example java/org/apache/spark/examples/ml/JavaModelSelectionViaCrossValidationExample.java %}
</div>
+<div data-lang="python">
+
+{% include_example python/ml/cross_validator.py %}
+</div>
+
</div>
## Example: model selection via train validation split