Spatial Equity Assessment for Machine Learning Models
Project description
GeoEquity
Spatial Equity Assessment for Machine Learning Models
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8c5548de7926ee862505e0bc67cbf501ae89fa2e3d1f20bb5e45db76f585710e
|
|
| MD5 |
8683b2fe54b41f9218ffdd24e515b562
|
|
| BLAKE2b-256 |
604a38c178164e742fc61e95041e2e0d64dc671cf4bd619ed5a5231c34ebe2b6
|
Provenance
The following attestation bundles were made for geoequity-1.0.2.tar.gz:
Publisher:
publish.yml on px39n/geoequity
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geoequity-1.0.2.tar.gz -
Subject digest:
8c5548de7926ee862505e0bc67cbf501ae89fa2e3d1f20bb5e45db76f585710e - Sigstore transparency entry: 762517510
- Sigstore integration time:
-
Permalink:
px39n/geoequity@55fba11f0074f413ca466f31a378d265478c63b7 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/px39n
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@55fba11f0074f413ca466f31a378d265478c63b7 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
26ede41e5b5aa1e708b4fbc0e9fe1e97924a80563751e7a443092e48608430a2
|
|
| MD5 |
e0da2fc9bcf51aab8f83c4bdf56ed8a7
|
|
| BLAKE2b-256 |
d0beb73feafb96b8ff2047c8121c171662a708e857d8057038f60cdb75d3bd50
|
Provenance
The following attestation bundles were made for geoequity-1.0.2-py3-none-any.whl:
Publisher:
publish.yml on px39n/geoequity
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
geoequity-1.0.2-py3-none-any.whl -
Subject digest:
26ede41e5b5aa1e708b4fbc0e9fe1e97924a80563751e7a443092e48608430a2 - Sigstore transparency entry: 762517512
- Sigstore integration time:
-
Permalink:
px39n/geoequity@55fba11f0074f413ca466f31a378d265478c63b7 -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/px39n
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@55fba11f0074f413ca466f31a378d265478c63b7 -
Trigger Event:
release
-
Statement type: