Skip to content

Task object #506

Description

@ArlindKadra

Description

The task object contains the information regarding estimation parameters twice. Doing a small refactor would remove the duplicate information.

Steps/Code to Reproduce

from pprint import pprint
import openml
task_id = 2
task = openml.tasks.get_task(task_id)
pprint(vars(task))

Result


{'class_labels': ['1', '2', '3', '4', '5', 'U'],
'cost_matrix': None,
'dataset_id': 1,
'estimation_parameters': {'number_folds': '2',
'number_repeats': '5',
'percentage': '',
'stratified_sampling': 'true'},
'estimation_procedure': {'data_splits_url': 'https://test.openml.org/api_splits/get/2/Task_2_splits.arff',
'parameters': {'number_folds': '2',
'number_repeats': '5',
'percentage': '',
'stratified_sampling': 'true'},
'type': 'crossvalidation'},
'evaluation_measure': None,
'split': None,
'target_name': 'class',
'task_id': 2,
'task_type': 'Supervised Classification',
'task_type_id': 1}

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