modelAccuracy: A function to calculate the accuracy of a given classifier...

Description Usage Arguments Value

Description

A function to calculate the accuracy of a given classifier model

Usage

1
modelAccuracy(fit, testDT, outcomeVar)

Arguments

fit

Classifier model object which should be testet. Currently working: rpart and random forest

testDT

Data.frame which contains the predicting variables

outcomeVar

Outcome variable -class- of test data set. This variable is used to test the prediction

Value

Returns a list containing the predicted outcome, the cross validation table and the accuracy


Somtom/somtomlib documentation built on May 28, 2019, 3:16 p.m.