Home

Awesome

STHSL

A pytorch implementation for the paper:<br /> Spatial-Temporal Hypergraph Self-Supervised Learning for Crime Prediction<br /> In ICDE 2022.

Introduction

Spatial-Temporal Hypergraph Self-Supervised Learning for Crime Prediction (STHSL) is a spatio-temporal prediction networks. By adding self-supervised learning methods as auxiliary tasks, STHSL can tackle the label scarcity issue in crime prediction.

Structure

Environment requirement

The code can be run in the following environments, other version of required packages may also work.

Run the codes

python train.py --data NYC
python test.py --data NYC --checkpoint ./Save/NYC/your_file_names
python train.py --data CHI
python test.py --data CHI --checkpoint ./Save/CHI/your_file_names