Skip to contents

This function evaluates the predicted classification either using (1) a model object that contains intercept and sign or (2) directly the attributes score, intercept, sign

Usage

evaluateYhat(
  mod = NULL,
  X,
  y,
  clf,
  score = NULL,
  intercept = NULL,
  sign = NULL
)

Arguments

mod:

a model object to be used in the class prediction

X:

dataset to classify

y:

variable to predict

clf:

an object containing the different parameters of the classifier

score:

the score passed directly

intercept:

the intercept passed directly

sign:

the sign passed directly

Value

a vector with the predicted classification of the samples