Enhancing Dataset
This issues summaries potential enhancements in the class Dataset
.
- Revise
_setup_project_folders(...)
as it duplicates code and unnecessarily treats the design representation as a special case in a for loop. Better do something like
def _setup_project_folders(self):
# Define all paths
folders = [self.datapath]
subfolders = [os.path.join(self.datapath, sf) for sf in [dp_long, pa_long, dr_long, "logs"]]
subsubfolders = [os.path.join(self.datapath, dr_long, key) for key in self.design_rep.keys()]
# Iterate through paths and create folders if they do not exist
for path in folders + subfolders + subsubfolders:
os.makedirs(path, exist_ok=True)
# Configuring logger
self.log = ud.logger_custom("data.log", os.path.join(self.datapath, "logs"))
Actually the logger should not be set up in a method used for init the project folders...
-
Refactor/Overthink the method to load the ML input and output. See #54 (closed)
-
Tackle issues in #50
Edited by Alessandro Maissen