parameters: (self, params, value=None)
docstring: Set parameter(s)
  
          Parameters
          ----------
          params: dict / list / string
              list of key-alue pairs, dict or simply string key
          value: optional
              value of the specified parameter, when params is a single string
docstring_summary: Set parameter(s)
docstring_tokens: Set parameter ( s )
function: def _set_param(self, params, value=None):
          """
          Set parameter(s)
  
          Parameters
          ----------
          params: dict / list / string
              list of key-alue pairs, dict or simply string key
          value: optional
              value of the specified parameter, when params is a single string
          """
          if isinstance(params, collections.abc.Mapping):
              params = params.items()
          elif isinstance(params, (str,)) and value is not None:
              params = [(params, value)]
          for key, val in params:
              if not isinstance(val, (str,)):
                  val = str(val)
              _check_call(_LIB.TreeliteModelBuilderSetModelParam(self.handle,
                                                                 c_str(key),
                                                                 c_str(val)))
function_tokens: def _set_param ( self , params , value = None ) : if isinstance ( params , collections . abc . Mapping ) : params = params . items ( ) elif isinstance ( params , ( str , ) ) and value is not None : params = [ ( params , value ) ] for key , val in params : if not isinstance ( val , ( str , ) ) : val = str ( val ) _check_call ( _LIB . TreeliteModelBuilderSetModelParam ( self . handle , c_str ( key ) , c_str ( val ) ) )