Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Task creation not supported? #294

Copy link
Copy link
@joaquinvanschoren

Description

@joaquinvanschoren
Issue body actions

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?

Reactions are currently unavailable

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.