Skip to content

Commit

Permalink
fix: use the time interval to calculate the TESTAM vocab szie parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
hczs committed Jun 24, 2024
1 parent 021225b commit 766c164
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions libcity/config/model/traffic_state_pred/TESTAM.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,5 @@
"hidden_size": 32,
"layers": 3,
"is_quantile": true,
"quantile": 0.7,
"vocab_size": 288
"quantile": 0.7
}
2 changes: 1 addition & 1 deletion libcity/model/traffic_speed_prediction/TESTAM.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def __init__(self, config, data_feature):
layers = config.get("layers", 3)
self.is_quantile = config.get("is_quantile", False)
self.quantile = config.get("quantile", 0.7)
self.vocab_size = config.get("vocab_size", 288)
self.vocab_size = 24 * 60 * 60 // config.get("time_intervals", 300)

self.dropout = dropout
self.prob_mul = prob_mul
Expand Down

0 comments on commit 766c164

Please sign in to comment.