acc_lucky: A function to check whether a classification is better than a...

Description Usage Arguments Author(s) Examples

View source: R/metric.R

Description

A function to check whether a classification is better than a guess

Usage

1
acc_lucky(train_class, test_class, my_acc, s = 1000)

Arguments

train_class

a vector for the distribution of classes in the training set

test_class

a vector for the distribution of classes in the test set

my_acc

a number between 0 and 1 for the classification accuracy to be evaluated

s

sample size of simulations used to check p-values

Author(s)

Larry Lei Hua

Examples

1
2
3
4
train_class <- c(1223,1322,1144)
test_class <- c(345,544,233)
my_acc <- 0.45
acc_lucky(train_class, test_class, my_acc)

larryleihua/fmlr documentation built on Jan. 31, 2020, 8:55 a.m.