Skip to content
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