Show classification tables for models.

Parameters:

Parameters:
See dedicated page for more information.
The R Confusion action button visualizes classification performance using a confusion matrix based on aggregated prediction results. It helps measure the accuracy of classification models by comparing actual vs. predicted values, and produces a visual chart with per-class accuracy percentages.
Input Type: CSV or table with aggregated class predictions
Required Columns:
Actual: Ground truth class labelPredicted: Predicted class labelValue: Count of occurrences (numeric only)Accepted Format: UTF-8 CSV file with headers
Important: Make sure the Value column contains valid numeric data. Columns Actual and Predicted must contain valid, consistent string labels.
Example Input Table:
| Actual | Predicted | Value |
|---|---|---|
| cat | cat | 15 |
| cat | dog | 3 |
| dog | dog | 12 |
| dog | cat | 5 |
| rabbit | rabbit | 10 |
| rabbit | dog | 2 |
File used: confusion_matrix_input.csv
Confusion Matrix Image (ActualPredicted.png)
A square matrix showing Actual vs. Predicted class distribution, with counts and class-wise accuracy.
Accuracy Metric
Printed above the matrix (e.g., Correct Classification 78.72%)
Behavior with idOutput:
Whether HTML document, Image, or chart is selected — the same PNG file is generated.
Example Output Image:

Prepare Input File
Use readCSV to load a properly structured CSV with Actual, Predicted, and Value.
Link the Action Button
Connect the file to the R Confusion action.
Set Parameters
HTML document or Image) — both generate a .png file.
Run the Pipeline
Add RunToFinishLine and execute.
View Results
Records to download/view the image.Log tab for summary and debug information.
Input File: confusion_matrix_input.csv
Output Chart:

Correct Classification: 78.72%
Machine Learning Evaluation
After predicting labels with a classification model, use this to visualize confusion matrix results.
ETL Model Diagnostics
Monitor how classification models behave when integrated into automated pipelines.
Performance Reporting
Export images as visual artifacts for reports or dashboards.
Error in dev.off(): cannot shut down device 1 (the null device)Cause: R plot failed to close — likely due to empty/malformed input or no matching factors.
Fix: Ensure input has valid Actual/Predicted values with numeric counts. Avoid empty inputs.
'-' not meaningful for factorsCause: The input contains unexpected values such as "-" or missing labels that are interpreted as factor types.
Fix: Clean the input file; remove or replace any invalid or placeholder strings.
ggplot2 or plotly version warningsNote: These are warnings only. They appear when the R packages are from a different version but usually don't break the output.
Authorization required, but no authorization protocol specifiedCause: Pipeline ran in an environment requiring authentication.
Fix: Ensure your session or environment is properly authorized.
.png file will be generatedidColLow and idColHigh for better visualization