Confusion matrix
Confusion matrix evaluates a model by comparing its predictions with actual results in a tabular format. It displays a table where each cell counts rows for a specific combination of predicted and actual values, while also showing prediction errors and overall model accuracy.
To add a confusion matrix, click the Add Viewer icon on the menu ribbon and select Confusion Matrix.
To add the viewer programmatically from the console, use:
grok.shell.tv.addViewer('Confusion Matrix');

Filtering
Click a cell to filter the table to the rows of that cell. The filter applies together with the filter panel and stays when the panel changes. Click the same cell again to remove the filter, or click another cell to replace it. The filter is also removed when you close the viewer, change its columns, or reset the filters.
Properties
| Property | Type | Description |
|---|---|---|
| General | ||
| X Column Name | string | Column to be put on the X axis |
| Y Column Name | string | Column to be put on the Y axis |
| Row Source | string | Determines the rows shown on the plot. |
| Allow Dynamic Menus | boolean | |
| Show Context Menu | boolean | Properties common for all viewers todo: use code generation |
| Title | string | |
| Description | string | Viewer description that gets shown at the Descriptor Position. Markup is supported. |
| Help | string | Help to be shown when user clicks on the '?' icon on top. Could either be in markdown, or a URL (starting with '/' or 'http'). |
| Description Position | flexposition | |
| Description Visibility Mode | visibilitymode | |
| Data | ||
| Filter | string | Formula that filters out rows to show. Examples: ${AGE} > 20 or ${WEIGHT / 2)} > 100, ${SEVERITY} == 'Medium', ${RACE}.endsWith('sian') |
| Table | string | |
| Style | ||
| Controls Font | string | Viewer controls elements font. |
| Description | ||
| Show Title | boolean |