You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As for now Settings can be created by file and arguments in parallel.
In my opinion this should be split in two functions. In the current implementation it is not very logic what happens when a file and custom arguments are specified on the same time (custom arguments are currently ignored).
I think there are two solutions:
Create a second overloaded Settings(). One for the file, One with parameters. Same like Path()
Create a second function Settings_from_file()
I prefer the second option, as it is more clear what it does. But then Path and Train should be adapted likewise.
The text was updated successfully, but these errors were encountered:
As for now Settings can be created by file and arguments in parallel. In my opinion this should be split in two functions. In the current implementation it is not very logic what happens when a file and custom arguments are specified on the same time (custom arguments are currently ignored).
I agree!
I think there are two solutions:
Create a second overloaded Settings(). One for the file, One with parameters. Same like Path()
Create a second function Settings_from_file()
I prefer the second option, as it is more clear what it does. But then Path and Train should be adapted likewise.
I do see your point about the second option, but:
I would prefer the overloaded solution for Settings() and Train() for the simplicity of having only to remember one function name and let the compiler do the work. A nice solution could be a forced Keyword-Argument for the file loading function to make it clear when used, e.g. Settings(file="my_mega_setting.yaml").
As for now
Settings
can be created by file and arguments in parallel.In my opinion this should be split in two functions. In the current implementation it is not very logic what happens when a file and custom arguments are specified on the same time (custom arguments are currently ignored).
I think there are two solutions:
Settings()
. One for the file, One with parameters. Same likePath()
Settings_from_file()
I prefer the second option, as it is more clear what it does. But then
Path
andTrain
should be adapted likewise.The text was updated successfully, but these errors were encountered: