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

Do you have any script to plot predicted results over input data for forecasting task? Thanks #11

Closed
Thanh-Binh opened this issue Dec 29, 2021 · 5 comments

Comments

@Thanh-Binh
Copy link

No description provided.

@zhihanyue
Copy link
Owner

No. The output file is at training/DatasetName__RunName_Date_Time/out.pkl. You can easily load this file with pickle and plot the output.

@Thanh-Binh
Copy link
Author

Thanks
What is the format of data?
After loading my data has the length of 5
What does it mean? Number of prediction time steps?

@zhihanyue
Copy link
Owner

Thanks
What is the format of data?
After loading my data has the length of 5
What does it mean? Number of prediction time steps?

It means the prediction horizon (e.g. 24,48,168,336,720). Check the code in /tasks/forecasting.py for more details.

        out_log[pred_len] = {
            'norm': test_pred,
            'raw': test_pred_inv,
            'norm_gt': test_labels,
            'raw_gt': test_labels_inv
        }

@Thanh-Binh
Copy link
Author

I have just look at your source code.
After training I want to use the trained model, e.g. for prediction of time series x0,x1, x2, ... xN by prediction horizon of 10.
How can I call it in the loop?
pseudo-code look like:
for i = 1: N
currentData = x[i]
// get prediction data xpred at (i + prediction_horizon)
end

Thanks

@ayesha1093
Copy link

Hi,
Can you share the code if you were able to figure it out?

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

3 participants