(cls, config=None)
return hparams
Set params.
    :param config: contains seven optional parameters:
            --norm_means   : Flag of norm_means. (bool, default=True)
            --norm_vars    : Flag of norm_vars. (bool, default=False)
            --utt2spk      : Use for speaker CMVN. (string, default=None)
            --spk2utt      : Rspecifier for speaker to utterance-list map.
                            (string, default=None)
            --reverse      : Flag of reverse. (bool, default=False)
            --std_floor    : Floor to std. (float, default=1.0e-20)
            --filetype     : Type of input file. (string, default='mat')
    :return:
Set params.
    :param config: contains seven optional parameters:
            --norm_means   : Flag of norm_means. (bool, default=True)
            --norm_vars    : Flag of norm_vars. (bool, default=False)
            --utt2spk      : Use for speaker CMVN. (string, default=None)
            --spk2utt      : Rspecifier for speaker to utterance-list map.
                            (string, default=None)
            --reverse      : Flag of reverse. (bool, default=False)
            --std_floor    : Floor to std. (float, default=1.0e-20)
            --filetype     : Type of input file. (string, default='mat')
    :return:
Set params . : param config : contains seven optional parameters : -- norm_means : Flag of norm_means . ( bool default = True ) -- norm_vars : Flag of norm_vars . ( bool default = False ) -- utt2spk : Use for speaker CMVN . ( string default = None ) -- spk2utt : Rspecifier for speaker to utterance - list map . ( string default = None ) -- reverse : Flag of reverse . ( bool default = False ) -- std_floor : Floor to std . ( float default = 1 . 0e - 20 ) -- filetype : Type of input file . ( string default = mat ) : return :
def params(cls, config=None):
    """
    Set params.
    :param config: contains seven optional parameters:
            --norm_means   : Flag of norm_means. (bool, default=True)
            --norm_vars    : Flag of norm_vars. (bool, default=False)
            --utt2spk      : Use for speaker CMVN. (string, default=None)
            --spk2utt      : Rspecifier for speaker to utterance-list map.
                            (string, default=None)
            --reverse      : Flag of reverse. (bool, default=False)
            --std_floor    : Floor to std. (float, default=1.0e-20)
            --filetype     : Type of input file. (string, default='mat')
    :return:
    """
    norm_means = True
    norm_vars = False
    utt2spk = None
    spk2utt = None
    reverse = False
    std_floor = 1.0e-20
    filetype = 'mat'

    hparams = HParams(cls=cls)
    hparams.add_hparam('norm_means', norm_means)
    hparams.add_hparam('norm_vars', norm_vars)
    hparams.add_hparam('utt2spk', utt2spk)
    hparams.add_hparam('spk2utt', spk2utt)
    hparams.add_hparam('reverse', reverse)
    hparams.add_hparam('std_floor', std_floor)
    hparams.add_hparam('filetype', filetype)

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

    return hparams
def params ( cls , config = None ) : norm_means = True norm_vars = False utt2spk = None spk2utt = None reverse = False std_floor = 1.0e-20 filetype = 'mat' hparams = HParams ( cls = cls ) hparams . add_hparam ( 'norm_means' , norm_means ) hparams . add_hparam ( 'norm_vars' , norm_vars ) hparams . add_hparam ( 'utt2spk' , utt2spk ) hparams . add_hparam ( 'spk2utt' , spk2utt ) hparams . add_hparam ( 'reverse' , reverse ) hparams . add_hparam ( 'std_floor' , std_floor ) hparams . add_hparam ( 'filetype' , filetype ) if config is not None : hparams . override_from_dict ( config ) return hparams