class_docstr: Base class for task parameters.
  
  Inherit this class to create a parameter set to connect to a task.
  
  Usage Example:
  class MyParams(TaskParameters):
      iterations = param(
          type=int,
          desc="Number of iterations to run",
          range=(0, 100000),
      )
  
      target_accuracy = percent_param(
          desc="The target accuracy of the model",
      )
class_docstr_tok: ["Base","class","for","task","parameters",".","Inherit","this","class","to","create","a","parameter","set","to","connect","to","a","task",".","Usage","Example",":","class","MyParams","(","TaskParameters",")",":","iterations","=","param","(","type=int",",","desc=","''","Number","of","iterations","to","run","''",",","range=","(","0",",","100000",")",",",")","target_accuracy","=","percent_param","(","desc=","''","The","target","accuracy","of","the","model","''",",",")"]
docstr: Connect to a task.
  
  When running locally, the task will save the parameters from self.
  When running with a worker, self will be updated according to the task's
  saved parameters.
  
  :param task: The task to connect to.
  :type task: .Task
docstr_tok: ["Connect","to","a","task",".","When","running","locally",",","the","task","will","save","the","parameters","from","self",".","When","running","with","a","worker",",","self","will","be","updated","according","to","the","task's","saved","parameters",".",":","param","task",":","The","task","to","connect","to",".",":","type","task",":",".Task"]
code: def connect(self, task):
      """
      Connect to a task.
  
      When running locally, the task will save the parameters from self.
      When running with a worker, self will be updated according to the task's
      saved parameters.
  
      :param task: The task to connect to.
      :type task: .Task
      """
  
      return task.connect(self)
  
file_path: clearml/clearml/task_parameters.py
imports: import six
  import attr
  from attr import validators
label_desc: Use image node_id 3 for calling the TaskParameters obj's underlying member method code with example usage: obj.connect(task) and returns: task