Quality of Ersilia predictions
Quality scoring for Ersilia Model Hub predictions. eosquality describes how a model's output for a molecule compares with the same model's behaviour on a reference library and with its training sets. The scores are not ground truth: they do not estimate whether a prediction is correct. Per-column normalisation is done with eosframes.
Installation
Install the latest version of eosquality directly from GitHub:
pip install git+https://github.com/ersilia-os/eosquality.git
The CLI is then available as eosquality. Start by setting it up, which fetches the reference library:
eosquality setup
This downloads the reference library and stores it under ~/.eosquality/indices/.
Quick start
The typical workflow is two commands: fit once per Ersilia model, then run on any query dataset against the saved artifacts. fit takes the model's predictions on the reference library (-r), its per-output-column training sets (-t), or both, and fits the matching scores. File and folder names carry the model id and version ([prefix_]<eos_id>_<version>, e.g. reference_eos4e40_v1.csv); a name without them is an error. See the CLI docs.
Fitting a reference library
The input CSV must hold the model's predictions on the exact molecules of the canonical Ersilia reference library for your installed eosquality version, in library order. It needs a key column, an input (SMILES) column, and one numeric column per model output. The artifacts folder (-a) stores the fitted scores.
There is one and only one reference library per major version of eosquality, so the molecule set is fixed by your install. If the SMILES entries in the input CSV don't match that library, fit refuses with an error.
eosquality fit -r reference_eos4e40_v1.csv -a eos4e40_v1_domain.zip
# optionally with training sets: -t training_eos4e40_v1/
# skip a score: --exclude ref_match
Please check Isaura for a large store of pre-calculations across Ersilia models. Pre-fitted artifacts of Ersilia Model Hub models are stored as <eos_id>_<vN>_domain.zip files; see the pre-fitted store.
Fitting training sets
-t takes a folder with one <output_column>.csv per model output, each
with a smiles column. Given both -r and -t, the scores cover only the
output columns that have a training set.
eosquality fit -r reference_eos4e40_v1.csv -t training_eos4e40_v1/ -a eos4e40_v1_domain.zip
Running against new samples
At querying time, run loads a fitted artifacts file and scores any query CSV containing Ersilia results for the same model. A training-only artifact needs nothing but SMILES, in an input or smiles column. The output CSV has key, input, and the columns of each fitted score (see below): percentiles in (0, 1] with their *_raw values, and 1 / 0 match flags. Reference scores are named ref_…, training scores trn_….
eosquality run -i query_eos4e40_v1.csv -a eos4e40_v1_domain.zip -o quality_eos4e40_v1.csv
Scores
Typicality and extremity compare a query against the model's own predictions on the reference library, which is not ground truth; each is calibrated so that reference molecules score roughly Uniform(0, 1). The match flags are exact lookups against the library's molecules. Training-modality scores compare it against the model's training sets instead, calibrated so that training molecules score roughly Uniform(0, 1).
| Score | Columns | Question |
|---|---|---|
| Typicality | ref_typicality_pct, ref_typicality_raw |
Are the predicted values ones the model commonly produces? |
| Extremity | ref_extremity_pct, ref_extremity_raw |
Are the predicted values far from the centre of the model's output range? |
| Reference match | ref_match, ref_scaffold |
Is the same structure, or the same Murcko scaffold, in the reference library? 1 or 0. |
| Training similarity | trn_tanimoto_pct, trn_tanimoto_raw |
How close is the molecule to the model's training molecules (Morgan fingerprints), compared with how close they are to each other? Raw is the mean Tanimoto similarity to the 5 nearest; higher is closer. |
| Training physchem | trn_physchem_pct, trn_physchem_raw |
The same question in physicochemical descriptor space. |
| Training match | trn_match, trn_scaffold |
Is the same structure, or the same Murcko scaffold, in a training set? 1 or 0. |
The _pct columns are calibrated percentiles and the _raw columns the underlying values. run --details also writes the per-column values and the nearest training molecules.
About the Ersilia Open Source Initiative
The Ersilia Open Source Initiative is a tech-nonprofit organization fueling sustainable research in the Global South. Ersilia's main asset is the Ersilia Model Hub, an open-source repository of AI/ML models for antimicrobial drug discovery.
Metadata
Release files for eosquality 0.3.2
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 |
|---|---|---|---|---|
| eosquality-0.3.2.tar.gz | 156.3 kB | With provenance | Details for eosquality-0.3.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| eosquality-0.3.2-py3-none-any.whl | Python 3 | none | any | Details for eosquality-0.3.2-py3-none-any.whl |
Total release size: 314.8 kB
Release files / eosquality-0.3.2.tar.gz
| Download URL | eosquality-0.3.2.tar.gz |
|---|---|
| Size | 156.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
926254fa95a47eda4c1ef0f316a562a85142adb454abb6001f7f43faba84d724
|
|
BLAKE2b-256 checksum How to use checksums |
0badca3c2b51842cf871eeea5eb9f27c7874f318fe276a07e4b349b01b67dd5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logRelease files / eosquality-0.3.2-py3-none-any.whl
| Download URL | eosquality-0.3.2-py3-none-any.whl |
|---|---|
| Size | 158.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03e03fe3bacd52100e9985a69aaf3d00be507b104cc4858fb5aed8c6a6691b63
|
|
BLAKE2b-256 checksum How to use checksums |
fcdd7d54dde3286c8108f9b92556da14492d0007f7a328a63f5365d20a29b5b3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logSecurity for eosquality 0.3.2
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.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for eosquality-0.3.2.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 30, 2026.
Transparency logA 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.