GithubHelp home page GithubHelp logo

spatial sequence prediction about patchtst HOT 8 CLOSED

yuqinie98 avatar yuqinie98 commented on July 21, 2024 1
spatial sequence prediction

from patchtst.

Comments (8)

yuqinie98 avatar yuqinie98 commented on July 21, 2024

Hi @WANGYIZI , when you say 1d space, do you mean (feature_dim * 1), that is , the temporal dimension only has one step?

from patchtst.

WANGYIZI avatar WANGYIZI commented on July 21, 2024

I mean each 1D sample is divided into n segments,4 known initial features at certain time(maybe this is the one step you said) of these n segments are given.I want to know that after a long period of time,what the other 2 target features of these n segments will be.By the way,my prediction is end-to-end.It actually reflects a physical process in one dimensional space.

from patchtst.

WANGYIZI avatar WANGYIZI commented on July 21, 2024

maybe my prediction is about spatio-temporal series prediction.

from patchtst.

yuqinie98 avatar yuqinie98 commented on July 21, 2024

Sorry I am confused. When you say 1d sample, my understanding is that either you have only one feature, so the input shape will be (1, input length), or only one time stamp with the input shape (feature_dim, 1). But since you mentioned you divided it into n segment with 4 initial feature dimension, I got a little bit confused. Could you help to clarify the shape of your raw input, input after patch, and target? Thanks

from patchtst.

WANGYIZI avatar WANGYIZI commented on July 21, 2024

ok,clearly speaking,my raw input shape is(n,4),you know,n segments and 4 known initial physcial features of the n segments.The target(output) shape i hope to get is (n,2).Given 4 known initial features,I want to know, after a long period of physical process, what the other 2 target features will be.I have tried LSTM to do my task as a time series sequence prediction, but it actually is not time series sequence.So i'd like to know if your model can be competent for my task.My prediction is end_to_end.

from patchtst.

yuqinie98 avatar yuqinie98 commented on July 21, 2024

I see. So Transformer model is proposed to learn the attention between elements in a sequence, and in your case, it learns the relationship between all (1,4) vectors (key and query) to generate an attention map n*n. And you can then use this attention map with the value to generate an output with the shape (n,2). I would suggest you first considering the original Transformer model. Our PatchTST model is very similar just with 2 differences in patching and channel-independence.

from patchtst.

WANGYIZI avatar WANGYIZI commented on July 21, 2024

oh,that is a lot.Thanks.

from patchtst.

yuqinie98 avatar yuqinie98 commented on July 21, 2024

No problem!

from patchtst.

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.