Skip to main content

Spatial Equity Assessment for Machine Learning Models

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

geoequity-1.0.2.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

geoequity-1.0.2-py3-none-any.whl (38.2 kB view details)

Uploaded Python 3

File details

Details for the file geoequity-1.0.2.tar.gz.

File metadata

  • Download URL: geoequity-1.0.2.tar.gz
  • Upload date:
  • Size: 35.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geoequity-1.0.2.tar.gz
Algorithm Hash digest
SHA256 8c5548de7926ee862505e0bc67cbf501ae89fa2e3d1f20bb5e45db76f585710e
MD5 8683b2fe54b41f9218ffdd24e515b562
BLAKE2b-256 604a38c178164e742fc61e95041e2e0d64dc671cf4bd619ed5a5231c34ebe2b6

See more details on using hashes here.

Provenance

The following attestation bundles were made for geoequity-1.0.2.tar.gz:

Publisher: publish.yml on px39n/geoequity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file geoequity-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: geoequity-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 38.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for geoequity-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 26ede41e5b5aa1e708b4fbc0e9fe1e97924a80563751e7a443092e48608430a2
MD5 e0da2fc9bcf51aab8f83c4bdf56ed8a7
BLAKE2b-256 d0beb73feafb96b8ff2047c8121c171662a708e857d8057038f60cdb75d3bd50

See more details on using hashes here.

Provenance

The following attestation bundles were made for geoequity-1.0.2-py3-none-any.whl:

Publisher: publish.yml on px39n/geoequity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page