프로젝트
GitHub에서 보기
ZJUDataIntelligence/HDM-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] .
AI 및 머신러닝측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
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.
관련 프로젝트 살펴보기
불러오는 중…