Description Usage Arguments Value
A function to calculate the accuracy of a given classifier model
1 | modelAccuracy(fit, testDT, outcomeVar)
|
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 |
Returns a list containing the predicted outcome, the cross validation table and the accuracy
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.