-
Notifications
You must be signed in to change notification settings - Fork 21
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
Caluclation error in gpytorch #3
Comments
When I checked the calculation process, it seems like
and the output was the following.
where its precise result must be
|
sorry for the delayed response you're correct this is a numerical precision issue, though I'm surprised you're having problems, I've run this code many times and never seen this specific error. If you're sure this run wasn't a fluke you have a couple options
|
Thank you for the response! |
glad to hear it! closing the issue. |
@kkyamada Hello! May I ask what specific modifications you have made to the code to solve the numerical issues? I tried a bunch of ways to change the input of GP heads from torch.float to torch.double (e.g. in the gp_train_step function of gp_utils.py), but changing the tensor type would result in further errors in the gpytorch package (the message is "RuntimeError: expected scalar type Float but found Double"). How did you avoid this kind of type inconsistency? Thanks a lot in advance! |
Thank you for your response! It's so nice of you to modify the code and that really helps! Changing |
That's great! |
Hello!
I tried to run the model-based genetic baseline by following your sample command.
python scripts/black_box_opt.py optimizer=mb_genetic optimizer/algorithm=soga optimizer.encoder_obj=mll task=regex tokenizer=protein surrogate=multi_task_exact_gp acquisition=nehvi
However, it caused the following error.
It seems like the code fails to calculate an appropriate correlation matrix in
gpytorch.priors.lkj_prior.LKJCovariancePrior.log_prob
. Do you have any ideas why it happens?Thanks!
The text was updated successfully, but these errors were encountered: