forked from SalesforceAIResearch/uni2ts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change val data distance. Add scripts to new finetune.
- Loading branch information
Showing
39 changed files
with
773 additions
and
234 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
_target_: uni2ts.data.builder.simple.SimpleDatasetBuilder | ||
_target_: uni2ts.data.builder.simple.generate_finetune_builder | ||
dataset: electricity | ||
train_length: 18412 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
#_target_: uni2ts.data.builder.simple.SimpleDatasetBuilder | ||
#dataset: ETTh1 | ||
#weight: 1000 | ||
|
||
_target_: uni2ts.data.builder.simple.generate_finetune_builder | ||
dataset: ETTh1 | ||
train_length: 8640 | ||
prediction_length: 96 | ||
context_length: 3000 | ||
patch_size: 64 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
_target_: uni2ts.data.builder.simple.SimpleDatasetBuilder | ||
_target_: uni2ts.data.builder.simple.generate_finetune_builder | ||
dataset: ETTh2 | ||
train_length: 8640 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
_target_: uni2ts.data.builder.simple.SimpleDatasetBuilder | ||
_target_: uni2ts.data.builder.simple.generate_finetune_builder | ||
dataset: ETTm1 | ||
train_length: 34560 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
_target_: uni2ts.data.builder.simple.SimpleDatasetBuilder | ||
_target_: uni2ts.data.builder.simple.generate_finetune_builder | ||
dataset: ETTm2 | ||
train_length: 34560 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
_target_: uni2ts.data.builder.simple.SimpleDatasetBuilder | ||
_target_: uni2ts.data.builder.simple.generate_finetune_builder | ||
dataset: weather | ||
train_length: 36887 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
_target_: uni2ts.data.builder.ConcatDatasetBuilder | ||
_args_: | ||
_target_: uni2ts.data.builder.simple.generate_eval_builders | ||
dataset: electricity_eval | ||
offset: 18412 # Same as _lsf_dataset.py | ||
eval_length: 2630 # Same as _lsf_dataset.py, test_length=5260 | ||
prediction_lengths: ??? | ||
context_lengths: ??? | ||
patch_sizes: ??? | ||
|
||
# prediction_lengths: [96, 192, 336, 720] | ||
# context_lengths: [3000] | ||
# patch_sizes: [32, 64] # freq='h' | ||
_target_: uni2ts.data.builder.simple.generate_eval_builder | ||
dataset: electricity_eval | ||
offset: 18412 # Same as _lsf_dataset.py | ||
eval_length: 2630 # Same as _lsf_dataset.py, test_length=5260 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
_target_: uni2ts.data.builder.ConcatDatasetBuilder | ||
_args_: | ||
_target_: uni2ts.data.builder.simple.generate_eval_builders | ||
dataset: ETTh1_eval | ||
offset: 8640 | ||
eval_length: 2880 | ||
prediction_lengths: [96, 192, 336, 720] | ||
context_lengths: [1000, 2000, 3000, 4000, 5000] | ||
patch_sizes: [32, 64] | ||
_target_: uni2ts.data.builder.simple.generate_eval_builder | ||
dataset: ETTh1_eval | ||
offset: 8640 | ||
eval_length: 2880 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,7 @@ | ||
_target_: uni2ts.data.builder.ConcatDatasetBuilder | ||
_args_: | ||
_target_: uni2ts.data.builder.simple.generate_eval_builders | ||
dataset: ETTh2_eval | ||
offset: 8640 # Same as _lsf_dataset.py | ||
eval_length: 2880 # Same as _lsf_dataset.py | ||
prediction_lengths: ??? | ||
context_lengths: ??? | ||
patch_sizes: ??? | ||
|
||
# prediction_lengths: [ 96, 192, 336, 720 ] | ||
# context_lengths: [ 3000 ] | ||
# patch_sizes: [ 32, 64 ] | ||
_target_: uni2ts.data.builder.simple.generate_eval_builder | ||
dataset: ETTh2_eval | ||
offset: 8640 # Same as _lsf_dataset.py | ||
eval_length: 2880 # Same as _lsf_dataset.py | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
_target_: uni2ts.data.builder.ConcatDatasetBuilder | ||
_args_: | ||
_target_: uni2ts.data.builder.simple.generate_eval_builders | ||
dataset: ETTm1_eval | ||
offset: 34560 # Same as _lsf_dataset.py | ||
eval_length: 11520 # Same as _lsf_dataset.py | ||
prediction_lengths: ??? | ||
context_lengths: ??? | ||
patch_sizes: ??? | ||
|
||
|
||
# prediction_lengths: [96, 192, 336, 720] | ||
# context_lengths: [ 3000 ] | ||
# patch_sizes: [ 32, 64, 128 ] # freq="15T" | ||
_target_: uni2ts.data.builder.simple.generate_eval_builder | ||
dataset: ETTm1_eval | ||
offset: 34560 # Same as _lsf_dataset.py | ||
eval_length: 11520 # Same as _lsf_dataset.py | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,7 @@ | ||
_target_: uni2ts.data.builder.ConcatDatasetBuilder | ||
_args_: | ||
_target_: uni2ts.data.builder.simple.generate_eval_builders | ||
dataset: ETTm2_eval | ||
offset: 34560 # Same as _lsf_dataset.py | ||
eval_length: 11520 # Same as _lsf_dataset.py | ||
prediction_lengths: ??? | ||
context_lengths: ??? | ||
patch_sizes: ??? | ||
|
||
|
||
# prediction_lengths: [96, 192, 336, 720] | ||
# context_lengths: [3000] | ||
# patch_sizes: [32, 64, 128] # "freq=15T" | ||
_target_: uni2ts.data.builder.simple.generate_eval_builder | ||
dataset: ETTm2_eval | ||
offset: 34560 # Same as _lsf_dataset.py | ||
eval_length: 11520 # Same as _lsf_dataset.py | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,7 @@ | ||
_target_: uni2ts.data.builder.ConcatDatasetBuilder | ||
_args_: | ||
_target_: uni2ts.data.builder.simple.generate_eval_builders | ||
dataset: weather_eval | ||
offset: 36887 # Same as _lsf_dataset.py | ||
eval_length: 5269 # Same as _lsf_dataset.py; test_length=10539 | ||
prediction_lengths: ??? | ||
context_lengths: ??? | ||
patch_sizes: ??? | ||
_target_: uni2ts.data.builder.simple.generate_eval_builder | ||
dataset: weather_eval | ||
offset: 36887 # Same as _lsf_dataset.py | ||
eval_length: 5269 # Same as _lsf_dataset.py; test_length=10539 | ||
prediction_length: ??? | ||
context_length: ??? | ||
patch_size: ??? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
#!/bin/bash | ||
|
||
bash project/multi_scale_fintune/eval/small/etth1.sh | ||
bash project/multi_scale_fintune/eval/small/etth2.sh | ||
bash project/multi_scale_fintune/eval/small/ettm1.sh | ||
bash project/multi_scale_fintune/eval/small/ettm2.sh | ||
bash project/multi_scale_fintune/eval/small/weather.sh | ||
bash project/multi_scale_finetune/eval/small/etth1.sh | ||
bash project/multi_scale_finetune/eval/small/etth2.sh | ||
bash project/multi_scale_finetune/eval/small/ettm1.sh | ||
bash project/multi_scale_finetune/eval/small/ettm2.sh | ||
bash project/multi_scale_finetune/eval/small/weather.sh | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
#!/bin/bash | ||
|
||
export HYDRA_FULL_ERROR=1 | ||
export CUDA_VISIBLE_DEVICES=0 | ||
|
||
mode=S | ||
cp=conf/new_eval | ||
exp_name=lsf_finetune | ||
cl=3000 | ||
model=moirai_lightning_ckpt | ||
|
||
|
||
cpp1='' | ||
cpp2='' | ||
cpp3='' | ||
cpp4='' | ||
index=1 | ||
for pl in 96 192 336 720; do | ||
case $index in | ||
1) cpp=$cpp1 ;; | ||
2) cpp=$cpp2 ;; | ||
3) cpp=$cpp3 ;; | ||
4) cpp=$cpp4 ;; | ||
esac | ||
|
||
pretrained_model=$(echo $cpp | cut -d'/' -f4) | ||
ft_pattern=$(echo $cpp | cut -d'/' -f6) | ||
|
||
python -m cli.eval \ | ||
-cp $cp \ | ||
exp_name=$exp_name/$pretrained_model/$ft_pattern \ | ||
model=$model \ | ||
model.patch_size=64 \ | ||
model.context_length=$cl \ | ||
model.checkpoint_path=$cpp \ | ||
model.pretrained_checkpoint_path=ckpt/$pretrained_model.ckpt \ | ||
data=lsf_test \ | ||
data.dataset_name=electricity \ | ||
data.mode=$mode \ | ||
data.prediction_length=$pl | ||
|
||
index=$((index+1)) | ||
done | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
#!/bin/bash | ||
|
||
export HYDRA_FULL_ERROR=1 | ||
export CUDA_VISIBLE_DEVICES=0 | ||
|
||
mode=S | ||
cp=conf/new_eval | ||
exp_name=lsf_finetune | ||
cl=3000 | ||
model=moirai_lightning_ckpt | ||
|
||
cpp1='./outputs/multi_scale_finetune/moirai_1.1_R_small/dev/full/etth1/cl3000_pl96/checkpoints/epoch_3-step_40.ckpt' | ||
cpp2='./outputs/multi_scale_finetune/moirai_1.1_R_small/lsf/full/etth1/cl3000_pl192/checkpoints/epoch_1-step_20.ckpt' | ||
cpp3='./outputs/multi_scale_finetune/moirai_1.1_R_small/lsf/full/etth1/cl3000_pl336/checkpoints/epoch_1-step_20.ckpt' | ||
cpp4='./outputs/multi_scale_finetune/moirai_1.1_R_small/lsf/full/etth1/cl3000_pl720/checkpoints/epoch_1-step_20.ckpt' | ||
|
||
index=1 | ||
for pl in 96 192 336 720; do | ||
case $index in | ||
1) cpp=$cpp1 ;; | ||
2) cpp=$cpp2 ;; | ||
3) cpp=$cpp3 ;; | ||
4) cpp=$cpp4 ;; | ||
esac | ||
|
||
pretrained_model=$(echo $cpp | cut -d'/' -f4) | ||
ft_pattern=$(echo $cpp | cut -d'/' -f6) | ||
|
||
python -m cli.eval \ | ||
-cp $cp \ | ||
exp_name=$exp_name/$pretrained_model/$ft_pattern \ | ||
model=$model \ | ||
model.patch_size=64 \ | ||
model.context_length=$cl \ | ||
model.checkpoint_path=$cpp \ | ||
model.pretrained_checkpoint_path=ckpt/$pretrained_model.ckpt \ | ||
data=lsf_test \ | ||
data.dataset_name=ETTh1 \ | ||
data.mode=$mode \ | ||
data.prediction_length=$pl | ||
|
||
index=$((index+1)) | ||
done |
Oops, something went wrong.