Skip to content

supported types in runs/function.py, tuple as supported type missing #373

@bstrang

Description

@bstrang

model dependent attributes for trace arff

for key in model.cv_results_:
    if key.startswith('param_'):
        # supported types should include all types, including bool, int float
        supported_types = (bool, int, float, six.string_types)
        if all(isinstance(i, supported_types) or i is None for i in model.cv_results_[key]):
            type = 'STRING'
        else:
            raise TypeError('Unsupported param type in param grid')

        # we renamed the attribute param to parameter, as this is a required
        # OpenML convention
        attribute = ("parameter_" + key[6:], type)
        trace_attributes.append(attribute)
return trace_attributes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions