Comment on page
Labelclass
This namespace represents label classes for training data, such as in object detection and structured data's category classification.
__init__(info, user)
- info (dict) : Information about the training data.
- user (class User) : User object for making the data connector.
- id : Stores the id from the 'info' parameter.
- labelproject : Stores the info of corresponding labeling project.
- url : Stores the url as a string for connecting APIs to DS2.ai desktop application.
- user : Stores the User object from the 'user' parameter.
- user_token : Stores the user's appcode as a token.
Returns self.id.
__repr__()
- None
Modifies the name and color of a label class and returns the modified Labelclass object.
modify(name=None, color=None)
- name (str) : Name of the label class.
- color (str) : Hex code of the color that represents the label class.
- None
Deletes the currenet Labelclass object.
delete()
- None
Last modified 1yr ago