Skip to main content

Garrus logo

In the middle of some calibrations...

CodeFactor Pipi version Docs PyPI Status

Telegram Github contributors

python python python

Garrus is a python framework for better confidence estimate of deep neural networks. Modern networks are overconfident estimators, that makes themselves unreliable and therefore limits the deployment of them in safety-critical applications.

Garrus provides tools for high quality confidence estimation such as confidence calibration and ordinal ranking methods, helping networks to know correctly what they do not know.


Installation:

pip install -U garrus

Documentation:

Roadmap:

  • Core:
    • Calibration metrics:
      • ECE
      • NLL
      • Brier
    • Ordinal Ranking Metrics:
      • AURC
      • E-AURC
      • AUPRE
      • FPR-n%-TPR
    • Visualizations:
      • Reliability Diagram
      • Confidence Histogram
    • Garrus Profiling
  • Confidence Calibration:
    • Scaling:
      • Platt
      • Temperature
    • Binning:
      • Histogram
      • Isotonic Regression
  • Confidence Regularization:
    • Losses:
      • Correctness Ranking Loss
      • Focal Entropy Penalized Loss
    • Language Model Beam Search
  • Confidence Networks:
    • ConfidNet
    • GarrusNet

Citation:

Please use this bibtex if you want to cite this repository in your publications:

@misc{garrus,
    author = {Kalashnikov, Alexander},
    title = {Deep neural networks calibration framework},
    year = {2021},
    publisher = {GitHub},
    journal = {GitHub repository},
    howpublished = {\url{https://github.com/sleep3r/garrus}},
}

References:

Papers
[1] Guo, Chuan, et al. "On calibration of modern neural networks." International Conference on Machine Learning. PMLR, 2017. APA
[2] Moon, Jooyoung, et al. "Confidence-aware learning for deep neural networks." international conference on machine learning. PMLR, 2020.
[3] Kumar, Ananya, Percy Liang, and Tengyu Ma. "Verified uncertainty calibration." arXiv preprint arXiv:1909.10155 (2019).

Metadata

Release files for garrus 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for garrus 0.3.0
File Size Uploaded
garrus-0.3.0.tar.gz 12.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for garrus 0.3.0
File Interpreter ABI Platform
garrus-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 29.4 kB

Release files / garrus-0.3.0.tar.gz

Download URL garrus-0.3.0.tar.gz
Size 12.4 kB
Tags Source
SHA-256 checksum
How to use checksums
62d2510a0ed89e42a272aed9037ca39c070f6938085c99764cc97cf56e057c41
BLAKE2b-256 checksum
How to use checksums
e7a128e868a8439db242eddabcca8dee4a305e9d4f58f192c1ac6b2e54bac7b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.1 Darwin/24.1.0

Release files / garrus-0.3.0-py3-none-any.whl

Download URL garrus-0.3.0-py3-none-any.whl
Size 16.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d6a9ba09f61e9875771939c099a461ba0daa7dafd3892e33c5cbfd968c55ff1d
BLAKE2b-256 checksum
How to use checksums
c262637e75f3e3431d5fd0807386621bce5a6686bdc1a6d6ae83096841b9ed37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.3 CPython/3.12.1 Darwin/24.1.0

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page