olmoearth_inferenceX
Checks an Earth-observation map after inference: where it is likely wrong, how wrong it is, which part you can trust, and which of two maps is better.
It reads only the per-class scores a model writes out. It never runs the model and needs no torch, so it works on OlmoEarth's outputs, on other models' maps and on published products with a confidence layer, whatever the imagery type: Sentinel-1, Sentinel-2, Landsat, or other satellites. (Tested so far on maps made from Sentinel-1, Sentinel-2 and Landsat.)
Documentation: https://olmoearth-inferencex.readthedocs.io/
Install
pip install "olmoearth-inferencex[geo]" # Python 3.11 to 3.13; without [geo] it reads .npy only
oe-inferencex demo # a real Dynamic World tile; needs no data
What it answers
| Question | Commands | Labels |
|---|---|---|
| Where do I look first? | assess scores.tif --out audit |
none |
| How wrong is the map? | sample scores.tif --budget 400 --design random --out to_label.csv, fill in wrong, then estimate to_label.csv |
about 400 random windows |
| Which part can I trust? | certify to_label.csv --alpha 0.05 |
the same windows; with sample --target C, about half what the Bonferroni rule needs when C is right |
| Which class does the map draw wrong? | add a reference_class column (the class you see), then estimate to_label.csv --per-class |
the same windows for a large class; about 900 for a 5% class drawn at half, thousands at 1% (plan --class-share) |
| Which of two maps of the same time is more accurate? | sample a.tif --other b.tif --budget 100 --out pairs.csv, fill in reference_class, then estimate pairs.csv |
about 100, where the maps differ |
| Which class's confident calls can't I trust? | sample scores.tif --design audit --per-class 20 --out audit.csv, fill in reference_class, then estimate audit.csv --alpha 0.05 |
about 20 per class |
| Where do two maps differ? | compare a.tif b.tif --out diff |
none |
| Can someone else check which part I certified? | sample with --seed-from-map --alpha 0.05; certificate to_label_zone.json --date 2024-01-01/2024-12-31 --out cert, then verify cert/certificate.json --scores map.tif |
none beyond certify's |
| At which window size can each class be seen? | scale scores.tif (add --reference truth.tif for each size's error rate) |
none |
| How accurate is a map by an agency's published sample (NLCD, GFC2020)? | grade points.csv --stratum S --weight W --reference R --map M (--map twice for two maps) |
none: the agency's labelled points |
Every command starts with oe-inferencex. The input is the model's per-class scores before the argmax, as a GeoTIFF
or a .npy array of shape (C, H, W); grade reads a CSV of labelled points instead. plan says how many labels a question needs and --help lists each command's
options. The quick start runs each one on
a test map.
Examples
Where do I look first? Dynamic World, a land-cover map made from Sentinel-2, on one tile in southern Peru. No labels are used to pick the windows; the expert's labels only show how it did.
The 5% it flags first are wrong 67% of the time. A random 5% would be wrong 19% of the time.
Where do two maps differ? A flood at Lake Shkodër, Albania, in March 2018 (Copernicus EMS activation EMSR273), seen by Sentinel-2 and Sentinel-1.
Inside the orange box, water mapped from each sensor before and after (imagery from GEOID-Flood and WorldFloods v2); orange squares are where two maps disagree:
Which of two maps is more accurate? Fields of the World's global field map (FTW, 2nd edition) beside a second model, PRUE B3, on a test chip of the FTW benchmark in Croatia.
Across Croatia's 353 test chips the two maps differ at 13% of windows. There FTW agrees with the benchmark 74% of the time, and labelling 100 of those windows names FTW the better map 99.9% of the time. In Belgium and Sweden, B3 was the better one.
Imagery: contains modified Copernicus Sentinel data (2017 to 2023). Dynamic World map and expert labels: Brown et al., Scientific Data, 2022, CC BY 4.0. FTW map: Fields of the World, CC BY 4.0. How the figures were made is in docs/figures/examples.
What is guaranteed
With windows drawn by sample and labelled by a reviewer:
- Error rate (
estimate, on--design random): an exact 95% interval. The confidence, proportional and tiles designs give approximate ones;estimate --validadds beside them a 95% interval valid at every sample size, on every design but tiles. - Certified zone (
certify, on--design random): the most confident share of the map is wrong at most α of the time, except on at most δ of samples (10% by default). δ also counts the samples that certify nothing, so among those that certify a zone, more than δ can be wrong. On--design sequential, certify can be rerun as labels are added, with the same α and δ. - Per profile (
certify, on--design profile): parts of the map fixed from the map alone before any label (confidence band, input condition, class, grid block) are each called good (wrong at most α), bad (more than α) or undecided; all the verdicts are right together except on at most δ of samples. - Per class (
estimate --per-class, on--design randomorclass): an exact interval for each class's user's accuracy, each at 95%, and for every class's share and producer's accuracy, holding together at 95%. With--valid, on every design but tiles, each class's user's accuracy, producer's accuracy and share get a 95% interval valid at every sample size, each on its own. - Two maps (
sample --other, thenestimate): a 95% interval on their difference, and an exact sign test that names a map, the less accurate one at most 2.5% of the time, while the labels are at most a fifth of the windows where they differ. - A certificate (
certificate, thenverify): anyone with the map, the seed and the labels can rebuild the certified zone and compare. It trusts the issuer on the labels, the map's date and drawing the sample once.
With an agency's own stratified sample (grade): overall accuracy, each class's user's and producer's accuracy and
share of the reference, and the difference of two maps, each with a 95% interval valid at any sample size, beside the
agency's normal-theory one, which is nominal.
Each holds when the settings (α, δ, the budget, the rule and level cut, --classes) were fixed before any label was
read. The tests check each statement by exact computation, and the
research record checks them on fully labelled real maps.
Details: sample and estimate,
certify.
Limits
- Without labels it tells you where to look, not how wrong the map is.
- In a new place or year the ranking can weaken. Check it with a few labels.
- When two legends draw a class boundary differently (grass or shrub, say), only labels find those errors.
- Intervals and certified zones assume the labels are right.
- If parts of the map were made from different inputs (clouds, a missing sensor), use
--condition. - Labelling more and rerunning counts as a new test, except certify on a sequential sample.
Use from an agent
oe-inferencex mcp is a local MCP server; nothing is hosted. Add it to any MCP client as the command
uvx --from "olmoearth-inferencex[geo,mcp]" oe-inferencex mcp, for example in Claude Code:
claude mcp add --scope user oe-inferencex -- uvx --from "olmoearth-inferencex[geo,mcp]" oe-inferencex mcp
Use a capable model; smaller ones dropped the limits the tools state. To try it, write the demo tile into an empty folder, start the agent there and ask:
uvx --from olmoearth-inferencex oe-inferencex demo
Where should I look first in oe_inferencex_demo/sample_probabilities.npy? Use windows of 1 pixel, and grade the order against oe_inferencex_demo/sample_truth.npy.
More
- Every result, its limits and the technical report: the research record.
- Development: clone the repository, then
uv syncanduv run pytest. - Apache License 2.0 (LICENSE); cite with CITATION.cff; questions in GitHub issues.
Metadata
Release files for olmoearth-inferencex 1.20.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 |
|---|---|---|---|---|
| olmoearth_inferencex-1.20.0.tar.gz | 660.5 kB | Without provenance | Details for olmoearth_inferencex-1.20.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| olmoearth_inferencex-1.20.0-py3-none-any.whl | Python 3 | none | any | Details for olmoearth_inferencex-1.20.0-py3-none-any.whl |
Total release size: 1.4 MB
Release files / olmoearth_inferencex-1.20.0.tar.gz
| Download URL | olmoearth_inferencex-1.20.0.tar.gz |
|---|---|
| Size | 660.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
316d1fa769836c0ca007fa49f70453119486cf5dd596abf0bba7ae85de2f83f2
|
|
BLAKE2b-256 checksum How to use checksums |
d6b24f764ad096bfce24801aaa10f4697c2055687ac44ab55a1c5774096aba15
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / olmoearth_inferencex-1.20.0-py3-none-any.whl
| Download URL | olmoearth_inferencex-1.20.0-py3-none-any.whl |
|---|---|
| Size | 691.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1fd44fd9e651a3d0c735178f17ea164aa18a02dc8edc09315a027b5aa14bda91
|
|
BLAKE2b-256 checksum How to use checksums |
a03fda5375b5a87e7318a567657631f80804341aca3991cd996f3309f57eae66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for olmoearth-inferencex 1.20.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.