-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to implement single-step forecasting in DGCRN? #61
Comments
Is there a requirement for input and output step size? |
Yes, here are the steps:
|
Modified by the above method, but the prediction accuracy is not ideal.Not even as good as multi-step prediction. |
And just delete the dict.CFG.TRAIN.CL, but an error occurred in the program.I modify CFG.TRAIN.CL.PREDICTION_LENGTH = 1,It can run, but with poor accuracy |
The reason is that the DGCRN model requires the implementation of CL (for details, please refer to its paper). Please use the following configuration: ...
CFG.DATASET_INPUT_LEN = 12
CFG.DATASET_OUTPUT_LEN = 1 # *** change the DATASET_OUTPUT_LEN from 12 to 1 ***
CFG.MODEL.PARAM = {
"gcn_depth": 2,
"num_nodes": 207,
"predefined_A": [torch.Tensor(_) for _ in adj_mx],
"dropout": 0.3,
"subgraph_size": 20,
"node_dim": 40,
"middle_dim": 2,
"seq_length": 1, # *** change the seq_length from 12 to 1 ***
"in_dim": 2,
"list_weight": [0.05, 0.95, 0.95],
"tanhalpha": 3,
"cl_decay_steps": 4000,
"rnn_size": 64,
"hyperGNN_dim": 16
}
...
## curriculum learning
CFG.TRAIN.CL = EasyDict()
CFG.TRAIN.CL.WARM_EPOCHS = 0
CFG.TRAIN.CL.CL_EPOCHS = 1
CFG.TRAIN.CL.PREDICTION_LENGTH = 1
...
# ***add the evaluation horizon configs***
CFG.EVAL = EasyDict()
CFG.EVAL.HORIZONS = [1] |
By the way, kindly note that the acc of single-step prediction is not necessarily better than the acc of multi-step prediction at Horizon 1. |
thanks |
Why is my single-step prediction accuracy low?
The text was updated successfully, but these errors were encountered: