Skip to content
Snippets Groups Projects
Commit 361dc375 authored by Alex Rubinsteyn's avatar Alex Rubinsteyn
Browse files

don't rely on Params.__dict__

parent b42fbf1d
No related branches found
No related tags found
No related merge requests found
......@@ -12,8 +12,9 @@ def test_all_combinations_of_hyperparameters():
results = list(all_combinations_of_hyperparameters(**combinations_dict))
eq_(len(results), 4)
for params in results:
for name, default_value in default_hyperparameters.__dict__.items():
curr_value = params.__dict__[name]
for name in default_hyperparameters._fields:
default_value = getattr(default_hyperparameters, name)
curr_value = getattr(params, name)
if name not in combinations_dict:
eq_(curr_value, default_value)
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment