-
Notifications
You must be signed in to change notification settings - Fork 267
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
How to make predictions deterministic? #18
Comments
@abdulmeral since the models are based on PyTorch, you can refer to PyTorch documentation about reproducibility. In particular, setting the random number generation seed with import torch
torch.manual_seed(0) # or some other number before doing predictions, should make the behavior deterministic. Another option to stabilize predictions (at least the "central tendencies" like mean and median) is to increase the number of samples by passing in |
@lostella I think it maybe better to use |
thank you very much guys. both ideas are working. |
@abdulmeral glad that it helped. On another note, you should probably stop using MAPE because it's not a good metric. Checkout something like MASE, if you're working with point forecasts. |
TIL |
Hi, |
Hello everyone,
how to prevent it from changing new predictions after each training?
Of course it is a LLM, but it is problem that changing every time. for example; my mape value is changing rapidly, bad or better..
have any recommend?
thank you already now.
abdül
The text was updated successfully, but these errors were encountered: