Skip to main content

GeoEquity

Spatial Equity Assessment for Machine Learning Models

DOI License: MIT

GeoEquity diagnoses and visualizes spatial performance disparities in geospatial ML models—identifying where models underperform and predicting accuracy across space.

Installation

pip install geoequity

Quick Start

After training your ML model, use GeoEquity to analyze spatial accuracy patterns:

from geoequity import TwoStageModel

# Your validated predictions (see Required Data below)
ts = TwoStageModel()
ts.fit(df_test, model_name='mymodel')

# Predict accuracy at any location
accuracy = ts.predict(longitude=5.0, latitude=50.0, density=0.001)

# Generate diagnostic report
ts.diagnose(save_dir='diagnostics/')

Required Data

Your DataFrame should contain:

Column Description
longitude, latitude Coordinates
observed Ground truth values
predicted_{model_name} Your model's predictions
density Data density at each location
sufficiency Training sample size

Documentation

📖 Full documentation: https://px39n.github.io/geoequity/

Data

Example datasets are available on Zenodo: https://doi.org/10.5281/zenodo.17915696

Direct download: geoequity.zip

Citation

@article{liang2025geoequity,
  title={Countering Local Overfitting for Equitable Spatiotemporal Modeling},
  author={Liang, Zhehao and Castruccio, Stefano and Crippa, Paola},
  journal={...},
  year={2025}
}

License

MIT License

Metadata

Release files for geoequity 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geoequity 1.0.2
File Size Uploaded Provenance
geoequity-1.0.2.tar.gz 35.5 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for geoequity 1.0.2
File Interpreter ABI Platform
geoequity-1.0.2-py3-none-any.whl Python 3 none any Details

Total release size: 73.6 kB

Release files / geoequity-1.0.2.tar.gz

Download URL geoequity-1.0.2.tar.gz
Size 35.5 kB
Tags Source
SHA-256 checksum
How to use checksums
8c5548de7926ee862505e0bc67cbf501ae89fa2e3d1f20bb5e45db76f585710e
BLAKE2b-256 checksum
How to use checksums
604a38c178164e742fc61e95041e2e0d64dc671cf4bd619ed5a5231c34ebe2b6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 12, 2025.

Transparency log

Release files / geoequity-1.0.2-py3-none-any.whl

Download URL geoequity-1.0.2-py3-none-any.whl
Size 38.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
26ede41e5b5aa1e708b4fbc0e9fe1e97924a80563751e7a443092e48608430a2
BLAKE2b-256 checksum
How to use checksums
d0beb73feafb96b8ff2047c8121c171662a708e857d8057038f60cdb75d3bd50
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.7

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 Dec 12, 2025.

Transparency log

Security for geoequity 1.0.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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for geoequity-1.0.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 Dec 12, 2025.

Transparency log

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page