EducationalTestingService / skll

SciKit-Learn Laboratory (SKLL) makes it easy to run machine learning experiments.
http://skll.readthedocs.org
Other
550 stars 69 forks source link

Document use of tuples in `fixed_parameters` and `param_grids` #763

Closed desilinguist closed 5 months ago

desilinguist commented 5 months ago

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.