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