Closed vviers closed 3 years ago
That was an issue with the way that we chose to use argparse with custom train/test/predict set parameters, calling argparse.ArgumentParser.parse_args()
twice so as to process the model_name
from the first call to get the default values of the other parameters for the second call.
After discussing possible ways forward, we will have the following configuration:
model_name
will have default value default
, pointing to the default model configurationtrain_spl_size
, train_from
, etcFixed by #51
Problem
only returns
All other optional arguments are not listed
Reason
parser.parse_args()
is called twice because default values for optional arguments depend on the value provided for the first parameter 🤯Solution
default values for params must not depend on other params