Description Usage Arguments Value Examples
This function calculate a odds table.
1 | odds_table(target, score, nclass = 10, quantile = TRUE, breaks = NULL)
|
target |
A numeric binary vector 0,1 |
score |
A numeric vector of predictions |
nclass |
A numeric input for determinate the number of classes if |
quantile |
A boolean to set if the cuts are made by quantile or counts. This parameter is udes if |
breaks |
An optional numeric vector to set the intervals to use |
A dplyr::data_frame object with the counts, percents and odds
1 2 3 4 5 6 7 8 9 | data(predictions)
score <- round(predictions$score * 1000)
target <- predictions$target
odds_table(target, score, nclass = 5)
odds_table(target, score, nclass = 5, quantile = FALSE)
odds_table(target, score, breaks = c(-Inf, 250, 750, Inf))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.