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

Hello! Asking about Inference. #23

Open
Zero-coder opened this issue May 25, 2024 · 3 comments
Open

Hello! Asking about Inference. #23

Zero-coder opened this issue May 25, 2024 · 3 comments

Comments

@Zero-coder
Copy link

Thanks for innovating such a splendid work!I am enjoying watching your paper and code.
My question is:
After training and saving the model, how can I inference ?

@nooshinmaghsoodi
Copy link

Hi,
In one of the scripts in scripts folder (based on the task you want to do) set ckpt_path to address of the model you have saved and is_training to zero.

@tribeband
Copy link

I am also wondering the inference on the anomaly detection tast. it is shown that the train data is being calculated during test.
combined_energy = np.concatenate([train_energy, test_energy], axis=0)
threshold = np.percentile(
combined_energy, 100 - self.args.anomaly_ratio)
print("Threshold :", threshold)

with this implemention, when dealing with the new data, train data should be calculated first?
how about deployment and predict?

@wbzhang233
Copy link

Hi, In one of the scripts in scripts folder (based on the task you want to do) set ckpt_path to address of the model you have saved and is_training to zero.

Thanks for your generous reply! I wonder how can I use UniTS model for forecasting, but I cannot find any instruction about this issue. There is no reference for user.

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

4 participants