Movatterモバイル変換


[0]ホーム

URL:


Skip to main content
Ctrl+K

TypeConverters#

classpyspark.ml.param.TypeConverters[source]#

Factory methods for common type conversion functions forParam.typeConverter.

New in version 2.0.0.

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

staticidentity(value)[source]#

Dummy converter that just returns value.

statictoBoolean(value)[source]#

Convert a value to a boolean, if possible.

statictoFloat(value)[source]#

Convert a value to a float, if possible.

statictoInt(value)[source]#

Convert a value to an int, if possible.

statictoList(value)[source]#

Convert a value to a list, if possible.

statictoListFloat(value)[source]#

Convert a value to list of floats, if possible.

statictoListInt(value)[source]#

Convert a value to list of ints, if possible.

statictoListListFloat(value)[source]#

Convert a value to list of list of floats, if possible.

statictoListString(value)[source]#

Convert a value to list of strings, if possible.

statictoMatrix(value)[source]#

Convert a value to a MLlib Matrix, if possible.

statictoString(value)[source]#

Convert a value to a string, if possible.

statictoVector(value)[source]#

Convert a value to a MLlib Vector, if possible.


[8]ページ先頭

©2009-2025 Movatter.jp