lol.classify.randomChance {lolR} | R Documentation |
A function that predicts the maximally present class in the dataset. Functionality consistent with the standard R prediction interface so that one can compute the "chance" accuracy with minimal modification of other classification scripts.
lol.classify.randomChance(X, Y, ...)
X |
|
Y |
|
... |
optional args. |
A list of class randomGuess
, with the following attributes:
ylabs |
|
priors |
|
Eric Bridgeford
library(lolR)
data <- lol.sims.rtrunk(n=200, d=30) # 200 examples of 30 dimensions
X <- data$X; Y <- data$Y
model <- lol.classify.randomChance(X, Y)