class_docstr: Parameter table class.
  
  Example:
  
      >>> params = ParamTable()
      >>> params.add(Param('ham', 'Parma Ham'))
      >>> params.add(Param('egg', 'Over Easy'))
      >>> params['ham']
      'Parma Ham'
      >>> params['egg']
      'Over Easy'
      >>> print(params)
      ham                           Parma Ham
      egg                           Over Easy
      >>> params.add(Param('egg', 'Sunny side Up'))
      Traceback (most recent call last):
          ...
      ValueError: Parameter named egg already exists.
      To re-assign parameter egg value, use `params["egg"] = value` instead.
class_docstr_tok: ["Parameter","table","class",".","Example",":",">",">",">","params","=","ParamTable","(",")",">",">",">","params.add","(","Param","(","'ham","'",",","'Parma","Ham","'",")",")",">",">",">","params.add","(","Param","(","'egg","'",",","'Over","Easy","'",")",")",">",">",">","params","[","'ham","'","]","'Parma","Ham'",">",">",">","params","[","'egg","'","]","'Over","Easy'",">",">",">","print","(","params",")","ham","Parma","Ham","egg","Over","Easy",">",">",">","params.add","(","Param","(","'egg","'",",","'Sunny","side","Up","'",")",")","Traceback","(","most","recent","call","last",")",":","...","ValueError",":","Parameter","named","egg","already","exists",".","To","re-assign","parameter","egg","value",",","use","`","params","[","``","egg","''","]","=","value","`","instead","."]
docstr: Update `self`.
  
  Update `self` with the key/value pairs from other, overwriting
  existing keys. Notice that this does not add new keys to `self`.
  
  This method is usually used by models to obtain useful information
  from a preprocessor's context.
  
  :param other: The dictionary used update.
  
  Example:
      >>> import matchzoo as mz
      >>> model = mz.models.DenseBaseline()
      >>> model.params['input_shapes'] is None
      True
      >>> prpr = model.get_default_preprocessor()
      >>> _ = prpr.fit(mz.datasets.toy.load_data(), verbose=0)
      >>> model.params.update(prpr.context)
      >>> model.params['input_shapes']
      [(30,), (30,)]
docstr_tok: ["Update","`","self","`",".","Update","`","self","`","with","the","key\/value","pairs","from","other",",","overwriting","existing","keys",".","Notice","that","this","does","not","add","new","keys","to","`","self","`",".","This","method","is","usually","used","by","models","to","obtain","useful","information","from","a","preprocessor","'s","context",".",":","param","other",":","The","dictionary","used","update",".","Example",":",">",">",">","import","matchzoo","as","mz",">",">",">","model","=","mz.models.DenseBaseline","(",")",">",">",">","model.params","[","'input_shapes","'","]","is","None","True",">",">",">","prpr","=","model.get_default_preprocessor","(",")",">",">",">","_","=","prpr.fit","(","mz.datasets.toy.load_data","(",")",",","verbose=0",")",">",">",">","model.params.update","(","prpr.context",")",">",">",">","model.params","[","'input_shapes","'","]","[","(","30",",",")",",","(","30",",",")","]"]
code: def update(self, other: dict):
      """
      Update `self`.
  
      Update `self` with the key/value pairs from other, overwriting
      existing keys. Notice that this does not add new keys to `self`.
  
      This method is usually used by models to obtain useful information
      from a preprocessor's context.
  
      :param other: The dictionary used update.
  
      Example:
          >>> import matchzoo as mz
          >>> model = mz.models.DenseBaseline()
          >>> model.params['input_shapes'] is None
          True
          >>> prpr = model.get_default_preprocessor()
          >>> _ = prpr.fit(mz.datasets.toy.load_data(), verbose=0)
          >>> model.params.update(prpr.context)
          >>> model.params['input_shapes']
          [(30,), (30,)]
  
      """
      for key in other:
          if key in self:
              self[key] = other[key]
  
imports: import typing
  import pandas
  import collections.abc
  from matchzoo.engine.param import Param
  from matchzoo.engine import hyper_spaces
label_desc: Use image node_id 14 for calling the ParamTable obj's underlying member method code with example usage: obj.update(other) without return types