Learn R Programming

D2MCS (version 1.0.1)

GenericModelFit: Abstract class for defining model fitting method.

Description

Template to create a recipe or formula objects used in model training stage.

Arguments

Methods


Method new()

Method for initializing the object arguments during runtime.

Usage

GenericModelFit$new()


Method createFormula()

The function is responsible of creating a formula for M.L. model.

Usage

GenericModelFit$createFormula(instances, class.name, simplify = TRUE)

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 for M.L. model.

Usage

GenericModelFit$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.

Returns

A object of class recipe.


Method clone()

The objects of this class are cloneable with this method.

Usage

GenericModelFit$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

See Also

DefaultModelFit, train