Constructor
new RFormulaModel(resolvedFormula, pipelineModel)
Parameters:
| Name | Type | Description | 
|---|---|---|
resolvedFormula | 
            
            the fitted R formula. | |
pipelineModel | 
            
            the fitted feature model, including factor to index mappings. | 
- Source:
 
Methods
(static) load(path) → {RFormulaModel}
Parameters:
| Name | Type | Description | 
|---|---|---|
path | 
            
            string | 
- Source:
 
Returns:
- Type
 - RFormulaModel
 
(static) read() → {MLReader}
- Source:
 
Returns:
- Type
 - MLReader
 
copy(extra) → {RFormulaModel}
Parameters:
| Name | Type | Description | 
|---|---|---|
extra | 
            
            module:eclairjs/ml/param.ParamMap | 
- Source:
 
Returns:
- Type
 - RFormulaModel
 
toString() → {Promise.<string>}
- Source:
 
Returns:
- Type
 - Promise.<string>
 
transform(dataset) → {Dataset}
Parameters:
| Name | Type | Description | 
|---|---|---|
dataset | 
            
            module:eclairjs/sql.Dataset | 
- Source:
 
Returns:
- Type
 - Dataset
 
transformSchema(schema) → {StructType}
Parameters:
| Name | Type | Description | 
|---|---|---|
schema | 
            
            StructType | 
- Source:
 
Returns:
- Type
 - StructType
 
write() → {MLWriter}
- Source:
 
Returns:
- Type
 - MLWriter