Skip to content

Commit 8d24766

Browse files
committed
Updated versions & qNIPV
1 parent 5832331 commit 8d24766

2 files changed

Lines changed: 3 additions & 41 deletions

File tree

ax/models/torch/utils.py

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def _filter_X_observed(
115115
objective_weights=objective_weights,
116116
outcome_constraints=outcome_constraints,
117117
)
118-
<<<<<<< Updated upstream
119118
if not fit_out_of_design:
120119
# Filter to those that satisfy constraints.
121120
X_obs = filter_constraints_and_fixed_features(
@@ -124,20 +123,6 @@ def _filter_X_observed(
124123
linear_constraints=linear_constraints,
125124
fixed_features=fixed_features,
126125
)
127-
=======
128-
# Filter to those that satisfy constraints.
129-
# Addded the rounding here to ensure that very small numbers (rounding errors)
130-
# caused by saving and loading does not run into issues with constraint evaluation
131-
132-
X_obs = filter_constraints_and_fixed_features(
133-
X=X_obs,
134-
bounds=bounds,
135-
linear_constraints=linear_constraints,
136-
fixed_features=fixed_features,
137-
legit_violation=1e-6,
138-
)
139-
140-
>>>>>>> Stashed changes
141126
if len(X_obs) > 0:
142127
return torch.as_tensor(X_obs) # please the linter
143128

ax/storage/botorch_modular_registry.py

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,7 @@
2323
LogNoisyExpectedImprovement,
2424
NoisyExpectedImprovement,
2525
)
26-
from botorch.acquisition.bayesian_active_learning import (
27-
qBayesianActiveLearningByDisagreement,
28-
qBayesianQueryByComittee,
29-
qStatisticalDistanceActiveLearning
30-
)
31-
from botorch.acquisition.diversity import (
32-
qDistanceWeightedImprovementOverThreshold,
33-
)
26+
3427
from botorch.acquisition.knowledge_gradient import (
3528
qKnowledgeGradient,
3629
qMultiFidelityKnowledgeGradient,
@@ -47,6 +40,7 @@
4740
qExpectedImprovement,
4841
qNoisyExpectedImprovement,
4942
)
43+
from botorch.acquisition.diversity import qDistanceWeightedImprovementOverThreshold
5044
from botorch.acquisition.multi_objective.logei import (
5145
qLogExpectedHypervolumeImprovement,
5246
qLogNoisyExpectedHypervolumeImprovement,
@@ -55,15 +49,10 @@
5549
qExpectedHypervolumeImprovement,
5650
qNoisyExpectedHypervolumeImprovement,
5751
)
58-
<<<<<<< Updated upstream
5952
from botorch.acquisition.multi_objective.parego import qLogNParEGO
6053
from botorch.acquisition.preference import AnalyticExpectedUtilityOfBestOption
61-
=======
62-
from botorch.acquisition.joint_entropy_search import qJointEntropySearch
63-
from botorch.acquisition.scorebo import qSelfCorrectingBayesianOptimization
64-
from botorch.acquisition.active_learning import qNegIntegratedPosteriorVariance
65-
>>>>>>> Stashed changes
6654
from botorch.models import SaasFullyBayesianSingleTaskGP
55+
from botorch.acquisition.active_learning import qNegIntegratedPosteriorVariance
6756
from botorch.models.contextual import LCEAGP
6857
from botorch.models.fully_bayesian import FullyBayesianLinearSingleTaskGP
6958
from botorch.models.fully_bayesian_multitask import SaasFullyBayesianMultiTaskGP
@@ -158,17 +147,8 @@
158147
qNegIntegratedPosteriorVariance: "qNegIntegratedPosteriorVariance",
159148
qLogExpectedHypervolumeImprovement: "qLogExpectedHypervolumeImprovement",
160149
qLogNoisyExpectedHypervolumeImprovement: "qLogNoisyExpectedHypervolumeImprovement",
161-
<<<<<<< Updated upstream
162150
qLogNParEGO: "qLogNParEGO",
163-
=======
164-
# info-theoretic acquisition functions
165151
qDistanceWeightedImprovementOverThreshold: "qDistanceWeightedImprovementOverThreshold",
166-
qJointEntropySearch: "qJointEntropySearch",
167-
qSelfCorrectingBayesianOptimization: "qSelfCorrectingBayesianOptimization",
168-
qBayesianActiveLearningByDisagreement: "qBayesianActiveLearningByDisagreement",
169-
qBayesianQueryByComittee: "qBayesianQueryByComittee",
170-
qStatisticalDistanceActiveLearning: "qStatisticalDistanceActiveLearning",
171-
>>>>>>> Stashed changes
172152
}
173153

174154

@@ -195,10 +175,7 @@
195175
Interval: "Interval",
196176
GammaPrior: "GammaPrior",
197177
LogNormalPrior: "LogNormalPrior",
198-
<<<<<<< Updated upstream
199178
SobolQMCNormalSampler: "SobolQMCNormalSampler",
200-
=======
201-
>>>>>>> Stashed changes
202179
}
203180

204181
"""

0 commit comments

Comments
 (0)