MCPcopy
hub / github.com/andabi/deep-voice-conversion / set_hparam_yaml

Method set_hparam_yaml

hparam.py:56–62  ·  view source on GitHub ↗
(self, case, default_file='hparams/default.yaml', user_file='hparams/hparams.yaml')

Source from the content-addressed store, hash-verified

54 __delattr__ = Dotdict.__delitem__
55
56 def set_hparam_yaml(self, case, default_file='hparams/default.yaml', user_file='hparams/hparams.yaml'):
57 default_hp = load_hparam(default_file)
58 user_hp = load_hparam(user_file)
59 hp_dict = Dotdict(merge_dict(user_hp[case], default_hp) if case in user_hp else default_hp)
60 for k, v in hp_dict.items():
61 setattr(self, k, v)
62 self._auto_setting(case)
63
64 def _auto_setting(self, case):
65 setattr(self, 'case', case)

Callers 5

eval1.pyFile · 0.80
train2.pyFile · 0.80
train1.pyFile · 0.80
eval2.pyFile · 0.80
convert.pyFile · 0.80

Calls 4

_auto_settingMethod · 0.95
load_hparamFunction · 0.85
DotdictClass · 0.85
merge_dictFunction · 0.85

Tested by

no test coverage detected