Constructor
new StringIndexerModel(labels, uidopt)
Parameters:
| Name | Type | Attributes | Description | 
|---|---|---|---|
| labels | Array.<string> | Ordered list of labels, corresponding to indices to be assigned. | |
| uid | string | <optional> | 
- Source:
Methods
(static) load(path) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
| Name | Type | Description | 
|---|---|---|
| path | string | 
- Source:
Returns:
(static) read() → {MLReader}
- Source:
Returns:
- Type
- MLReader
copy(extra) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
| Name | Type | Description | 
|---|---|---|
| extra | module:eclairjs/ml/param.ParamMap | 
- Source:
Returns:
labels() → {Promise.<Array.<string>>}
- Source:
Returns:
- Type
- Promise.<Array.<string>>
setHandleInvalid(value) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
| Name | Type | Description | 
|---|---|---|
| value | string | 
- Source:
Returns:
setInputCol(value) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
| Name | Type | Description | 
|---|---|---|
| value | string | 
- Source:
Returns:
setOutputCol(value) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
| Name | Type | Description | 
|---|---|---|
| value | string | 
- Source:
Returns:
transform(dataset) → {module:eclairjs/sql.Dataset}
Parameters:
| Name | Type | Description | 
|---|---|---|
| dataset | module:eclairjs/sql.Dataset | 
- Source:
Returns:
transformSchema(schema) → {module:eclairjs/sql/types.StructType}
    Validates and transforms the input schema.
    Parameters:
| Name | Type | Description | 
|---|---|---|
| schema | module:eclairjs/sql/types.StructType | 
- Source:
Returns:
uid() → {Promise.<string>}
    An immutable unique ID for the object and its derivatives.
- Source:
Returns:
- Type
- Promise.<string>
write() → {StringIndexModelWriter}
- Source:
Returns:
- Type
- StringIndexModelWriter