Skip to content

Commit 34a86a1

Browse files
committed
incorporated changes requested by #mfeurer
1 parent 8427b1a commit 34a86a1

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

openml/utils.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ def extract_xml_tags(xml_tag_name, node, allow_none=True):
4545

4646

4747
def _tag_entity(entity_type, entity_id, tag, untag=False):
48-
"""Abstract function that can be used as a partial for tagging entities
49-
on OpenML
48+
"""Function that tags or untags a given entity on OpenML. As the OpenML
49+
API tag functions all consist of the same format, this function covers
50+
all entity types (currently: dataset, task, flow, setup, run). Could
51+
be used in a partial to provide dataset_tag, dataset_untag, etc.
5052
5153
Parameters
5254
----------
@@ -65,7 +67,7 @@ def _tag_entity(entity_type, entity_id, tag, untag=False):
6567
Returns
6668
-------
6769
tags : list
68-
List of tags that the entity is still tagged with
70+
List of tags that the entity is (still) tagged with
6971
"""
7072
legal_entities = {'data', 'task', 'flow', 'setup', 'run'}
7173
if entity_type not in legal_entities:

0 commit comments

Comments
 (0)