GenericModelFit: Abstract class for defining model fitting method.

GenericModelFitR Documentation

Abstract class for defining model fitting method.

Description

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

Methods

Public 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


D2MCS documentation built on Aug. 23, 2022, 5:07 p.m.