-
-
Notifications
You must be signed in to change notification settings - Fork 246
Closed
Labels
Description
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