aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/ml/feature.py
diff options
context:
space:
mode:
authorHolden Karau <holden@us.ibm.com>2016-05-09 09:11:17 +0100
committerSean Owen <sowen@cloudera.com>2016-05-09 09:11:17 +0100
commit12fe2ecd1998a8b01667aa1ab910a604b2aec4c8 (patch)
tree39813ff79a12b15e95541e6b68077704eadbbd8f /python/pyspark/ml/feature.py
parent68abc1b4e9afbb6c2a87689221a46b835dded102 (diff)
downloadspark-12fe2ecd1998a8b01667aa1ab910a604b2aec4c8.tar.gz
spark-12fe2ecd1998a8b01667aa1ab910a604b2aec4c8.tar.bz2
spark-12fe2ecd1998a8b01667aa1ab910a604b2aec4c8.zip
[SPARK-15136][PYSPARK][DOC] Fix links to sphinx style and add a default param doc note
## What changes were proposed in this pull request? PyDoc links in ml are in non-standard format. Switch to standard sphinx link format for better formatted documentation. Also add a note about default value in one place. Copy some extended docs from scala for GBT ## How was this patch tested? Built docs locally. Author: Holden Karau <holden@us.ibm.com> Closes #12918 from holdenk/SPARK-15137-linkify-pyspark-ml-classification.
Diffstat (limited to 'python/pyspark/ml/feature.py')
-rwxr-xr-xpython/pyspark/ml/feature.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py
index d2989fa4cd..606a6e7c22 100755
--- a/python/pyspark/ml/feature.py
+++ b/python/pyspark/ml/feature.py
@@ -377,8 +377,8 @@ class DCT(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReadable, JavaMLWrit
The return vector is scaled such that the transform matrix is
unitary (aka scaled DCT-II).
- More information on
- `https://en.wikipedia.org/wiki/Discrete_cosine_transform#DCT-II Wikipedia`.
+ .. seealso:: `More information on Wikipedia \
+ <https://en.wikipedia.org/wiki/Discrete_cosine_transform#DCT-II Wikipedia>`_.
>>> from pyspark.mllib.linalg import Vectors
>>> df1 = sqlContext.createDataFrame([(Vectors.dense([5.0, 8.0, 6.0]),)], ["vec"])
@@ -1108,8 +1108,8 @@ class PolynomialExpansion(JavaTransformer, HasInputCol, HasOutputCol, JavaMLRead
"""
.. note:: Experimental
- Perform feature expansion in a polynomial space. As said in wikipedia of Polynomial Expansion,
- which is available at `http://en.wikipedia.org/wiki/Polynomial_expansion`, "In mathematics, an
+ Perform feature expansion in a polynomial space. As said in `wikipedia of Polynomial Expansion
+ <http://en.wikipedia.org/wiki/Polynomial_expansion>`_, "In mathematics, an
expansion of a product of sums expresses it as a sum of products by using the fact that
multiplication distributes over addition". Take a 2-variable feature vector as an example:
`(x, y)`, if we want to expand it with degree 2, then we get `(x, x * x, y, x * y, y * y)`.
@@ -2432,9 +2432,8 @@ class RFormula(JavaEstimator, HasFeaturesCol, HasLabelCol, JavaMLReadable, JavaM
Implements the transforms required for fitting a dataset against an
R model formula. Currently we support a limited subset of the R
- operators, including '~', '.', ':', '+', and '-'. Also see the R formula
- docs:
- http://stat.ethz.ch/R-manual/R-patched/library/stats/html/formula.html
+ operators, including '~', '.', ':', '+', and '-'. Also see the `R formula docs
+ <http://stat.ethz.ch/R-manual/R-patched/library/stats/html/formula.html>`_.
>>> df = sqlContext.createDataFrame([
... (1.0, 1.0, "a"),