Skip to content
Novus Examples
csv64 B

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.

Preview — first 5 linescsv
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)

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