Skip to content

ds2ai.Opsmodel

class Opsmodel(object)

This namespace represents a mlops model in a project. Multiple Model objects can belong to a single project.

init()

__init__(info, user)
  • Parmeters:
    • info (str): Information about the current ops model corresponding to the object.
    • user (str): User for creating, modifying, deleting the ops model.
  • Fields:
    • id: The id from the 'info' parameter.
    • token: Model token.
    • url: DS2 API url information.
    • user: User information.
    • user_token: User token information.

repr()

Returns self.id

__repr__()
  • Return type:
    • Ops model id