Description Usage Arguments Examples
Calculates the area under the curve for a binary classifcation model
1 | mauc(actual, predicted)
|
actual |
A vector of the labels. Can be |
predicted |
A data.frame of predicted values. Can be |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | setosa <- glm(I(Species == 'setosa') ~ Sepal.Length, data = iris, family = 'binomial')
versicolor <- glm(I(Species == 'versicolor') ~ Sepal.Length, data = iris, family = 'binomial')
virginica <- glm(I(Species == 'virginica') ~ Sepal.Length, data = iris, family = 'binomial')
Pred <-
data.frame(
setosa = predict(setosa, type = 'response')
,versicolor = predict(versicolor, type = 'response')
,virginica = predict(virginica, type = 'response')
)
Predicted = Pred/rowSums(Pred)
Actual = iris$Species
mauc(Actual, Predicted)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.