Skip to content

Commit 84728ae

Browse files
Balandatfacebook-github-bot
authored andcommitted
Call validate_inputs with kwargs in BaseTestProblem (#2834)
Summary: Pull Request resolved: #2834 good practice Reviewed By: dme65 Differential Revision: D73740482 fbshipit-source-id: 6b438c57188ee3b00c4c9d8791e8d79d9d8c1b9d
1 parent c3a67a7 commit 84728ae

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

botorch/test_functions/base.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,11 @@ def evaluate_true(self, X: Tensor) -> Tensor:
192192
A `batch_shape`-dim tensor.
193193
"""
194194
validate_inputs(
195-
X, self.dim, self.bounds, self.discrete_inds, self.categorical_inds
195+
X=X,
196+
dim=self.dim,
197+
bounds=self.bounds,
198+
discrete_inds=self.discrete_inds,
199+
categorical_inds=self.categorical_inds,
196200
)
197201
return self._evaluate_true(X=X)
198202

@@ -274,7 +278,11 @@ def evaluate_slack_true(self, X: Tensor) -> Tensor:
274278
corresponds to the constraint being feasible).
275279
"""
276280
validate_inputs(
277-
X, self.dim, self.bounds, self.discrete_inds, self.categorical_inds
281+
X=X,
282+
dim=self.dim,
283+
bounds=self.bounds,
284+
discrete_inds=self.discrete_inds,
285+
categorical_inds=self.categorical_inds,
278286
)
279287
return self._evaluate_slack_true(X=X)
280288

0 commit comments

Comments
 (0)