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

Objective function mode fix #8

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions SOBER/_gp.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import torch
import warnings
import gpytorch
from botorch.fit import fit_gpytorch_model
from botorch.fit import fit_gpytorch_mll
from gpytorch.priors.torch_priors import GammaPrior


Expand Down Expand Up @@ -172,7 +172,7 @@ def train_GP(model, training_iter=50, thresh=0.01, lr=0.1, optimiser="BoTorch"):
mll = gpytorch.mlls.ExactMarginalLogLikelihood(model.likelihood, model)
try:
if optimiser == "BoTorch":
mll = fit_gpytorch_model(mll)
mll = fit_gpytorch_mll(mll)
elif optimiser == "L-BFGS-B":
mll = train_GP_with_BFGS(mll, training_iter, thresh)

Expand Down
Loading