Labelclass

class Labelclass(object)

This namespace represents label classes for training data, such as in object detection and structured data's category classification.

init()

__init__(info, user)

Parmeters

  • info (dict) : Information about the training data.

  • user (class User) : User object for making the data connector.

Fields

  • 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.

repr()

Returns self.id.

__repr__()

Return type

  • None

modify()

Modifies the name and color of a label class and returns the modified Labelclass object.

modify(name=None, color=None)

Parmeters

  • name (str) : Name of the label class.

  • color (str) : Hex code of the color that represents the label class.

Return type

  • None

delete()

Deletes the currenet Labelclass object.

delete()

Return type

  • None

Last updated