pyspark.ml.param.
TypeConverters
Factory methods for common type conversion functions for Param.typeConverter.
New in version 2.0.0.
Methods
Methods Documentation
identity
Dummy converter that just returns value.
toBoolean
Convert a value to a boolean, if possible.
toFloat
Convert a value to a float, if possible.
toInt
Convert a value to an int, if possible.
toList
Convert a value to a list, if possible.
toListFloat
Convert a value to list of floats, if possible.
toListInt
Convert a value to list of ints, if possible.
toListListFloat
Convert a value to list of list of floats, if possible.
toListString
Convert a value to list of strings, if possible.
toMatrix
Convert a value to a MLlib Matrix, if possible.
toString
Convert a value to a string, if possible.
toVector
Convert a value to a MLlib Vector, if possible.