Code Monkey home page Code Monkey logo

Comments (8)

zhishiouo avatar zhishiouo commented on June 21, 2024

Is there a requirement for input and output step size?

from basicts.

zezhishao avatar zezhishao commented on June 21, 2024

Is there a requirement for input and output step size?

Yes, here are the steps:

  • Generate samples: python scripts/data_preparation/${DATASET_NAME}/generate_training_data.py --history_seq_len 12 future_seq_len 1
  • Change the CFG.DATASET_OUTPUT_LEN and CFG.DATASET_INPUT_LEN in the config files.
  • Change training parameters (optional). For example, for single step forecasting, the curriculum learning is no longer useful, and you can just delete the CFG.TRAIN.CL dict.
  • Change the model parameters (optional) The parameters of the model need to read its original paper to determine how to modify it.

from basicts.

zhishiouo avatar zhishiouo commented on June 21, 2024

Modified by the above method, but the prediction accuracy is not ideal.Not even as good as multi-step prediction.

from basicts.

zhishiouo avatar zhishiouo commented on June 21, 2024

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

from basicts.

zezhishao avatar zezhishao commented on June 21, 2024

And just delete the dict.CFG.TRAIN.CL, but an error occurred in the program.

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]

from basicts.

zezhishao avatar zezhishao commented on June 21, 2024

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.

from basicts.

zhishiouo avatar zhishiouo commented on June 21, 2024

thanks

from basicts.

zhishiouo avatar zhishiouo commented on June 21, 2024

I want to ask you the reason that the acc of single-step prediction is not necessarily better than the acc of multi-step prediction at Horizon 1. And Why the acc of multi-step prediction at Horizon 1 does not decline with iteration.
image
image

from basicts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.