Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**refactor(run.py): Integrate Hydra for module instantiation and clea…
…n up configurations** - **Use Hydra to instantiate and :** - Replaced manual instantiation with and . - **Remove hard-coded dataset paths:** - Eliminated hard-coded and to rely on Hydra configurations. - **Update imports:** - Removed unused imports such as , , , , , and . - Added necessary imports like from , from , and from . - **Clean up Trainer instantiation:** - Removed the and related directory creation logic. - Updated instantiation to exclude and ensure proper callback management. - **Enhance documentation:** - Improved docstrings for better clarity and understanding of the main function's purpose. - **Miscellaneous:** - Added type hints for better code readability and maintenance. **Benefits:** - Enhances configurability and flexibility by leveraging Hydra's powerful configuration management. - Simplifies the script by removing hard-coded values and unused components. - Improves code maintainability and readability through better documentation and type hinting.
- Loading branch information