calculateMultiClassMI: Calculate single mutual information score from multiclass...

View source: R/tidyBinaryInfoStats.R

calculateMultiClassMIR Documentation

Calculate single mutual information score from multiclass groups in dplyr friendly manner.

Description

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.

Usage

calculateMultiClassMI(df)

Arguments

df

a dataframe containing one observation per row & minimally p_x1y1, p_x1, p_y1 columns (see probabilitiesFromCounts / probabilitiesFromCooccurrence)

Value

the datatable with additional columns for MI


terminological/tidy-info-stats documentation built on Nov. 19, 2022, 11:23 p.m.