(cls, config=None)
return hparams
Set params.
    :param config: contains three optional parameters:
        --sample_rate       : Waveform data sample frequency (must match the waveform
                             file, if specified there). (float, default = 16000)
        --window_length		 : Window length in seconds. (float, default = 0.030)
        --frame_length		 : Hop length in seconds. (float, default = 0.010)
    :return: An object of class HParams, which is a set of hyperparameters as
             name-value pairs.
Set params.
    :param config: contains three optional parameters:
        --sample_rate       : Waveform data sample frequency (must match the waveform
                             file, if specified there). (float, default = 16000)
        --window_length		 : Window length in seconds. (float, default = 0.030)
        --frame_length		 : Hop length in seconds. (float, default = 0.010)
    :return: An object of class HParams, which is a set of hyperparameters as
             name-value pairs.
Set params . : param config : contains three optional parameters : -- sample_rate : Waveform data sample frequency ( must match the waveform file if specified there ) . ( float default = 16000 ) -- window_length : Window length in seconds . ( float default = 0 . 030 ) -- frame_length : Hop length in seconds . ( float default = 0 . 010 ) : 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 three optional parameters:
        --sample_rate       : Waveform data sample frequency (must match the waveform
                             file, if specified there). (float, default = 16000)
        --window_length		 : Window length in seconds. (float, default = 0.030)
        --frame_length		 : Hop length in seconds. (float, default = 0.010)
    :return: An object of class HParams, which is a set of hyperparameters as
             name-value pairs.
    """

    window_length = 0.030
    frame_length = 0.010
    sample_rate = 16000

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

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

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