model: AI/ML models

View source: R/model.R

modelR Documentation

AI/ML models

Description

The model function generates AI/ML models

Usage

model(data, type = "lm", config = NULL, verbose = FALSE)

Arguments

data

data object with data to be modeled, read more prodata

type

model type, lm (Fitting Linear Models) by default; available are lm, rlm, ctree, knn, knn1

config

additional parameters for model, read more config

verbose

if true the messages are displayed in console, false by default

Value

model list contains model, predicted, and expected values for all generated models

Examples



model_data <- data.frame(a = c(1,2,3,4,5,6),
                         b = c(1,2,3,4,5,6),
                         s = c(1,2,3,4,5,6))

config <- config(formula = "a ~ b + s")

model_data <- prodata(model_data, status_colname = "s")

model(model_data, config)



ai documentation built on Oct. 2, 2024, 5:07 p.m.

Related to model in ai...