Skip to content

Commit b62e707

Browse files
committed
removed relative path in import
1 parent 4058676 commit b62e707

File tree

4 files changed

+4
-9
lines changed

4 files changed

+4
-9
lines changed

algorithms/bo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from botorch.models.transforms.outcome import Standardize
1717
from botorch.generation import MaxPosteriorSampling
1818

19-
from .utils import latin_hypercube
19+
from utils import latin_hypercube
2020

2121
class BO:
2222

algorithms/ibnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from botorch.generation import MaxPosteriorSampling
2323
from botorch.sampling.stochastic_samplers import StochasticSampler
2424

25-
from .utils import latin_hypercube
25+
from utils import latin_hypercube
2626

2727
warnings.filterwarnings('ignore')
2828

algorithms/snbo.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import torch
44
import numpy as np
55
from time import time
6-
from .utils import latin_hypercube
6+
from utils import latin_hypercube
77

88
class SNBO:
99

@@ -353,13 +353,8 @@ def train(model, xtrain, ytrain, epochs, lr, tol=1e-2):
353353
loss = loss_fn(ypred, ytrain)
354354

355355
if torch.sqrt(loss) / ptp(ytrain, 0) < tol:
356-
print("Epoch {}, Training loss: {}".format(epoch+1, loss.item()))
357356
break
358357

359-
# Print the loss
360-
if (epoch+1) % 1000 == 0:
361-
print('Epoch: ', epoch, 'Loss: ', loss.item())
362-
363358
# Backward pass
364359
loss.backward()
365360

algorithms/turbo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
from copy import deepcopy
88
from time import time
9-
from .utils import latin_hypercube
9+
from utils import latin_hypercube
1010

1111
from gpytorch.models import ExactGP
1212
from gpytorch.means import ConstantMean

0 commit comments

Comments
 (0)