Skip to main content

It's pronounced accura-see. For spaCy models.

Project description

accuraCy

It's pronounced "accura-see". For spaCy models.

The goal of this project is to generate reports for spaCy models.

what it does

The goal of accuraCy is to offer static reports for spaCy models that help users make better decisions on how the models can be used. At the moment the project supports reports for threshold values for classification.

Here's a preview of what to expect:

There are two kinds of charts.

  1. The first kind is a density chart. This chart shows the distribution of confidence scores for a given class. The blue area represents documents that had the tag assigned to the class. The orange area represents documents that didn't.
  2. The second kind is a line chart that demonstrates the accuracy, precision and recall values for a given confidence threshold. It's an interactive chart and you can explore the values by hovering over the chart.

install

You can install the latest version from git.

python -m pip install "accuracy @ git+https://github.com/koaning/accuracy.git"

usage

The accuracy project provides a command line interface that can generate reports. The full CLI can also be explored via the --help flag.

> python -m accuracy --help

Usage: python -m accuracy [OPTIONS] COMMAND [ARGS]...

  It's pronounced 'accura-see'. For spaCy models.

Options:
  --help  Show this message and exit.

Commands:
  report   Generate a model report.
  version  Show version number.

accuracy report

The most important command is the report command. You'd typically use it via a command similar to:

> python -m accuracy report training/model-best/ corpus/train.spacy corpus/dev.spacy

Loading model at training/model-best
Running model on training data...
Running model on development data...
Generating Charts ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 0:00:00
Done! You can view the report via;

python -m http.server --directory reports PORT 

This will generate a folder, typically called "reports", that contains a full dashboard for the trained spaCy model found in training/model-best.

The CLI has a few configurable settings:

Arguments:
  [MODEL_PATH]  Path to spaCy model
  [TRAIN_PATH]  Path to training data
  [DEV_PATH]    Path to development data
  [FOLDER_OUT]  Output folder for reports  [default: reports]

Options:
  --classes TEXT  Comma-separated string of classes to use
  --help          Show this message and exit.

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

accuracy-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

accuracy-0.1.0-py2.py3-none-any.whl (7.7 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file accuracy-0.1.0.tar.gz.

File metadata

  • Download URL: accuracy-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.6

File hashes

Hashes for accuracy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5d6763e5d1d4e89596a5cb40704c9b09898245cd5318fd279fcc2cfc0fb6c125
MD5 b75edeab404d18d9604bad57c873435c
BLAKE2b-256 6b10c36d8b94784c3a29c9c484ffe407b7789dff3bbf405e3b7318c2b401361a

See more details on using hashes here.

File details

Details for the file accuracy-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: accuracy-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.6

File hashes

Hashes for accuracy-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 f26e3b8425d6718bcde45e3ee104d12ff875acb86d69d9bb890663a0fbb1d7e2
MD5 c00b04bbb70fe9d16d8d37b7d351617c
BLAKE2b-256 68fd72ae6abe803ca806e666e76e1290345e7e8a12f934a52ce22d62fb76df2d

See more details on using hashes here.

Supported by

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