diff options
author | Zheng RuiFeng <ruifengz@foxmail.com> | 2016-04-09 11:25:39 -0700 |
---|---|---|
committer | Xiangrui Meng <meng@databricks.com> | 2016-04-09 11:25:39 -0700 |
commit | adb9d73cd6543c9edfc6b03a6d20061ff09c69f9 (patch) | |
tree | 153ca83019207ddf75e4bcdb07fe68fe0273e365 /docs/ml-features.md | |
parent | 1598d11bb0248384872cf88bc2b16f3b238046ad (diff) | |
download | spark-adb9d73cd6543c9edfc6b03a6d20061ff09c69f9.tar.gz spark-adb9d73cd6543c9edfc6b03a6d20061ff09c69f9.tar.bz2 spark-adb9d73cd6543c9edfc6b03a6d20061ff09c69f9.zip |
[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.
Diffstat (limited to 'docs/ml-features.md')
-rw-r--r-- | docs/ml-features.md | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docs/ml-features.md b/docs/ml-features.md index 4fe8eefc26..5cc27d3565 100644 --- a/docs/ml-features.md +++ b/docs/ml-features.md @@ -413,6 +413,14 @@ for more details on the API. {% include_example java/org/apache/spark/examples/ml/JavaDCTExample.java %} </div> + +<div data-lang="python" markdown="1"> + +Refer to the [DCT Python docs](api/python/pyspark.ml.html#pyspark.ml.feature.DCT) +for more details on the API. + +{% include_example python/ml/dct_example.py %} +</div> </div> ## StringIndexer @@ -771,6 +779,14 @@ for more details on the API. {% include_example java/org/apache/spark/examples/ml/JavaMinMaxScalerExample.java %} </div> + +<div data-lang="python" markdown="1"> + +Refer to the [MinMaxScaler Python docs](api/python/pyspark.ml.html#pyspark.ml.feature.MinMaxScaler) +for more details on the API. + +{% include_example python/ml/min_max_scaler_example.py %} +</div> </div> @@ -803,6 +819,14 @@ for more details on the API. {% include_example java/org/apache/spark/examples/ml/JavaMaxAbsScalerExample.java %} </div> + +<div data-lang="python" markdown="1"> + +Refer to the [MaxAbsScaler Python docs](api/python/pyspark.ml.html#pyspark.ml.feature.MaxAbsScaler) +for more details on the API. + +{% include_example python/ml/max_abs_scaler_example.py %} +</div> </div> ## Bucketizer |