Skip to content
Merged
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
5 changes: 3 additions & 2 deletions openml/extensions/sklearn/extension.py
Original file line number Diff line number Diff line change
Expand Up @@ -1927,9 +1927,10 @@ def _obtain_arff_trace(
param_value is None or param_value is np.ma.masked:
# basic string values
type = 'STRING'
elif isinstance(param_value, list) and \
elif isinstance(param_value, (list, tuple)) and \
all(isinstance(i, int) for i in param_value):
# list of integers
# list of integers (usually for selecting features)
# hyperparameter layer_sizes of MLPClassifier
type = 'STRING'
else:
raise TypeError('Unsupported param type in param grid: %s' % key)
Expand Down