Projetos
Ver no GitHub
ZJUDataIntelligence/HDM-GNN
Sobre
This is the Pytorch implementation of HDM-GNN in the paper: [HDM-GNN: A Heterogeneous Dynamic Multi-view Graph Neural Network for Crime Prediction] .
IA e aprendizado de máquinaCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- 0
- em 15 dias
- 0
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
OriginalHDM-GNN
This is the Pytorch implementation of HDM-GNN in the paper: [HDM-GNN: A Heterogeneous Dynamic Multi-view Graph Neural Network for Crime Prediction] .
Requirements
- pytorch
- pytorch-geometric
- geopandas
Usage
To run the code
- cd to data folder:
unzip data.zip - cd to model folder:
python train.py --config ../config/config.json --output ../output/
To handle the raw datasets
- Mapping data with geographic locations to area id. Please refer to the code in this /data_process/node_map, which may need some minor adjustments depending on your specific data format.
- Constructing node features based on the mapped POI data, crime data and 311 data. Please refer to the code in this /data_process/node_extraction, which may need some minor adjustments depending on your specific data format.
- Constructing edges based on the mapped mobility data and function similarity data. Function similarity is calculated based on POI node features. Please refer to the code in this /data_process/node_extraction, which may need some minor adjustments depending on your specific data format.
- Train and test the model with the codes in /model.
Explore projetos relacionados
Carregando…