Confusion Matrix — 3-class (CSV)
A 3-class confusion matrix as CSV — rows are the true class, columns the predicted class, cells the counts. Paired with a JSON twin for testing metric parsers and evaluation visualisers.
actual,person,car,tree
person,48,3,1
car,4,51,2
tree,2,1,44
Specifications
- Classes
- 3
- Labels
- person, car, tree
- Layout
- rows = actual, columns = predicted
What is a .csv file?
CSV (Comma-Separated Values) is a plain-text tabular format where rows are lines and fields are separated by commas, with quoting rules for values that contain delimiters, quotes, or newlines. It has no formal type system and depends on encoding and dialect conventions. It is the most portable format for tabular data exchange.
How to use this file
Use an example CSV to test parsers against quoting and embedded-delimiter edge cases, header handling, encoding detection, and import pipelines into databases or spreadsheets.
Code examples
import pandas as pd
df = pd.read_csv("confusion-matrix.csv")
print(df.head())
print(df.dtypes)Related files
- csvROC Curve Points (CSV)An ROC curve as CSV — decision threshold with the corresponding false-positive and true-positive rates, monotonic from (0,0) to (1,1). A fixture for testing chart tools and AUC calculators.

- csvSurvey Responses — Likert + NPS (CSV, 60 rows)A customer-survey response set — 60 respondents rating five statements on a 1–5 Likert scale plus a 0–10 NPS score and a segment. A fixture for testing survey analysis, aggregation, and NPS/CSAT calculations.

- jsonClassification Report (JSON)A per-class classification report in the scikit-learn structure — precision, recall, F1, and support for each class plus accuracy and macro/weighted averages. A fixture for testing metric parsers and report renderers.

- jsonModel Benchmark Results (JSON)A model-evaluation summary in JSON — per-task scores for a fictional model across sentiment, NER, summarization, translation, and QA, each with its metric and sample size. A fixture for testing eval dashboards and leaderboard importers.

- jsonDetection Annotations — COCO (JSON)Object-detection annotations for the scene in the COCO JSON format — images, categories, and per-object bounding boxes as [x, y, width, height]. Grouped with YOLO and Pascal-VOC twins for testing annotation-format conversion.

- xmlDetection Annotations — Pascal VOC (XML)The same detection boxes in the Pascal VOC XML format — a per-image annotation with size, and one object element per box with pixel corner coordinates. The XML twin of the COCO and YOLO annotations.

Generated by generation/ai_datasets.py. Free for any use, no attribution required — license.