Class: IndexToString

eclairjs/ml/feature.IndexToString

A module:eclairjs/ml/Transformer that maps a column of indices back to a new column of corresponding string values. The index-string mapping is either from the ML attributes of the input column, or from user-supplied labels (which take precedence over ML attributes).

Constructor

new IndexToString()

Source:
See:

Extends

Methods

(static) load(path) → {module:eclairjs/ml/feature.IndexToString}

Parameters:
Name Type Description
path string
Source:
Returns:
Type
module:eclairjs/ml/feature.IndexToString

copy(extra) → {module:eclairjs/ml/feature.IndexToString}

Parameters:
Name Type Description
extra module:eclairjs/ml/param.ParamMap
Overrides:
Source:
Returns:
Type
module:eclairjs/ml/feature.IndexToString

getLabels() → {Promise.<Array.<string>>}

Source:
Returns:
Type
Promise.<Array.<string>>

setInputCol(value) → {module:eclairjs/ml/feature.IndexToString}

Parameters:
Name Type Description
value string
Source:
Returns:
Type
module:eclairjs/ml/feature.IndexToString

setLabels(value) → {module:eclairjs/ml/feature.IndexToString}

Parameters:
Name Type Description
value Array.<string>
Source:
Returns:
Type
module:eclairjs/ml/feature.IndexToString

setOutputCol(value) → {module:eclairjs/ml/feature.IndexToString}

Parameters:
Name Type Description
value string
Source:
Returns:
Type
module:eclairjs/ml/feature.IndexToString

transform(dataset) → {module:eclairjs/sql.Dataset}

Parameters:
Name Type Description
dataset module:eclairjs/sql.Dataset
Source:
Returns:
Type
module:eclairjs/sql.Dataset

transformSchema(schema) → {module:eclairjs/sql/types.StructType}

Parameters:
Name Type Description
schema module:eclairjs/sql/types.StructType
Source:
Returns:
Type
module:eclairjs/sql/types.StructType

uid() → {Promise.<string>}

An immutable unique ID for the object and its derivatives.
Source:
Returns:
Type
Promise.<string>