Skip to content

Commit 320fe08

Browse files
committed
To override param.
1 parent 6f3bea8 commit 320fe08

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

python/pyspark/ml/feature.py

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2077,7 +2077,8 @@ def mean(self):
20772077

20782078

20792079
@inherit_doc
2080-
class StringIndexer(JavaEstimator, HasInputCol, HasOutputCol, JavaMLReadable, JavaMLWritable):
2080+
class StringIndexer(JavaEstimator, HasInputCol, HasOutputCol, HasHandleInvalid, JavaMLReadable,
2081+
JavaMLWritable):
20812082
"""
20822083
A label indexer that maps a string column of labels to an ML column of label indices.
20832084
If the input column is numeric, we cast it to string and index the string values.
@@ -2179,20 +2180,6 @@ def getStringOrderType(self):
21792180
"""
21802181
return self.getOrDefault(self.stringOrderType)
21812182

2182-
@since("2.3.0")
2183-
def setHandleInvalid(self, value):
2184-
"""
2185-
Sets the value of :py:attr:`handleInvalid`.
2186-
"""
2187-
return self._set(handleInvalid=value)
2188-
2189-
@since("2.3.0")
2190-
def getHandleInvalid(self):
2191-
"""
2192-
Gets the value of :py:attr:`handleInvalid` or its default value.
2193-
"""
2194-
return self.getOrDefault(self.handleInvalid)
2195-
21962183

21972184
class StringIndexerModel(JavaModel, JavaMLReadable, JavaMLWritable):
21982185
"""

0 commit comments

Comments
 (0)