Closed wiederm closed 3 months ago
@chrisiacovella , what do you think about these changes? we have discussed this in parts already, but I think this should make it easier to track the experiments with dvc and pytorch-lightning.
I am a bit concerned that we are hiding function calls and using toml/yaml files for defining parameters passed to these functions. The drawback of this approach is that there is no obvious way to understand the parameters and the user (and we) need to inspect the code to access the docstring (because the function call is hidden). Do you have a suggest to address this?
Description
This PR refactors the training script and moves the training functions to the module. It also extracts parameters set in the script and moves them to a toml file. The structure of the toml file is as follows, each with a
potential
,training
anddataset
entry.Currently, we pass the config dictionaries derived from this toml file to the
create_nnp
method of thePotentialFactory
. This will internally use dictionary unpacking to pass by argument (without kwargs) to the dedicated functions. All default values of these functions have been removed. In that way we enforce that all possible keys are defined in the toml file and ensure that keys are spelled correctly (and no unintended default values are used).Status