# Calc Confusion Matrix

## Description

Calculates the confusion matrix from two input maps. The confusion matrix is a table with format “Initial*#real, Final*#real and Changes#real” mapping each possible combination of pair of input map values to their corresponding number of cells.

## Inputs

Name Type Description
Initial Map Categorical Map Type The initial map. This map corresponds to the “Initial” key column of the resulting table.
Final Map Categorical Map Type The final map. This map corresponds to the “Final” key column of the resulting table.

## Output

Name Type Description
Confusion Matrix Table Type Resulting confusion matrix. The confusion matrix is a table with format “Initial*#real, Final*#real and Changes#real” mapping each possible combination of pair of input map values to their corresponding number of cells.

## Notes

If the input maps are completely filled with null values or if there is no non-null intersection between them, an empty confusion matrix will be returned.

## Internal Name

CalcConfusionMatrix