Skip to content

odd period_len and kernel size  #7

@BiAnHua9

Description

@BiAnHua9

In Sparse/models/SparseTSF.py, the kernel size of nn.Conv1d() is set to 1 + 2 * self.period_len // 2. As I try to use an odd period_len, It will raise error saying the shape of input x can not match itself after 1D convolution aggregation. I guess the kernel size should be set to 1 + self.period_len // 2 * 2 or 1 + 2 * (self.period_len // 2) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions