Transparent multimodal reasoning metrics from the CRYSTAL benchmark (Match F1, Ordered Match F1, accuracy).
Project description
crystal-metrics
Transparent multimodal reasoning metrics from the CRYSTAL benchmark — Match F1, Ordered Match F1, Precision, Recall, and multi-format Accuracy.
pip install crystal-metrics # core metrics
pip install crystal-metrics[judge] # + optional LLM judge
from crystal_metrics import MLLMReasoningEvaluator
evaluator = MLLMReasoningEvaluator() # all-distilroberta-v1, tau=0.35 (paper defaults)
m = evaluator.evaluate_single(
predicted_steps=["Three objects on a table", "The middle one is smallest", "Answer C"],
reference_steps=["There are three objects", "Compare their sizes", "Middle is smallest", "Select C"],
alpha=0.3, # enable Ordered Match F1
)
print(m.match_f1, m.precision, m.recall, m.ordered_match_f1)
See the docs for installation, quickstart, metric definitions, and the CLI.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
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 crystal_metrics-0.1.0.tar.gz.
File metadata
- Download URL: crystal_metrics-0.1.0.tar.gz
- Upload date:
- Size: 25.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
799481632a17e446fe27498b1bc5d5322c75567ea8ed2550d7ebf60442df10a7
|
|
| MD5 |
5a15fd569afdf607c59247c7fc9f0940
|
|
| BLAKE2b-256 |
688e4285b5fd9480bcc6837a90ed68d3e1fa693e142f2a1ad48b6d7f9eaf4291
|
File details
Details for the file crystal_metrics-0.1.0-py3-none-any.whl.
File metadata
- Download URL: crystal_metrics-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
623261fe68a018d5918c9613c193f06e40c63cb8211843247b1e195753c44606
|
|
| MD5 |
43688089b27c17caeeca0a2a3bad6fa7
|
|
| BLAKE2b-256 |
79da09777adfc86863c980ad6c2b631d6524680ebf72134229bb7f71336226c9
|