Skip to content

ds2ai.Label

class Label(object)

This namespace represents labels for training data

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.
    • url: stores the url as a string for connecting APIs to DS2.ai's 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:
    • str

delete()

Deletes a data connector that has corresponding id and token.

delete()
  • Return type:
    • None