Constructor
new TrainValidationSplitModel()
Extends
Methods
(static) load(path) → {module:eclairjs/ml/tuning.TrainValidationSplitModel}
Parameters:
Name | Type | Description |
---|---|---|
path |
string |
Returns:
(static) read() → {module:eclairjs/ml/util.MLReader}
Returns:
bestModel() → {Object}
Returns:
- Type
- Object
copy(extra) → {module:eclairjs/ml/tuning.TrainValidationSplitModel}
Parameters:
Name | Type | Description |
---|---|---|
extra |
module:eclairjs/ml/param.ParamMap |
- Overrides:
- Source:
Returns:
estimator() → {module:eclairjs/ml/param.Param}
Param for ratio between train and validation data. Must be between 0 and 1. Default: 0.75
Returns:
estimatorParamMaps() → {module:eclairjs/ml/param.Param}
Param for ratio between train and validation data. Must be between 0 and 1. Default: 0.75
Returns:
evaluator() → {module:eclairjs/ml/param.Param}
param for the evaluator used to select hyper-parameters that maximize the validated metric
Returns:
getEstimator() → {module:eclairjs/ml.Estimator}
Returns:
getEstimatorParamMaps() → {module:eclairjs/ml/param.ParamMap}
Returns:
getEvaluator() → {module:eclairjs/ml/evaluation/Evaluator}
Returns:
- Type
- module:eclairjs/ml/evaluation/Evaluator
getTrainRatio() → {float}
Returns:
- Type
- float
hasParent() → {boolean}
- Inherited From:
- Source:
Returns:
- Type
- boolean
parent() → {module:eclairjs/ml.Estimator}
- Inherited From:
- Source:
Returns:
setParent(parent) → {object}
Sets the parent of this model.
Parameters:
Name | Type | Description |
---|---|---|
parent |
module:eclairjs/ml.Estimator |
- Inherited From:
- Source:
Returns:
- Type
- object
trainRatio() → {module:eclairjs/ml/param.DoubleParam}
Param for ratio between train and validation data. Must be between 0 and 1. Default: 0.75
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
validationMetrics() → {Array.<float>}
Returns:
- Type
- Array.<float>