Skip to contents

Evaluates the fitting score of a model object.

Usage

evaluateModel(
  mod,
  X,
  y,
  clf,
  eval.all = FALSE,
  force.re.evaluation = FALSE,
  estim.feat.importance = FALSE,
  mode = "train"
)

Arguments

mod:

a model object

X:

the data matrix with variables in the rows and observations in the columns

y:

the response vector

clf:

the classifier parameter object

eval.all:

should the function evaluate all the scores (default:FALSE)

force.re.evaluation:

re-evaluate all the scores even if they exist (default:FALSE)

estim.feat.importance:

evaluate the importance in the model object (default:FALSE)

mode:

A choice from c("train", "test") indicates wether we wish to learn the threthold of the model (default:"train") or not "test" for the c("terinter","bininter","ratio") languages

Value

a model object with the fitting scores evaluated