Home

Awesome

GMDNet

GMDNet: A Graph-Based Mixture Density Network for Estimating Packages’ Multimodal Travel Time Distribution

Usage

Use the following command to run the code:

cd algorithm/GMDNet
python train.py

Repo Structure

The structure of our code and description of important files are given as follows:
│────algorithm/
│ ├────gmdnet/: code of GMDNet.
│────data/: a subset of data used for train, validation, and test.
│────my_utils/
│ ├────util.py

Parameters:

NameTypeDescription
hidden_dimintnumber of hidden units.
n_gaussiansintnumber of Gaussian components.
att_hidden_sizeintnumber of hidden units in the self-attention.
num_of_attention_headsintnum_of_attention_heads.
num_layersintnumber of GNN layers.
dirichlet_alphaintsetting of Dirichlet regularizer.
batch_sizeintnumber of samples per batch.
lrfloatlearning rate for training.
early_stopintstop training when a monitored metric has stopped improving.
num_epochsintnumber of passes over the training data.