Currently, the Trainer class is instantiated within the main.py.
This forces us to feed in all the dependent components such as model, optimiser, scheduler into the trainer object within main.py during instantiation.
A better way would be to instantiate the trainer object as a component that is part of the hierarchical instantiation.
Currently, the Trainer class is instantiated within the main.py. This forces us to feed in all the dependent components such as model, optimiser, scheduler into the trainer object within main.py during instantiation.
A better way would be to instantiate the trainer object as a component that is part of the hierarchical instantiation.