yoshida-lab / XenonPy

XenonPy is a Python Software for Materials Informatics
http://xenonpy.readthedocs.io
BSD 3-Clause "New" or "Revised" License
131 stars 57 forks source link

Improve Persist #193

Closed TsumiNa closed 4 years ago

TsumiNa commented 4 years ago

Now, persist.path return real path include @x when increment=True.

persist = Persist('model_path`, increment=True)
...
trainer.extend(persist)
trainer.fit(...)

assert persist.path == str(Path('.').resolve() / 'model_path@1')