README.md

May 24, 2023 ยท View on GitHub

groupargumentdefinition
dataset_argsdataset_namedataset name, choose from 'nyc', 'tky', and 'ca'
min_poi_freqthe least value of one poi's checkin records, if less than or equal to this value, we will remove this poi
min_user_freqthe least value of one user's checkin records, if less than or equal to this value, we will remove this user
session_time_intervalthe time interval of consecutive checkin records in every trajectory should be larger than or equal to this value
thresholdthe similarity threshold of two trajectories when building hypergraph, if less than this value, we will remove this traj2traj relation
filter_modethe similarity metric, choose from 'jaccard' and 'min size'
num_spatial_slotsthe total number of slots for continuous distance value
spatial_slot_typeconstruct distance slots automatically based on min, max value of distance, choose from 'linear' and 'exp'
do_label_encodewhether to encode the id via LabelEncoder
only_last_metricwhether to use only the last checkin of every trajectory as sample to evaluate our model
max_d_epsilonadd this value to maximum distance to avoid bugs
model_argsmodel_namemodel name, choose from 'sthgcn' (our model) and 'seq_transformer' (for ablation study)
intra_jaccard_thresholdthe intra-user similarity threshold for hyperedge2hyperedge collaboration, only keep those collaborations whose similarities are larger than this value
inter_jaccard_thresholdthe inter-user similarity threshold for hyperedge2hyperedge collaboration, only keep those collaborations whose similarities are larger than this value
sizessample size for different hops, the last element is for checkin2trajectory, other elements is for multi-hop trajectory2trajectory. e.g. sizes=[10, 20, 30], [10,20] is for traj2traj 2-hop sampling, [30] is for ci2traj.
dropout_ratethe dropout rate
num_edge_typethe total number of edge type
generate_edge_attrwhether to generate edge attr embedding based on edge type
embed_fusion_typeembedding fusion type, choose from 'concat' and 'add'
embed_sizethe embedding size of id embedding and the hidden representation of trajectory
st_embed_sizethe embedding size of spatial and temporal embedding
activationthe activation function, choose from 'elu', 'relu', 'leaky_relu' and 'tanh'
phase_factorphase factor for time encoder
use_linear_transwhether to use linear transformation before output for time encoder
do_traj2trajwhether to use hyperedge2hyperedge collaboration
distance_encoder_typeencoder type of distance, choose from 'time', 'hstlstm', 'stan' and 'simple'. Specially, 'time' means using the TimeEncoder to handle distance value
quantileclip the maximum distance value with clip(0, max_d*quantile), should modify the code in dataset/lbsn_dataset to make this work
conv_argsnum_attention_headsthe total number of attention heads
residual_betathe residual weight of initial representation for gated residual module
learn_betawhether to learn residual beta automatically
conv_dropout_ratethe dropout rate for hypergraph transformer
trans_methodthe translation method of message assembler, choose from 'corr', 'sub', 'add', 'multi' and 'concat'
edge_fusion_modethe fusion mode of edge vector, choose from 'concat' and 'add'
head_fusion_modethe fusion mode of multi-head, choose from 'concat' and 'add'
time_fusion_modethe fusion mode of time vector, choose from 'concat' and 'add'
residual_fusion_modethe fusion mode of gated residual module, choose from 'concat' and 'add'
negative_slopethe negative slope for leaky_relu activation function
run_argsseedrandom seed for generate random number, and reproduce the experiments. Not used for multiple-run setting.
gpugpu index, use cpu if set -1
batch_sizetraining batch size
eval_batch_sizeevaluation batch size
learning_ratethe learning rate
do_trainwhether to do training
do_validatewhether to do validation
do_testwhether to do testing
warm_up_stepsthe warm up steps with constant initial learning rate
cooldown_ratethe cooldown rate for learning rate schedualing, make the learning rate approximate an exponential decay curve with respect to the global steps
max_stepsthe max steps for training
epochthe training epoch
valid_stepsdo evaluating every valid_steps
num_workersthe total number of workers for dataloader
init_checkpointthe checkpoint path
seq_transformer_argsonly works when model_args.name==seq_transformer
sequence_lengththe max length of the sequences
header_numthe head number of multi-head
encoder_layers_numthe total number of encoder layers
hidden_sizethe embedding size of hidden representation
dropoutthe dropout rate
do_positional_encodingwhether to use positional encoding