It turns out that specifying tuples in either fixed_parameters or param_grids does not work with yaml.load() as yaml doesn't natively parse tuples.
For example, specifying: fixed_parameters = [{"hidden_layer_sizes": (28, 28)}] in the config file gets parsed as: [{'hidden_layer_sizes': '(28', '28)': None}] which is incorrect and leads to errors inside scikit-learn.
Changing it to a list instead of a tuple works correctly all the way through. We should update the documentation to add this important note.
It turns out that specifying tuples in either
fixed_parameters
orparam_grids
does not work withyaml.load()
as yaml doesn't natively parse tuples.For example, specifying:
fixed_parameters = [{"hidden_layer_sizes": (28, 28)}]
in the config file gets parsed as:[{'hidden_layer_sizes': '(28', '28)': None}]
which is incorrect and leads to errors inside scikit-learn.Changing it to a list instead of a tuple works correctly all the way through. We should update the documentation to add this important note.