211212_labCollab is a PyTorch-based deep learning framework for collaborative learning in a medical research setting.
- Clone the repository:
git clone https://github.com/your_username/lab_collaborator.git cd lab_collaborator
- Install required dependencies:
pip install -r requirements.txt
- Define your PyTorch Lightning module
- Implement your dataset class
- Configure the data module
- Modify the configuration file 130_config.yaml to suit your experiment settings (model type, learning rate, batch size, etc.)
- Run the training script: python lab_collaborator.py --config_path 130_config.yaml
- Supports various deep learning models including BiGRU, BiLSTM, Transformer, and simpleANN. These classes define the architecture and forward pass logic for various models used in the project.
- Provides metrics like accuracy, AUROC, precision, recall, sensitivity, and specificity for evaluation.The main training loop is implemented within the labCollabLM class, where the training_step and validation_step methods handle forward passes, loss calculations, and metric computations.
- Offers PyTorch Lightning integration for efficient training and logging.
Contributions to Lab Collaborator are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (git checkout -b feature/your_feature).
- Make your changes and commit them (git commit -am 'Add new feature').
- Push your branch (git push origin feature/your_feature).
- Create a pull request.