The generalized model initializer aims to support a large number of model imports including both builtin, and user-specified. The methods which parse the input format and import a module are high-risk. It is both easy to break reverse compatibility when introducing a new import, and the loss of ability to import and train models is major bug.
Unit testing needs to be built which checks that support for all models is retained. This would be used in development and part of the test suite required to be run before a new release. The model initializer may need to be refactored to return to most logical thing (import statement vs imported model?) for the test to be checking.
The generalized model initializer aims to support a large number of model imports including both builtin, and user-specified. The methods which parse the input format and import a module are high-risk. It is both easy to break reverse compatibility when introducing a new import, and the loss of ability to import and train models is major bug.
Unit testing needs to be built which checks that support for all models is retained. This would be used in development and part of the test suite required to be run before a new release. The model initializer may need to be refactored to return to most logical thing (import statement vs imported model?) for the test to be checking.