MAGRE builds adaptive spatial region embeddings that can be used in multiple downstream tasks.
- Python >= 3.8
- pytorch
- Clone the repository
git clone https://github.com/Rajjat/MAGRE
cd MAGRE
- Install the Python Requirements
pip install -r requirements.txt
python model.py # to train the model
python model -tr embed # to generate the embeddings
python regression_tasks.py # to run crime prediction and check-in prediction
python3 landusage_classfication.py # to run the land use classification task
The experiments were conducted using Ubuntu 22.04.2 LTS, utilizing a system equipped with 1TB RAM and 96 cores