Skip to content

Task creation not supported? #294

Description

@joaquinvanschoren

I tried to create a task via the Python API like this:

task = oml.tasks.OpenMLTask(
task_type = 'Supervised Classification', data_set_id = 602,
target_name = 'class', estimation_procedure_type = 'crossvalidation', estimation_parameters = {'number_folds': '10',
'number_repeats': '1',
'percentage': '',
'stratified_sampling': 'true'})

But I'm getting:

TypeError: __init__() missing 5 required positional arguments: 'task_id', 'task_type_id', 'data_splits_url', 'evaluation_measure', and 'cost_matrix'

None of these make sense for creating a new simple task with cross-validation. Why are they require. Setting them to None also doesn't help, since 'task_id' needs to be a number.

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions