build_model_from_template: builds a model object from a template which is given in a...

View source: R/templates.R

build_model_from_templateR Documentation

builds a model object from a template which is given in a list of templates.

Description

builds a model object from a template which is given in a list of templates.

Usage

build_model_from_template(template_name, model_name = NULL,
  features = NULL, templates = default_templates, metric = "gini")

Arguments

template_name

character: Specify template name. Must be among the names of the list given via argument templates

model_name

character: Specify the name of the model being generated. Every model object can have a name. If name is not specified, a random name will be generated.

features

character or data.frame: Specify feature names from which model will be trained. The models's config parameter features.include will be set accordingly to extract specified features from the training dataset. features can also be a data frame of features (output of function evaluate_features)

templates

list: A named list of templates. Argument template_name must be among the names of this list.

Value

A object inheriting from class MODEL


genpack/maler documentation built on Jan. 27, 2025, 1:23 p.m.