(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)
          --speed             : Speed of sample channels wanted. (float, default=1.0)
          --audio_channels    :(int, default=1).
    :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)
          --speed             : Speed of sample channels wanted. (float, default=1.0)
          --audio_channels    :(int, default=1).
    :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 ) -- speed : Speed of sample channels wanted . ( float default = 1 . 0 ) -- audio_channels : ( int default = 1 ) . : 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)
          --speed             : Speed of sample channels wanted. (float, default=1.0)
          --audio_channels    :(int, default=1).
    :return: An object of class HParams, which is a set of hyperparameters as
            name-value pairs.
    """
    audio_channels = 1
    sample_rate = 16000
    speed = 1.0

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

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

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