new hparams

This commit is contained in:
steffen-illium
2021-06-14 17:06:14 +02:00
parent 99c01cd569
commit e223fa3bfe
4 changed files with 9 additions and 9 deletions
-1
View File
@@ -265,7 +265,6 @@ class BaseFactory(gym.Env):
# d = {key: val._asdict() if hasattr(val, '_asdict') else val for key, val in self.__dict__.items()
d = {key: val for key, val in self.__dict__.items() if not key.startswith('_') and not key.startswith('__')}
filepath.parent.mkdir(parents=True, exist_ok=True)
super(BaseFactory, self).save_params()
with filepath.open('w') as f:
yaml.dump(d, f)
# pickle.dump(d, f, protocol=pickle.HIGHEST_PROTOCOL)