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> |
Methods
(static) load(path) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
Name | Type | Description |
---|---|---|
path |
string |
Returns:
(static) read() → {module:eclairjs/ml/util.MLReader}
Returns:
copy(extra) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
Name | Type | Description |
---|---|---|
extra |
module:eclairjs/ml/param.ParamMap |
Returns:
getHandleInvalid() → {string}
Returns:
- Type
- string
getInputCol() → {string}
Returns:
- Type
- string
getOutputCol() → {string}
Returns:
- Type
- string
handleInvalid() → {module:eclairjs/ml/param.Param}
Param for how to handle invalid entries. Options are skip (which will filter out rows with bad values),
or error (which will throw an errror). More options may be added later..
Returns:
inputCol() → {module:eclairjs/ml/param.Param}
Returns:
labels() → {Array.<string>}
Returns:
- Type
- Array.<string>
outputCol() → {module:eclairjs/ml/param.Param}
Returns:
setHandleInvalid(value) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
Returns:
setInputCol(value) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
Returns:
setOutputCol(value) → {module:eclairjs/ml/feature.StringIndexerModel}
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
Returns:
transform(dataset) → {module:eclairjs/sql.Dataset}
Parameters:
Name | Type | Description |
---|---|---|
dataset |
module:eclairjs/sql.Dataset |
Returns:
transformSchema(schema) → {module:eclairjs/sql/types.StructType}
Parameters:
Name | Type | Description |
---|---|---|
schema |
module:eclairjs/sql/types.StructType |
Returns:
uid() → {string}
An immutable unique ID for the object and its derivatives.
Returns:
- Type
- string
validateAndTransformSchema(schema) → {module:eclairjs/sql/types.StructType}
Validates and transforms the input schema.
Parameters:
Name | Type | Description |
---|---|---|
schema |
module:eclairjs/sql/types.StructType |
Returns:
write() → {StringIndexModelWriter}
Returns:
- Type
- StringIndexModelWriter