LibCity / Bigscity-LibCity

LibCity: An Open Library for Urban Spatial-temporal Data Mining
https://libcity.ai/
Apache License 2.0
934 stars 168 forks source link

Add model TESTAM #413

Closed hczs closed 6 months ago

hczs commented 6 months ago

任务执行配置信息

数据集配置文件(TrafficStatePointDataset.json)

{
  "batch_size": 16,
  "cache_dataset": true,
  "num_workers": 0,
  "pad_with_last_sample": false,

  "train_rate": 0.7,
  "eval_rate": 0.1,

  "scaler": "standard",
  "load_external": true,
  "normal_external": false,
  "ext_scaler": "none",
  "input_window": 12,
  "output_window": 12,
  "add_time_in_day": true,
  "add_day_in_week": false
}

模型配置文件(TESTAM.json)

{
  "max_epoch": 100,

  "learner": "adam",
  "learning_rate": 1e-3,
  "lr_beta1": 0.9,
  "lr_beta2": 0.98,
  "lr_epsilon": 1e-9,

  "lr_decay": true,
  "lr_scheduler": "cosinewarmupscheduler",
  "n_warmup_steps": 4000,
  "lr_mul": 1,

  "use_early_stop": true,
  "patience": 15,

  "clip_grad_norm": true,
  "max_grad_norm": 5,

  "dropout": 0.0,
  "prob_mul": false,
  "input_dim": 2,
  "hidden_size": 32,
  "layers": 3,
  "is_quantile": true,
  "quantile": 0.7
}

任务执行结果

模型评价指标对比如下