evaluatemodel: Evaluate model on data

Description Usage Arguments Value Author(s)

View source: R/evaluatemodel.R

Description

Evaluates a model on test dataset

Usage

1
evaluatemodel(model,x,labels,proto_i,aggregateperid)

Arguments

model

Model produced by caret function train

x

Test data on which the model will be applied

labels

Data labels

proto_i

Protocol, 1 = eyes open, 2 = eyes closed, this is only used for logging and not for the evaluation

aggregateperid

Boolean to indicate whether features were aggregated per participant (TRUE) or not (FALSE)

Value

proto_i

same as input

test.acc

Test set accuracy

test.kappa

Test set Cohen's kappa coeficient

test.auc

Test set Area under the curve

test.confmatrix

Test set confusion matrix

test.sens

Test set sensitivity

aggregateperid

same as input

Author(s)

Vincent T van Hees


NLeSC/EEG-epilepsy-diagnosis documentation built on May 7, 2019, 6:02 p.m.