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: Update the parameters using values from a dictionary.
  
  :param source_dict: A dictionary with an entry for each parameter to
      update.
docstr_tok: ["Update","the","parameters","using","values","from","a","dictionary",".",":","param","source_dict",":","A","dictionary","with","an","entry","for","each","parameter","to","update","."]
code: def update_from_dict(self, source_dict):
      """
      Update the parameters using values from a dictionary.
  
      :param source_dict: A dictionary with an entry for each parameter to
          update.
      """
      for key, value in source_dict.items():
          if not hasattr(self, key):
              raise ValueError(
                  "Unknown key {} in {} object".format(
                      key, type(self).__name__
                  )
              )
  
          setattr(self, key, value)
  
file_path: clearml/clearml/task_parameters.py
imports: import six
  import attr
  from attr import validators
label_desc: Use image node_id 2 for calling the TaskParameters obj's underlying member method code with example usage: obj.update_from_dict(source_dict) without return types