aboutsummaryrefslogtreecommitdiff
path: root/python/pyspark/ml/feature.py
diff options
context:
space:
mode:
authorNick Pentreath <nickp@za.ibm.com>2016-06-21 00:39:47 -0700
committerXiangrui Meng <meng@databricks.com>2016-06-21 00:39:47 -0700
commit37494a18e8d6e22113338523d6498e00ac9725ea (patch)
tree0d7eb9a0bed1046a8825ff504f3ea922c2a2d743 /python/pyspark/ml/feature.py
parentce49bfc2550ba8f5a33235c7fc3b88201d63c276 (diff)
downloadspark-37494a18e8d6e22113338523d6498e00ac9725ea.tar.gz
spark-37494a18e8d6e22113338523d6498e00ac9725ea.tar.bz2
spark-37494a18e8d6e22113338523d6498e00ac9725ea.zip
[SPARK-10258][DOC][ML] Add @Since annotations to ml.feature
This PR adds missing `Since` annotations to `ml.feature` package. Closes #8505. ## How was this patch tested? Existing tests. Author: Nick Pentreath <nickp@za.ibm.com> Closes #13641 from MLnick/add-since-annotations.
Diffstat (limited to 'python/pyspark/ml/feature.py')
-rwxr-xr-xpython/pyspark/ml/feature.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/pyspark/ml/feature.py b/python/pyspark/ml/feature.py
index a28764a752..1e9ec0fbb4 100755
--- a/python/pyspark/ml/feature.py
+++ b/python/pyspark/ml/feature.py
@@ -149,7 +149,7 @@ class Bucketizer(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReadable, Jav
>>> loadedBucketizer.getSplits() == bucketizer.getSplits()
True
- .. versionadded:: 1.3.0
+ .. versionadded:: 1.4.0
"""
splits = \
@@ -486,14 +486,14 @@ class ElementwiseProduct(JavaTransformer, HasInputCol, HasOutputCol, JavaMLReada
kwargs = self.setParams._input_kwargs
return self._set(**kwargs)
- @since("1.5.0")
+ @since("2.0.0")
def setScalingVec(self, value):
"""
Sets the value of :py:attr:`scalingVec`.
"""
return self._set(scalingVec=value)
- @since("1.5.0")
+ @since("2.0.0")
def getScalingVec(self):
"""
Gets the value of scalingVec or its default value.
@@ -1584,7 +1584,7 @@ class StandardScalerModel(JavaModel, JavaMLReadable, JavaMLWritable):
"""
@property
- @since("1.5.0")
+ @since("2.0.0")
def std(self):
"""
Standard deviation of the StandardScalerModel.
@@ -1592,7 +1592,7 @@ class StandardScalerModel(JavaModel, JavaMLReadable, JavaMLWritable):
return self._call_java("std")
@property
- @since("1.5.0")
+ @since("2.0.0")
def mean(self):
"""
Mean of the StandardScalerModel.