Closed jsadler2 closed 2 years ago
Currently the train_model function accepts a str as the model_type argument: https://github.com/USGS-R/river-dl/blob/0c78af242ca03010080bc7e43ca97d17cef6eda8/river_dl/train.py#L30
train_model
str
model_type
then later the function uses that as a switch to instantiate the model python object. It would be easier and clearer to just pass the python object to the model in the first place.
Currently the
train_model
function accepts astr
as themodel_type
argument: https://github.com/USGS-R/river-dl/blob/0c78af242ca03010080bc7e43ca97d17cef6eda8/river_dl/train.py#L30then later the function uses that as a switch to instantiate the model python object. It would be easier and clearer to just pass the python object to the model in the first place.