I recently started writing some unit tests for deep learning projects using pytest. I’ve organized my code in a folder, say ‘src’ and unit-tests are in ‘tests’. Both these directories are at the same level so I need to do relative imports like from …src.foo import xyz
I read somewhere that relative imports is a bad practice and we should prefer absolute paths instead. So I’ve two options now
Create a symlink of ‘src’ in a test directory
Use editable install of pip
I want some opinions on this thing and what are some best practices to follow?
Usually, there’s one opinion saying don’t worry much about the best practices while doing research and focus on your experiments.
But I believe such code gets worse as the codebase grows.
I’m also looking for some getting started guides for “GitHub actions for ML”
This repository is a really good start, but it was last updated on 14 May 2020. Small changes over the seed would be to use the newly introduced Data Modules for data specific tasks and Loggers instead of simple dictionaries for logging purposes.