spark-instrumented-optimizer/data/mllib
Xin Ren 70f6f9649b [SPARK-13013][DOCS] Replace example code in mllib-clustering.md using include_example
Replace example code in mllib-clustering.md using include_example
https://issues.apache.org/jira/browse/SPARK-13013

The example code in the user guide is embedded in the markdown and hence it is not easy to test. It would be nice to automatically test them. This JIRA is to discuss options to automate example code testing and see what we can do in Spark 1.6.

Goal is to move actual example code to spark/examples and test compilation in Jenkins builds. Then in the markdown, we can reference part of the code to show in the user guide. This requires adding a Jekyll tag that is similar to https://github.com/jekyll/jekyll/blob/master/lib/jekyll/tags/include.rb, e.g., called include_example.
`{% include_example scala/org/apache/spark/examples/mllib/KMeansExample.scala %}`
Jekyll will find `examples/src/main/scala/org/apache/spark/examples/mllib/KMeansExample.scala` and pick code blocks marked "example" and replace code block in
`{% highlight %}`
 in the markdown.

See more sub-tasks in parent ticket: https://issues.apache.org/jira/browse/SPARK-11337

Author: Xin Ren <iamshrek@126.com>

Closes #11116 from keypointt/SPARK-13013.
2016-03-03 09:32:47 -08:00
..
als [SPARK-12247][ML][DOC] Documentation for spark.ml's ALS and collaborative filtering in general 2016-02-16 13:03:28 +00:00
lr-data SPARK-2363. Clean MLlib's sample data files 2014-07-13 19:27:43 -07:00
ridge-data SPARK-2363. Clean MLlib's sample data files 2014-07-13 19:27:43 -07:00
gmm_data.txt [SPARK-5013] [MLlib] Added documentation and sample data file for GaussianMixture 2015-02-06 10:26:51 -08:00
kmeans_data.txt SPARK-2363. Clean MLlib's sample data files 2014-07-13 19:27:43 -07:00
lr_data.txt SPARK-2363. Clean MLlib's sample data files 2014-07-13 19:27:43 -07:00
pagerank_data.txt SPARK-2363. Clean MLlib's sample data files 2014-07-13 19:27:43 -07:00
pic_data.txt [SPARK-8758] [MLLIB] Add Python user guide for PowerIterationClustering 2015-07-02 09:59:54 -07:00
sample_binary_classification_data.txt [SPARK-1874][MLLIB] Clean up MLlib sample data 2014-05-19 21:29:33 -07:00
sample_fpgrowth.txt [SPARK-5939][MLLib] make FPGrowth example app take parameters 2015-02-23 08:47:28 -08:00
sample_isotonic_regression_data.txt [MLLIB][SPARK-5502] User guide for isotonic regression 2015-02-15 09:10:03 -08:00
sample_lda_data.txt [SPARK-5539][MLLIB] LDA guide 2015-02-08 23:40:36 -08:00
sample_libsvm_data.txt SPARK-2363. Clean MLlib's sample data files 2014-07-13 19:27:43 -07:00
sample_linear_regression_data.txt [SPARK-1874][MLLIB] Clean up MLlib sample data 2014-05-19 21:29:33 -07:00
sample_movielens_data.txt [SPARK-1874][MLLIB] Clean up MLlib sample data 2014-05-19 21:29:33 -07:00
sample_multiclass_classification_data.txt [SPARK-7574] [ML] [DOC] User guide for OneVsRest 2015-05-22 13:18:08 -07:00
sample_naive_bayes_data.txt [MLLIB] [DOC] Seed fix in mllib naive bayes example 2015-07-18 10:12:48 -07:00
sample_svm_data.txt SPARK-2363. Clean MLlib's sample data files 2014-07-13 19:27:43 -07:00
sample_tree_data.csv SPARK-2363. Clean MLlib's sample data files 2014-07-13 19:27:43 -07:00
streaming_kmeans_data_test.txt [SPARK-13013][DOCS] Replace example code in mllib-clustering.md using include_example 2016-03-03 09:32:47 -08:00