(cls, config=None)
return hparams
Set params.
       :param config: contains one optional parameters:sample_rate(int, default=16000).
       :return: An object of class HParams, which is a set of hyperparameters as name-value pairs.
Set params.
       :param config: contains one optional parameters:sample_rate(int, default=16000).
       :return: An object of class HParams, which is a set of hyperparameters as name-value pairs.
Set params . : param config : contains one optional parameters : sample_rate ( int default = 16000 ) . : return : An object of class HParams which is a set of hyperparameters as name - value pairs .
def params(cls, config=None):
    """
      Set params.
       :param config: contains one optional parameters:sample_rate(int, default=16000).
       :return: An object of class HParams, which is a set of hyperparameters as name-value pairs.
       """

    sample_rate = 16000

    hparams = HParams(cls=cls)
    hparams.add_hparam('sample_rate', sample_rate)

    if config is not None:
      hparams.override_from_dict(config)

    return hparams
def params ( cls , config = None ) : sample_rate = 16000 hparams = HParams ( cls = cls ) hparams . add_hparam ( 'sample_rate' , sample_rate ) if config is not None : hparams . override_from_dict ( config ) return hparams