Skip to content

Commit 538666e

Browse files
committed
remove tagging for OpenMLSetup
1 parent 79c8e02 commit 538666e

1 file changed

Lines changed: 0 additions & 34 deletions

File tree

openml/setups/setup.py

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -66,40 +66,6 @@ def __repr__(self) -> str:
6666
body = "\n".join(field_line_format.format(name, value) for name, value in _fields)
6767
return header + body
6868

69-
def push_tag(self, tag: str) -> None:
70-
"""
71-
Annotate this setup with a tag on the OpenML server.
72-
73-
Parameters
74-
----------
75-
tag : str
76-
Tag to attach to the setup.
77-
"""
78-
if self.setup_id is None:
79-
raise openml.exceptions.PyOpenMLError(
80-
"Cannot tag a setup that has not been published yet. "
81-
"Please publish the setup first before being able to tag it."
82-
f"\n{self}"
83-
)
84-
85-
openml._backend.setup.tag(resource_id=self.setup_id, tag=tag)
86-
87-
def remove_tag(self, tag: str) -> None:
88-
"""
89-
Remove a tag from this setup on the OpenML server.
90-
91-
Parameters
92-
----------
93-
tag : str
94-
Tag to remove from the setup.
95-
"""
96-
if self.setup_id is None:
97-
raise openml.exceptions.PyOpenMLError(
98-
f"Cannot untag a setup that has not been published yet. \n{self}"
99-
)
100-
101-
openml._backend.setup.untag(resource_id=self.setup_id, tag=tag)
102-
10369

10470
@dataclass
10571
class OpenMLParameter:

0 commit comments

Comments
 (0)