powered by
DT_BinaryConfusionMatrix is for computing all metrics related to binary modeling outcomes
DT_BinaryConfusionMatrix( data = MetricsData, GroupVariables = "IntervalNum", Target = "ActiveAtInterval", Predicted = "p1" )
Supply your model validation data with predictions
Supply grouping variables to generate statistics by groups
The name of your target variable column
The name of your predicted value column#'
Other Model Evaluation: ClassificationMetrics(), RemixClassificationMetrics()
ClassificationMetrics()
RemixClassificationMetrics()
# NOT RUN { AggMetricsByGroup <- DT_BinaryConfusionMatrix( data, GroupVariables = c("Store","Dept"), Target = "HitTarget", Predicted = "p1") # }
Run the code above in your browser using DataLab