Coder Social home page Coder Social logo

Comments (3)

mqwfrog avatar mqwfrog commented on July 28, 2024

Actually, both conv2D (https://github.com/cauchyturing/UCR_Time_Series_Classification_Deep_Learning_Baseline/blob/master/ResNet.py) and conv1D (https://github.com/hfawaz/dl-4-tsc/blob/master/classifiers/resnet.py) are adopted in time series modeling. As most of implementations of ResNet use conv2D for their implementation (which makes sense for images), we simply adopt the standard ResNet which uses conv2D as the backbone in our implementation. In this case, we treat each whole time series as a line of a two-dimensional image so that all time series together form a stream of 2D images. But if you focus on timestamp-level representations, we recommend you to refer to the paper: "Time Series Classification from Scratch with Deep Neural Networks: A Strong Baseline" to find the ResNet implementation specially adjusted for time series.

from mhccl.

blacksnail789521 avatar blacksnail789521 commented on July 28, 2024

I'm sorry, but the paper clearly states that they use 1-D kernels.
To see the SOTA method implementations, you can check tsai.
They consistently choose to use conv1d instead of conv2d.
Thanks for your time.

from mhccl.

mqwfrog avatar mqwfrog commented on July 28, 2024

Thanks for your advice.
What we want to emphasize is that it is not strictly defined to use 1D or 2D convolutions when modeling time series. In existing studies, it is more common to use conv1D in natural convolutional models for processing time series because of its better interpretability when "time" is the only dimension. But it can be 2D or more if you can find other axes that a convolution makes sense. 
There are two distinct cases for using 2D convolution when working with time series: 1) processing multiple time series, 2) processing several consecutive intervals of a single time series. If you use the video stream data and want to apply the convolution filter, you can even use a 3D convolution. 
Hope this helps. Thanks.

from mhccl.

Related Issues (7)

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.