Skip to content

Confusing run_flow_on_task #451

@joaquinvanschoren

Description

@joaquinvanschoren

I've seen several people make the same error when using OpenML. They do

run_flow_on_task(flow, task)

instead of

run_flow_on_task(task, flow)

I can see how this is confusing to beginners. Would it make sense to rename the method? Or at least add more info to the error message? Right now it returns with

AttributeError: 'OpenMLTask' object has no attribute 'model'

This makes sense, but could we also add something like 'Please check whether you entered the task and flow objects in the right order'?

Metadata

Metadata

Assignees

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