Skip to main content

Visualizing a confusion matrix with gradations

Project description

# dalmatian

Visualizing a confusion matrix with gradations.

## Installation

pip install dalmatian

## Usage

import numpy as np
import dalmatian

labels = ["ostrich", "swallow", "cuckoo", "chicken", "quail"]
data = np.array([
[50, 0, 0, 0, 0],
[1, 41, 5, 3, 0],
[2, 9, 34, 4, 1],
[1, 1, 8, 38, 2],
[1, 0, 2, 3, 44],
])

mx = dalmatian.matrix(labels, data)

#Options
mx.cell_size = 10.0 #[mm]
mx.font_size = 14
mx.label_font_size = 7
mx.cell_color = "black" #black, red, yellow, green, blue, purple
mx.label_color = "black" #black, white
mx.line_type = "normal" #normal, dot
mx.percentage = False

mx.draw()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dalmatian-0.1.1.tar.gz (2.4 kB view details)

Uploaded Source

File details

Details for the file dalmatian-0.1.1.tar.gz.

File metadata

  • Download URL: dalmatian-0.1.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for dalmatian-0.1.1.tar.gz
Algorithm Hash digest
SHA256 283b417ab418011d3970fc444ee9bafa385828a2dd892948b733623745a5cef3
MD5 321ad0f89be36ab0d034816c8d385a7f
BLAKE2b-256 41a3dd37f14c0935479f853b656a6a22b47d79c9bd598b3c63a7db9b5a4d8d2a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page