Creates a default recipe and
formula objects used in model training stage.
D2MCS::GenericModelFit -> DefaultModelFit
new()Method for initializing the object arguments during runtime.
DefaultModelFit$new()
createFormula()The function is responsible of creating a
formula for M.L. model.
DefaultModelFit$createFormula(instances, class.name, simplify = FALSE)instancesA data.frame containing the instances used to create the recipe.
class.nameA character vector representing the name of the target class.
simplifyA logical argument defining whether the formula should be generated as simple as possible.
A formula object.
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
DefaultModelFit$createRecipe(instances, class.name)instancesA data.frame containing the instances used
to create the recipe.
class.nameA character vector representing the name
of the target class.
This function is automatically invoked by D2MCS
during model training stage.
An object of class recipe.
clone()The objects of this class are cloneable with this method.
DefaultModelFit$clone(deep = FALSE)deepWhether to make a deep clone.
GenericModelFit, train