Closed diegoaldarondo closed 4 years ago
great idea. I can get on this and other refactoring soon. I have a big commit coming...
Related note, config variables specifying the model or loss function should specified as
net: model_name
loss: loss_name
rather than
net: nets.model_name
loss: losses.loss_name
The latter causes problems with the params['net'] = getattr(nets, params['net'])
imports in the scripts.
configs are now yaml
Can we switch configuration files to yaml format?
The current
cfg
reading process splits variables and values with.split(':')
which messes with windows drive paths likeC:\path\to\data
. https://github.com/spoonsso/DANNCE/blob/836745e5e7e4e5d8c9a4ba22b6bb13c224cac2c3/dannce/engine/processing.py#L266I've written around it for now for @wlwang20 's implementation by changing the
':'
to'*'
, but it would be nice to have a consistent version. This is handled nicely inyaml
, and the reading/writing functions are python 3.x built-ins.