Oufattole / meds-torch

MIT License
15 stars 1 forks source link

Reorganize DataModule and Dataset Configuration Structure #123

Open Oufattole opened 2 weeks ago

Oufattole commented 2 weeks ago

Current Structure

Code Organization

Configuration Files

Current config files combine settings for both DataModule and Dataset classes:

src/meds_torch/configs/data/
├── pytorch_dataset.yaml
└── random_windows_pytorch_dataset.yaml

Proposed Changes

New Configuration Structure

Separate dataset-specific configs from DataModule configs:

src/meds_torch/configs/data/
├── datamodule.yaml
└── dataset_type/
    ├── pytorch_dataset.yaml
    └── random_windows_pytorch_dataset.yaml

Benefits

The main reason for this is so that users can use their own custom dataset files and configs, and select them via hydra.

Implementation Tasks