Skip to content
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

Bug on custom dataset #98

Open
qingyuanxingsi opened this issue Aug 6, 2024 · 1 comment
Open

Bug on custom dataset #98

qingyuanxingsi opened this issue Aug 6, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@qingyuanxingsi
Copy link

qingyuanxingsi commented Aug 6, 2024

Describe the bug
A clear and concise description of what the bug is.
I construct a dataset with size 50000*6(feat_dim)*48(context length), finetune meeting the following error:
To Reproduce
Please provide a code snippet of a minimal reproducible example for the error.

/root/miniconda3/envs/llm_ts/bin/python3 -m cli.train -cp conf/finetune run_name=demo_run model=moirai_1.0_R_small data=feed_train val_data=feed_eval

Expected behavior
A clear and concise description of what you expected to happen.

Error message or code output
Paste the complete error message, including stack trace, or the undesired output that the above snippet produces.

AssertionError: no valid patch size candidates for time series shape: (6, 48), freq: H, patch_sizes: [8, 16, 32, 64, 128], constraints: range(32, 33), min_time_patches: 2, patch_size_ceil: 24

Environment

  • Operating system:
  • Python version:
  • PyTorch version:
  • uni2ts version (have you pulled the latest version?)
@qingyuanxingsi qingyuanxingsi added the bug Something isn't working label Aug 6, 2024
@chenghaoliu89
Copy link
Contributor

The length of each training sample is required to be longer than min_time_patches (2). Here the patch size range is (32, 33), which indicates the training sample should be longer than 64. Your data (48 length) does not satisfy this constraints.

One quick fix is to modify the DEFAULT_RANGES in patch.py to "H": (1, 64),

@chenghaoliu89 chenghaoliu89 self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants