Skip to content

Commit 9f733c2

Browse files
committed
Removes some TODO comments
1 parent 65c4e88 commit 9f733c2

File tree

1 file changed

+0
-4
lines changed
  • src/poli_baselines/solvers/bayesian_optimization/lambo2

1 file changed

+0
-4
lines changed

src/poli_baselines/solvers/bayesian_optimization/lambo2/solver.py

-4
Original file line numberDiff line numberDiff line change
@@ -278,8 +278,6 @@ def _train_model_with_history(
278278

279279
def get_candidate_points(self):
280280
if self.restrict_candidate_points_to is not None:
281-
# TODO: make sure the array is of self.cfg.num_samples size.
282-
# TODO: THey need to be in the "A A A A" format that lambo expects.
283281
# Let's assume that the user passes a wildtype as
284282
# np.array(["AAAAA"]) or np.array(["A", "A", "A", ...]).
285283
assert len(self.restrict_candidate_points_to.shape) == 1
@@ -316,8 +314,6 @@ def get_candidate_points_from_history(self) -> np.ndarray:
316314
sorted_y0_idxs = np.argsort(y.flatten())[::-1]
317315
candidate_points = x[sorted_y0_idxs[: min(len(x), 2 * self.cfg.num_samples)]]
318316
candidate_scores = y[sorted_y0_idxs[: min(len(x), 2 * self.cfg.num_samples)]]
319-
# candidate_points = x[sorted_y0_idxs[: max(len(x) // 2, self.cfg.num_samples)]]
320-
# candidate_scores = y[sorted_y0_idxs[: max(len(x) // 2, self.cfg.num_samples)]]
321317

322318
indices = farthest_first_traversal(
323319
library=candidate_points,

0 commit comments

Comments
 (0)