You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
First run of sklearn classifier crashes constantly #562
My guess: flow exists is called, and it returns null. Flow can be uploaded, but flow id is not fixed.
should be tested with a sentinel
Traceback (most recent call last):
File "/home/janvanrijn/projects/sklearn-bot/examples/run_on_study.py", line 53, in <module>
run()
File "/home/janvanrijn/projects/sklearn-bot/examples/run_on_study.py", line 45, in run
args.upload_result)
File "/home/janvanrijn/projects/sklearn-bot/sklearnbot/bot/run.py", line 69, in run_bot_on_task
run = openml.runs.run_model_on_task(task, classifier)
File "/home/janvanrijn/projects/openml-python/openml/runs/functions.py", line 48, in run_model_on_task
add_local_measures=add_local_measures)
File "/home/janvanrijn/projects/openml-python/openml/runs/functions.py", line 146, in run_flow_on_task
"same: '%s' vs '%s'" % (str(flow.flow_id), str(flow_id))
ValueError: Result from API call flow_exists and flow.flow_id are not same: '108950' vs 'False'
It is kind of hard to create a MWE, because it's hard to unit test. (while writing this, I found a nifty solution)
The current unit tests use the run_flow_on_task fn, which automatically uploads the flow, whereas the run_model_on_task potentially uploads the flow internally, triggering this problem.
Activity
mfeurer commentedon Oct 5, 2018
Could you please attach a minimal example to reproduce this?
janvanrijn commentedon Oct 5, 2018
It is kind of hard to create a MWE, because it's hard to unit test. (while writing this, I found a nifty solution)
The current unit tests use the
run_flow_on_taskfn, which automatically uploads the flow, whereas therun_model_on_taskpotentially uploads the flow internally, triggering this problem.[-]First run of flow crashes constantly[/-][+]First run of sklearn classifier crashes constantly[/+]PGijsbers commentedon Apr 15, 2019
The MWE does not produce an error for me. I think this got fixed in #516.