feat: implement tagging for setups (#1648, #1647)
Metadata Reference Issue: Fixes #1648, Fixes #1647
New Tests Added: Yes
Documentation Updated: No
Change Log Entry: Make OpenMLSetup inherit OpenMLBase and implement tagging support for setups
Details What does this PR implement/fix?
This PR addresses two related issues:
#1647 — Makes OpenMLSetup inherit OpenMLBase, like every other OpenML resource. It implements the required abstract methods:
id
_get_repr_body_fields
_to_dict
_parse_publish_response
Since setups cannot be published directly (they are created as a side-effect of publishing runs), publish() now correctly raises NotImplementedError.
#1648 — Enables tagging for setups by adding OpenMLSetup to the _get_rest_api_type_alias mapping. The _tag_entity function already lists "setup" as a legal entity, so with the inheritance in place, setup.push_tag() and setup.remove_tag() now work out of the box.
Why is this change necessary?
The OpenML backend already supports tagging setups, but the Python SDK did not expose this functionality because OpenMLSetup did not inherit OpenMLBase. This PR brings OpenMLSetup in line with all other OpenML resource types.