Possible bug, function does not work as intended
I am calling the function detach_from_suite to remove a task (211981) from a benchmark suite (240) that was created by me. The server returns a status code of 200, however, the task is not removed from the benchmark suite and the size of the benchmark suite stays the same.
I used the REST API at the website and I got the same results and status code. The size of the benchmark suite does not seem to change. Not sure if I am doing something wrong, or there is a problem with the function. Probably this is not the right place for the issue, as it seems to be server sided, however, I am posting it here initially as it happened while using the connector.
https://github.com/openml/openml-python/blob/249abc901c34bc87c4b283e42e754308a5a2d629/openml/study/functions.py#L380
Code:
import openml
suite_id = 240
task_id = 211981
new_suite_size = openml.study.functions.detach_from_suite(suite_id, [task_id])
print(new_suite_size)
I used the REST API at the website and I got the same results and status code.
Isn't it a bug on the server side then?
Two observations:
- task 211981 is not part of study 240 (despite the frontend showing that it is)
- therefore, it was removed correctly
I presume this is an elastic search error.
One could ask the question why does the server not return an error if a task that is not part of the study needs to be removed. That however, would be a different issue.
I just transferred this issue as it is not an OpenML-Python issue.