parameters: (self, **kwargs)
docstring: Set the attribute of the Booster.
  
          Parameters
          ----------
          **kwargs
              The attributes to set.
              Setting a value to None deletes an attribute.
docstring_summary: Set the attribute of the Booster.
docstring_tokens: Set the attribute of the Booster .
function: def set_attr(self, **kwargs):
          """Set the attribute of the Booster.
  
          Parameters
          ----------
          **kwargs
              The attributes to set.
              Setting a value to None deletes an attribute.
          """
          for key, value in kwargs.items():
              if value is not None:
                  if not isinstance(value, string_type):
                      raise ValueError("Set attr only accepts strings")
                  self.__attr[key] = value
              else:
                  self.__attr.pop(key, None)
function_tokens: def set_attr ( self , * * kwargs ) : for key , value in kwargs . items ( ) : if value is not None : if not isinstance ( value , string_type ) : raise ValueError ( "Set attr only accepts strings" ) self . __attr [ key ] = value else : self . __attr . pop ( key , None )