DefaultModelFit {D2MCS} | R Documentation |
Default model fitting implementation.
Description
Creates a default recipe
and
formula
objects used in model training stage.
Super class
D2MCS::GenericModelFit
-> DefaultModelFit
Methods
Public methods
Method new()
Method for initializing the object arguments during runtime.
Usage
DefaultModelFit$new()
Method createFormula()
The function is responsible of creating a
formula
for M.L. model.
Usage
DefaultModelFit$createFormula(instances, class.name, simplify = FALSE)
Arguments
instances
A data.frame containing the instances used to create the recipe.
class.name
A character vector representing the name of the target class.
simplify
A logical argument defining whether the formula should be generated as simple as possible.
Returns
A formula
object.
Method createRecipe()
The function is responsible of creating a
recipe
with five operations over the data:
step_zv
, step_nzv
,
step_corr
, step_center
,
step_scale
Usage
DefaultModelFit$createRecipe(instances, class.name)
Arguments
instances
A
data.frame
containing the instances used to create the recipe.class.name
A
character
vector representing the name of the target class.
Details
This function is automatically invoked by D2MCS
during model training stage.
Returns
An object of class recipe
.
Method clone()
The objects of this class are cloneable with this method.
Usage
DefaultModelFit$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.