Skip to content

Commit 028f160

Browse files
committed
Boltzmann sampling function added in utils/sampling to remove duplicate
code, reshuffling of other sampling methods (that don't take an acqf)
1 parent 774dd9c commit 028f160

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

botorch/utils/sampling.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@
4141
from botorch.utils.transforms import normalize, unnormalize
4242
from scipy.spatial import Delaunay, HalfspaceIntersection
4343
from torch import LongTensor, Tensor
44+
<<<<<<< HEAD
4445
from torch.distributions import Normal
46+
=======
47+
from torch.distributions import Multinomial, Normal
48+
>>>>>>> Boltzmann sampling function added in utils/sampling to remove duplicate
4549
from torch.quasirandom import SobolEngine
4650

4751

test/optim/test_initializers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,12 @@
4141
sample_perturbed_subset_dims,
4242
sample_points_around_best,
4343
sample_q_batches_from_polytope,
44-
sample_truncated_normal_perturbations,
4544
transform_constraints,
4645
transform_inter_point_constraint,
4746
transform_intra_point_constraint,
4847
)
4948
from botorch.sampling.normal import IIDNormalSampler
50-
from botorch.utils.sampling import draw_sobol_samples, manual_seed, unnormalize
49+
from botorch.utils.sampling import manual_seed, unnormalize
5150
from botorch.utils.testing import (
5251
_get_max_violation_of_bounds,
5352
_get_max_violation_of_constraints,

0 commit comments

Comments
 (0)