spark-instrumented-optimizer/docs
Zheng RuiFeng adb9d73cd6 [SPARK-14339][DOC] Add python examples for DCT,MinMaxScaler,MaxAbsScaler
## What changes were proposed in this pull request?
add three python examples

## How was this patch tested?
manual tests

Author: Zheng RuiFeng <ruifengz@foxmail.com>

Closes #12063 from zhengruifeng/dct_pe.
2016-04-09 11:25:39 -07:00
..
_data [SPARK-12247][ML][DOC] Documentation for spark.ml's ALS and collaborative filtering in general 2016-02-16 13:03:28 +00:00
_includes [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
_layouts [SPARK-12735] Consolidate & move spark-ec2 to AMPLab managed repository. 2016-01-09 20:28:20 -08:00
_plugins [SPARK-6363][BUILD] Make Scala 2.11 the default Scala version 2016-01-30 00:20:28 -08:00
css [SPARK-12324][MLLIB][DOC] Fixes the sidebar in the ML documentation 2015-12-16 10:12:33 -08:00
img [SPARK-6343] Doc driver-worker network reqs 2015-04-09 06:37:20 -04:00
js [SPARK-12324][MLLIB][DOC] Fixes the sidebar in the ML documentation 2015-12-16 10:12:33 -08:00
_config.yml [SPARK-13189] Cleanup build references to Scala 2.10 2016-02-09 11:56:25 -08:00
api.md [SPARK-8639] [DOCS] Fixed Minor Typos in Documentation 2015-06-27 08:47:00 +03:00
building-spark.md [SPARK-14424][BUILD][DOCS] Update the build docs to switch from assembly to package and add a no… 2016-04-06 16:00:29 -07:00
cluster-overview.md [SPARK-7997][CORE] Remove Akka from Spark Core and Streaming 2016-01-22 21:20:04 -08:00
configuration.md [MINOR][DOC] improve the doc for "spark.memory.offHeap.size" 2016-03-07 12:08:26 -08:00
contributing-to-spark.md Work in progress: 2013-09-08 00:29:11 -07:00
graphx-programming-guide.md [SPARK-12211][DOC][GRAPHX] Fix version number in graphx doc for migration from 1.1 2015-12-09 17:16:01 -08:00
hadoop-provided.md [SPARK-6511] [docs] Fix example command in hadoop-provided docs. 2015-06-11 15:29:03 -07:00
hardware-provisioning.md [MINOR][DOCS] Fix typos in configuration.md and hardware-provisioning.md 2016-02-21 15:27:07 -08:00
index.md [MINOR][DOCS] Update build descriptions and commands 2016-03-18 21:32:48 -07:00
java-programming-guide.md [SPARK-1566] consolidate programming guide, and general doc updates 2014-05-30 00:34:33 -07:00
job-scheduling.md [SPARK-13529][BUILD] Move network/* modules into common/network-* 2016-02-28 17:25:07 -08:00
ml-advanced.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-ann.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-classification-regression.md [MINOR][DOCS] Fix all typos in markdown files of doc and similar patterns in other comments 2016-02-22 09:52:07 +00:00
ml-clustering.md [SPARK-12215][ML][DOC] User guide section for KMeans in spark.ml 2015-12-16 10:43:45 -08:00
ml-collaborative-filtering.md [SPARK-12247][ML][DOC] Documentation for spark.ml's ALS and collaborative filtering in general 2016-02-16 13:03:28 +00:00
ml-decision-tree.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-ensembles.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-features.md [SPARK-14339][DOC] Add python examples for DCT,MinMaxScaler,MaxAbsScaler 2016-04-09 11:25:39 -07:00
ml-guide.md [SPARK-13706][ML] Add Python Example for Train Validation Split 2016-03-10 09:18:15 +02:00
ml-linear-methods.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
ml-survival-regression.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-classification-regression.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-clustering.md [SPARK-13672][ML] Add python examples of BisectingKMeans in ML and MLLIB 2016-03-11 09:21:12 +02:00
mllib-collaborative-filtering.md [SPARK-12632][PYSPARK][DOC] PySpark fpm and als parameter desc to consistent format 2016-02-22 12:48:37 +02:00
mllib-data-types.md [SPARK-13715][MLLIB] Remove last usages of jblas in tests 2016-03-08 17:47:55 +00:00
mllib-decision-tree.md [SPARK-12634][PYSPARK][DOC] PySpark tree parameter desc to consistent format 2016-02-26 08:30:32 -08:00
mllib-dimensionality-reduction.md [SPARK-13016][DOCUMENTATION] Replace example code in mllib-dimensionality-reduction.md using include_example 2016-02-22 17:16:56 -08:00
mllib-ensembles.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-evaluation-metrics.md [MINOR][DOCS] Fix all typos in markdown files of doc and similar patterns in other comments 2016-02-22 09:52:07 +00:00
mllib-feature-extraction.md [SPARK-13017][DOCS] Replace example code in mllib-feature-extraction.md using include_example 2016-03-24 14:25:10 -07:00
mllib-frequent-pattern-mining.md [MINOR][DOCS] Fix all typos in markdown files of doc and similar patterns in other comments 2016-02-22 09:52:07 +00:00
mllib-guide.md [SPARK-12247][ML][DOC] Documentation for spark.ml's ALS and collaborative filtering in general 2016-02-16 13:03:28 +00:00
mllib-isotonic-regression.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-linear-methods.md [SPARK-11381][DOCS] Replace example code in mllib-linear-methods.md using include_example 2016-02-26 08:31:55 -08:00
mllib-migration-guides.md [SPARK-11608][MLLIB][DOC] Added migration guide for MLlib 1.6 2015-12-16 11:53:04 -08:00
mllib-naive-bayes.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-optimization.md [SPARK-12212][ML][DOC] Clarifies the difference between spark.ml, spark.mllib and mllib in the documentation. 2015-12-10 12:50:46 -08:00
mllib-pmml-model-export.md [SPARK-13018][DOCS] Replace example code in mllib-pmml-model-export.md using include_example 2016-02-15 20:17:21 -08:00
mllib-statistics.md [SPARK-13019][DOCS] fix for scala-2.10 build: Replace example code in mllib-statistics.md using include_example 2016-03-24 09:34:54 +00:00
monitoring.md [Docs] Update monitoring.md to accurately describe the history server 2016-03-31 12:06:21 -07:00
programming-guide.md [SPARK-13521][BUILD] Remove reference to Tachyon in cluster & release scripts 2016-02-26 22:35:12 -08:00
python-programming-guide.md [SPARK-1566] consolidate programming guide, and general doc updates 2014-05-30 00:34:33 -07:00
quick-start.md [DOC] Added R to the list of languages with "high-level API" support in the… 2015-09-08 14:36:34 +01:00
README.md [SPARK-13300][DOCUMENTATION] Added pygments.rb dependancy 2016-02-14 11:41:27 +00:00
running-on-mesos.md Better host description for multi-master mesos 2016-04-07 09:16:07 +01:00
running-on-yarn.md [SPARK-13063][YARN] Make the SPARK YARN STAGING DIR as configurable 2016-04-05 14:12:00 -05:00
scala-programming-guide.md [SPARK-1566] consolidate programming guide, and general doc updates 2014-05-30 00:34:33 -07:00
security.md [SPARK-7997][CORE] Remove Akka from Spark Core and Streaming 2016-01-22 21:20:04 -08:00
spark-standalone.md [MINOR][DOCS] Fix all typos in markdown files of doc and similar patterns in other comments 2016-02-22 09:52:07 +00:00
sparkr.md [SPARK-12232][SPARKR] New R API for read.table to avoid name conflict 2016-01-19 18:31:03 -08:00
sql-programming-guide.md [SPARK-10063][SQL] Remove DirectParquetOutputCommitter 2016-04-07 00:51:45 -07:00
storage-openstack-swift.md [SPARK-938][doc] Add OpenStack Swift support 2014-09-07 20:56:04 -07:00
streaming-custom-receivers.md [SPARK-13888][DOC] Remove Akka Receiver doc and refer to the DStream Akka project 2016-03-14 23:21:30 -07:00
streaming-flume-integration.md [MINOR][DOCS] Fix all typos in markdown files of doc and similar patterns in other comments 2016-02-22 09:52:07 +00:00
streaming-kafka-integration.md [SPARK-12814][DOCUMENT] Add deploy instructions for Python in flume integration doc 2016-01-18 15:38:03 -08:00
streaming-kinesis-integration.md [SPARK-13595][BUILD] Move docker, extras modules into external 2016-03-09 18:27:44 +00:00
streaming-programming-guide.md [SPARK-14342][CORE][DOCS][TESTS] Remove straggler references to Tachyon 2016-04-02 17:55:46 -07:00
submitting-applications.md [DOCS][MINOR] Remove sentence about Mesos not supporting cluster mode. 2016-04-07 17:41:55 -07:00
tuning.md [SPARK-12081] Make unified memory manager work with small heaps 2015-12-01 19:51:12 -08:00

Welcome to the Spark documentation!

This readme will walk you through navigating and building the Spark documentation, which is included here with the Spark source code. You can also find documentation specific to release versions of Spark at http://spark.apache.org/documentation.html.

Read on to learn more about viewing documentation in plain text (i.e., markdown) or building the documentation yourself. Why build it yourself? So that you have the docs that corresponds to whichever version of Spark you currently have checked out of revision control.

Prerequisites

The Spark documentation build uses a number of tools to build HTML docs and API docs in Scala, Python and R.

You need to have Ruby and Python installed. Also install the following libraries:

    $ sudo gem install jekyll jekyll-redirect-from pygments.rb
    $ sudo pip install Pygments
    # Following is needed only for generating API docs
    $ sudo pip install sphinx
    $ Rscript -e 'install.packages(c("knitr", "devtools"), repos="http://cran.stat.ucla.edu/")'

Generating the Documentation HTML

We include the Spark documentation as part of the source (as opposed to using a hosted wiki, such as the github wiki, as the definitive documentation) to enable the documentation to evolve along with the source code and be captured by revision control (currently git). This way the code automatically includes the version of the documentation that is relevant regardless of which version or release you have checked out or downloaded.

In this directory you will find textfiles formatted using Markdown, with an ".md" suffix. You can read those text files directly if you want. Start with index.md.

Execute jekyll build from the docs/ directory to compile the site. Compiling the site with Jekyll will create a directory called _site containing index.html as well as the rest of the compiled files.

$ cd docs
$ jekyll build

You can modify the default Jekyll build as follows:

    # Skip generating API docs (which takes a while)
    $ SKIP_API=1 jekyll build
    
    # Serve content locally on port 4000
    $ jekyll serve --watch
    
    # Build the site with extra features used on the live page
    $ PRODUCTION=1 jekyll build

API Docs (Scaladoc, Sphinx, roxygen2)

You can build just the Spark scaladoc by running build/sbt unidoc from the SPARK_PROJECT_ROOT directory.

Similarly, you can build just the PySpark docs by running make html from the SPARK_PROJECT_ROOT/python/docs directory. Documentation is only generated for classes that are listed as public in __init__.py. The SparkR docs can be built by running SPARK_PROJECT_ROOT/R/create-docs.sh.

When you run jekyll in the docs directory, it will also copy over the scaladoc for the various Spark subprojects into the docs directory (and then also into the _site directory). We use a jekyll plugin to run build/sbt unidoc before building the site so if you haven't run it (recently) it may take some time as it generates all of the scaladoc. The jekyll plugin also generates the PySpark docs using Sphinx.

NOTE: To skip the step of building and copying over the Scala, Python, R API docs, run SKIP_API=1 jekyll.