pyspark.ml.param.
TypeConverters
¶
Factory methods for common type conversion functions for Param.typeConverter.
Methods
identity
(value)
Dummy converter that just returns value.
toBoolean
(value)
Convert a value to a boolean, if possible.
toFloat
(value)
Convert a value to a float, if possible.
toInt
(value)
Convert a value to an int, if possible.
toList
(value)
Convert a value to a list, if possible.
toListFloat
(value)
Convert a value to list of floats, if possible.
toListInt
(value)
Convert a value to list of ints, if possible.
toListListFloat
(value)
Convert a value to list of list of floats, if possible.
toListString
(value)
Convert a value to list of strings, if possible.
toMatrix
(value)
Convert a value to a MLlib Matrix, if possible.
toString
(value)
Convert a value to a string, if possible.
toVector
(value)
Convert a value to a MLlib Vector, if possible.
Methods Documentation
identity
(value: T) → T¶
Dummy converter that just returns value.
toBoolean
(value: Any) → bool¶
Convert a value to a boolean, if possible.
toFloat
(value: Any) → float¶
Convert a value to a float, if possible.
toInt
(value: Any) → int¶
Convert a value to an int, if possible.
toList
(value: Any) → List¶
Convert a value to a list, if possible.
toListFloat
(value: Any) → List[float]¶
Convert a value to list of floats, if possible.
toListInt
(value: Any) → List[int]¶
Convert a value to list of ints, if possible.
toListListFloat
(value: Any) → List[List[float]]¶
Convert a value to list of list of floats, if possible.
toListString
(value: Any) → List[str]¶
Convert a value to list of strings, if possible.
toMatrix
(value: Any) → pyspark.ml.linalg.Matrix¶
Convert a value to a MLlib Matrix, if possible.
toString
(value: Any) → str¶
Convert a value to a string, if possible.
toVector
(value: Any) → pyspark.ml.linalg.Vector¶
Convert a value to a MLlib Vector, if possible.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4