View source: R/tidyBinaryInfoStats.R
calculateMultiClassMI | R Documentation |
The purpose of this is to make it possible to calculate MI from tidy data. This is useful where you have a a data from that represents a multi-class confusion matrix with unique combinations of inputs and probabilities for the co-occurrence and marginal probabilities already calculated. Typically this will be generated by the probabilitiesFromCooccurrence function.
calculateMultiClassMI(df)
df |
a dataframe containing one observation per row & minimally p_x1y1, p_x1, p_y1 columns (see probabilitiesFromCounts / probabilitiesFromCooccurrence) |
the datatable with additional columns for MI
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.