calculateConfusionMatrix: Calculate confusion matrix for a given set of comparison data

Description Usage Arguments Value

Description

Calculate confusion matrix for a given set of comparison data

Usage

1
calculateConfusionMatrix(threshold = 0.5, comparisonData)

Arguments

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)

Value

A data frame of the form (prediction, showed_up, user_count) that gives the number of users that fall into each category


johnchower/gloobtyd documentation built on May 19, 2019, 3:03 p.m.