Constructor
new OneHotEncoder(uidopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
uid |
string |
<optional> |
- Source:
- See:
-
- module:eclairjs/ml/feature.StringIndexer for converting categorical values into category indices
Extends
Methods
(static) load(path) → {module:eclairjs/ml/feature.OneHotEncoder}
Parameters:
Name | Type | Description |
---|---|---|
path |
string |
Returns:
copy(extra) → {module:eclairjs/ml/feature.OneHotEncoder}
Parameters:
Name | Type | Description |
---|---|---|
extra |
module:eclairjs/ml/param.ParamMap |
- Overrides:
- Source:
Returns:
dropLast() → {module:eclairjs/ml/param.BooleanParam}
Returns:
getDropLast() → {boolean}
Returns:
- Type
- boolean
setDropLast(value) → {module:eclairjs/ml/feature.OneHotEncoder}
Parameters:
Name | Type | Description |
---|---|---|
value |
boolean |
Returns:
setInputCol(value) → {module:eclairjs/ml/feature.OneHotEncoder}
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
Returns:
setOutputCol(value) → {module:eclairjs/ml/feature.OneHotEncoder}
Parameters:
Name | Type | Description |
---|---|---|
value |
string |
Returns:
transform(dataset, paramsopt, …otherParamPairsopt) → {module:eclairjs/sql.Dataset}
Transforms the dataset with optional parameters
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
dataset |
module:eclairjs/sql.Dataset | input dataset | |
params |
module:eclairjs/ml/param.ParamMap | module:eclairjs/ml/param.ParamPair |
<optional> |
additional parameters, overwrite embedded params, overwrite embedded params |
otherParamPairs |
module:eclairjs/ml/param.ParamPair |
<optional> <repeatable> |
other param pairs, Only used if argument two is module:eclairjs/ml/param.ParamPair. Overwrite embedded params |
- Inherited From:
- Source:
Returns:
transformed dataset
transformSchema() → {module:eclairjs/sql/types.StructType}
Check transform validity and derive the output schema from the input schema.
Typical implementation should first conduct verification on schema change and parameter
validity, including complex parameter interaction checks. * @param {module:eclairjs/sql/types.StructType} schema
- Inherited From:
- Source:
Returns:
uid() → {string}
An immutable unique ID for the object and its derivatives.
Returns:
- Type
- string