GeoShapley: A Game Theory Approach to Measuring Spatial Effects in Machine Learning Models

Ziqi Li
12/6/2023
cs.LGstat.ML

No official code found. Best implementation: Ziqi-Li/geoshapley (214 stars, last commit 2026-03-30). 1 more below.

Abstract

This paper introduces GeoShapley, a game theory approach to measuring spatial effects in machine learning models. GeoShapley extends the Nobel Prize-winning Shapley value framework in game theory by conceptualizing location as a player in a model prediction game, which enables the quantification of the importance of location and the synergies between location and other features in a model. GeoShapley is a model-agnostic approach and can be applied to statistical or black-box machine learning models in various structures. The interpretation of GeoShapley is directly linked with spatially varying coefficient models for explaining spatial effects and additive models for explaining non-spatial effects. Using simulated data, GeoShapley values are validated against known data-generating processes and are used for cross-comparison of seven statistical and machine learning models. An empirical example of house price modeling is used to illustrate GeoShapley's utility and interpretation with real world data. The method is available as an open-source Python package named geoshapley.

View on arXivView PDF

Code Implementations(2)

Ziqi-Li/geoshapleyCommunity100%

A game theory approach to measuring spatial effects from machine learning models.

21423Python, Jupyter NotebookSep 7, 20236 months ago

This is the code implementing in practice from a study proposed by Professor Li——GeoShapley: A Game Theory Approach to Measuring Spatial Effects in Machine Learning Models. The algorithm is built on Shapley value and Kernel SHAP estimator.

10PythonDec 3, 202510 months ago

Similar Papers

Cite this paper

@article{li2023geoshapley,
  title  = {GeoShapley: A Game Theory Approach to Measuring Spatial Effects in Machine Learning Models},
  author = {Ziqi Li},
  year   = {2023},
  eprint = {2312.03675},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.03675v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2312.03675.svg)](https://codeofpaper.com/paper/2312.03675)

Discussion