Description Usage Arguments Value
Calculate confusion matrix for a given set of comparison data
1 | calculateConfusionMatrix(threshold = 0.5, comparisonData)
|
threshold |
A number between 0 and 1. Any user whose estimated return probability exceeds this threshold is predicted to return next week. |
comparisonData |
A data.frame of the form (user_id, return_probability, showed_up). return_probability is the users' estimated return probability, and showed_up is an indicator of whether they actually showed up (1 = they showed up) |
A data frame of the form (prediction, showed_up, user_count) that gives the number of users that fall into each category
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.