ONTO Epistemic Risk Standard - Reference Implementation & API Client
Project description
ONTO Standard
Reference implementation of ONTO Epistemic Risk Standard v1.0 (ONTO-ERS-1.0).
Installation
pip install onto-standard
Quick Start
from onto_standard import evaluate, Prediction, GroundTruth, Label
# Your model predictions
predictions = [
Prediction(id="q1", label=Label.KNOWN, confidence=0.9),
Prediction(id="q2", label=Label.UNKNOWN, confidence=0.7),
Prediction(id="q3", label=Label.KNOWN, confidence=0.95),
]
# Ground truth
ground_truth = [
GroundTruth(id="q1", label=Label.KNOWN),
GroundTruth(id="q2", label=Label.KNOWN), # Model was wrong
GroundTruth(id="q3", label=Label.UNKNOWN), # Model missed this
]
# Evaluate
result = evaluate(predictions, ground_truth)
# Check compliance
print(result.compliance_level) # ComplianceLevel.BASIC
print(result.unknown_detection.recall) # 0.0 (missed the unknown)
print(result.calibration.ece) # ~0.3 (overconfident)
CLI Usage
onto-standard predictions.jsonl ground_truth.jsonl
Output:
═══════════════════════════════════════════════════════════════
ONTO EPISTEMIC RISK ASSESSMENT
Standard: ONTO-ERS-1.0
═══════════════════════════════════════════════════════════════
COMPLIANCE STATUS
─────────────────────────────────────────────────────────────────
Level: BASIC
Certification Ready: ✓ YES
Risk Level: MEDIUM
Risk Score: 45/100
KEY METRICS
─────────────────────────────────────────────────────────────────
Unknown Detection: 35.0% (threshold: ≥30%)
Calibration Error: 0.180 (threshold: ≤0.20)
...
Compliance Levels
| Level | Unknown Detection | Calibration Error | Use Case |
|---|---|---|---|
| Basic | ≥30% | ≤0.20 | Low-risk applications |
| Standard | ≥50% | ≤0.15 | Customer-facing AI |
| Advanced | ≥70% | ≤0.10 | High-stakes, regulated |
Regulatory Mapping
ONTO-ERS-1.0 maps to:
- EU AI Act Articles 9, 13, 15
- NIST AI RMF MEASURE function
- ISO/IEC 23894 AI risk management
Legal Citation
Per ONTO Epistemic Risk Standard v1.0 (ONTO-ERS-1.0),
the AI system achieves [LEVEL] compliance with Unknown
Detection Rate of [X]% and Expected Calibration Error of [Y].
Documentation
- Standard: https://onto-bench.org/standard
- API Reference: https://onto-bench.org/standard/api
- Certification: https://onto-bench.org/certified
License
Apache 2.0
About
Maintained by the ONTO Standards Council.
ONTO Standards Council. (2026). ONTO Epistemic Risk Standard
(Version 1.0). ONTO-ERS-1.0. https://onto-bench.org/standard
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
onto_standard-1.1.0.tar.gz
(20.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file onto_standard-1.1.0.tar.gz.
File metadata
- Download URL: onto_standard-1.1.0.tar.gz
- Upload date:
- Size: 20.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0caf4e29ab8c2acc7f15ab571d3f876ba3e9b0964e9e169f0b69343ffb934794
|
|
| MD5 |
d0c82199fe957b7355c5add2036f7595
|
|
| BLAKE2b-256 |
4e2ef80a5deeaaf66bf041af7d63f1d4bef7e7088e970bfcc0387bf7c7e87ad1
|
File details
Details for the file onto_standard-1.1.0-py3-none-any.whl.
File metadata
- Download URL: onto_standard-1.1.0-py3-none-any.whl
- Upload date:
- Size: 15.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08112c12334c792e46f9586d51be9657c6062e85ce5670aa59ae5982e1787f72
|
|
| MD5 |
91d359d71a7e51af66d966e3d74428bc
|
|
| BLAKE2b-256 |
3ef7c02de28b3b5901ad6b003c2db4de903be327477f3e57352d7b7ceb4b83ff
|