Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing flaky test #256

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion tests/ampligraph/evaluation/test_protocol.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,7 +1079,7 @@ def test_select_best_model_ranking_random():
assert best_params['k'] in (2, 50)
assert np.log(1.00001) <= best_params['optimizer_params']['lr'] <= np.log(100)
assert len(experimental_history) == 10
assert set(i["model_params"]["k"] for i in experimental_history) == {2, 50}
assert all(i["model_params"]["k"] in [2, 50] for i in experimental_history)
assert np.all([np.log(1.00001) <= i["model_params"]["optimizer_params"]["lr"] <= np.log(100)
for i in experimental_history])
assert len(set(frozenset(_flatten_nested_keys(i["model_params"]).items()) for i in experimental_history)) == 10
Expand Down