Closed sahilpatelsp closed 2 years ago
Can you say more about why we should reorganize in this way? You say "It might be worth considering" - why might it be worth considering?
This approach would allow us to divide a single module into multiple different files rather than having a one-to-one correspondence between modules and files, which might lead to files becoming quite involved as we add new classes. It essentially decouples the user-interface of modules from the underlying file structure.
I like the idea of e.g. from qhbmlib import losses
importing the qmhl and vqt files
@geoffreyroeder had a comment along these lines today: since we now lean heavily on the distinction between models and inference engines, it could make sense to make model
and infer
be subpackages.
Resolved by #196
It might be worth considering reorganizing the library into collective subpackages rather than modules consisting of single files, which is the current approach. One such organization scheme could be the following: