Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ax/generation_strategy/tests/test_generation_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -1873,6 +1873,7 @@ def test_node_gs_with_auto_transitions_three_phase(self) -> None:
self.assertEqual(trial.generator_runs[2]._generation_node_name, "sobol_3")

# after running the next trial should be made from sobol 4
# pyrefly: ignore [unbound-name]
trial.run()
trial = exp.new_batch_trial(generator_runs=gs_2.gen(exp)[0])
self.assertEqual(trial.generator_runs[0]._generation_node_name, "sobol_4")
Expand Down
1 change: 1 addition & 0 deletions ax/generators/torch/botorch_modular/acquisition.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ def select_from_candidate_set(
# Otherwise, use direct selection mode.
num_samples_attr = getattr(sampling_strategy, "num_samples", None)
num_samples: int | None = (
# pyrefly: ignore [bad-argument-type]
int(num_samples_attr) if num_samples_attr is not None else None
)

Expand Down
4 changes: 2 additions & 2 deletions ax/utils/measurement/synthetic_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ class Branin(SyntheticFunction):

_required_dimensionality = 2
_domain: list[tuple[float, float]] = [(-5.0, 10.0), (0.0, 15.0)]
# pyrefly: ignore [bad-override-mutable-attribute]
# pyrefly: ignore [bad-override, bad-override-mutable-attribute]
_minimums: list[tuple[float, float]] = [
(-np.pi, 12.275),
(np.pi, 2.275),
Expand All @@ -285,7 +285,7 @@ class Aug_Branin(SyntheticFunction):

_required_dimensionality = 3
_domain: list[tuple[float, float]] = [(-5.0, 10.0), (0.0, 15.0), (0.0, 1.0)]
# pyrefly: ignore [bad-override-mutable-attribute]
# pyrefly: ignore [bad-override, bad-override-mutable-attribute]
_minimums: list[tuple[float, float, float]] = [
(-np.pi, 12.275, 1.0),
(np.pi, 2.275, 1.0),
Expand Down
Loading