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

predict new test data #18

Open
help116114 opened this issue Dec 24, 2024 · 0 comments
Open

predict new test data #18

help116114 opened this issue Dec 24, 2024 · 0 comments

Comments

@help116114
Copy link

Dear author:
I want to follow and cite your study. There is only training forecasting model script, such as weather with TimeXer.sh. However, after trained the forecasting model, we need the model to generate new forecasting data. Therefore, can you update a new script for this function?
I have attempted to configure the istraining==0 to generate test data. The test script is following:
export CUDA_VISIBLE_DEVICES=3

model_name="TimeXer"
des="Timexer-MS"

修改以下参数以适应你的需求

python3 -u run.py
--task_name long_term_forecast
--is_training 0
--root_path ./dataset/weather/
--data_path weather.csv
--model_id weather_96_96
--model "$model_name"
--data custom
--features M
--seq_len 96
--label_len 48
--pred_len 96
--e_layers 1
--factor 3
--enc_in 21
--dec_in 21
--c_out 21
--des "$des"
--d_model 128
--itr 1
And the test data has three .npy format files: pred.npy, true.npy, metric.npy. Then, I use numpy to transform npy to csv format.
But, the new forecasting data is not similar to original data in weather.csv.
image

So, can you provide us an instance of forecast-new.sh? Thank you very much.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant