jevkit-bench
Score a labeled Jev suite for accuracy and cost, and compare two runs.
Any one number alone is easy to win. Accuracy without cost hides that you spent ten times the tokens; cost without accuracy hides that you broke the task. This reports them together.
Unofficial and unaffiliated with TypeSafe.
pip install jevkit-bench
Use
from jevkit_core import read_records
from jevkit_bench import compare_suites, score_records
suite = score_records(read_records("suite.jevl"))
print(suite.summary())
for failure in suite.failures()[:5]:
print(failure.question_id, failure.predicted, "should be", failure.label)
failures() sorts by probability descending, so the most confident wrong answers
come first. Those are the interesting bugs: a wrong answer at 0.35 is the model
telling you it was unsure, while a wrong answer at 0.98 is a question that needs
rewriting.
Comparing runs
comparison = compare_suites(baseline, candidate)
print(comparison.summary())
print(comparison.regressions) # right before, wrong now
Aggregate accuracy can hold perfectly steady while the set of things you get right churns underneath. That matters when a specific case is the one you promised someone would work, so regressions and fixes are tracked individually rather than netted off.
CLI
jevkit-bench suite.jevl
jevkit-bench suite.jevl --baseline last-week.jevl
jevkit-bench suite.jevl --min-accuracy 0.90 # CI gate
jevkit-bench suite.jevl --baseline last-week.jevl --max-regressions 0
jevkit-bench suite.jevl --show-failures 10
Cost
Computed from input tokens at $0.042 per million, Jev's published price. Output
tokens are free on Jev, so they are reported but never billed. Override with
--price-per-mtok if your plan differs.
License
MIT
Metadata
Release files for jevkit-bench 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| jevkit_bench-0.1.0.tar.gz | 6.5 kB | Without provenance | Details for jevkit_bench-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| jevkit_bench-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for jevkit_bench-0.1.0-py3-none-any.whl |
Total release size: 13.7 kB
Release files / jevkit_bench-0.1.0.tar.gz
| Download URL | jevkit_bench-0.1.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5ecef06d888cff7a1a5fac27f2e29577fe4c5ef445bc995339396af300fd55e6
|
|
BLAKE2b-256 checksum How to use checksums |
736acfbd0b98f7949b44ae688edd5a4a6d48a7380aab25f13e31d09106a52fcd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Release files / jevkit_bench-0.1.0-py3-none-any.whl
| Download URL | jevkit_bench-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c60ae18b9d376beafcee425d3ba2712e9e45af00bf21eeae81dcbef3352e808b
|
|
BLAKE2b-256 checksum How to use checksums |
48964d28e41404366dfd8617cc4077c41c261b907a51c6258442bebbda8eece7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.10.12
|
Security for jevkit-bench 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.