train: Supervised Learning with 'rtemis'

View source: R/train.R

trainR Documentation

Supervised Learning with rtemis

Description

Train any rtemis model

Usage

train(
  x,
  y = NULL,
  mod = "ppr",
  x.test = NULL,
  y.test = NULL,
  x.name = NULL,
  y.name = NULL,
  args = list(),
  question = NULL,
  verbose = TRUE,
  print.plot = TRUE,
  ...
)

Arguments

x

Numeric vector or matrix / data frame of features i.e. independent variables

y

Numeric vector of outcome, i.e. dependent variable

mod

Character: Learner to use. To get list of options, run select_learn()

x.test

Numeric vector or matrix / data frame of testing set features Columns must correspond to columns in x

y.test

Numeric vector of testing set outcome

x.name

Character: Name for feature set

y.name

Character: Name for outcome

args

Optional list of parameters to be passed to learner

question

Character: the question you are attempting to answer with this model, in plain language.

verbose

Logical: If TRUE, print summary to screen.

print.plot

Logical: if TRUE, produce plot using mplot3 Takes precedence over plot.fitted and plot.predicted.

...

Additional arguments to be passed to learner

Details

args and ... allow you to either pass named arguments, or a list of arguments (or both)

Author(s)

E.D. Gennatas


egenn/rtemis documentation built on May 4, 2024, 7:40 p.m.