4 Commits

Author SHA1 Message Date
29913106cb Add get_sequence_lengths method to HealthDataset and create extract_sequence_lengths script for per-patient sequence length extraction 2026-01-19 14:39:13 +08:00
a90f22a865 Enhance HealthDataset with caching for event tensors and update evaluation scripts to use test subsets 2026-01-17 14:42:02 +08:00
01a96d37ea Enhance DataLoader configuration and improve tensor transfer efficiency in Trainer class 2026-01-08 13:20:32 +08:00
6984b254b3 Add loss functions and model architecture for time-to-event prediction
- Implemented ExponentialNLLLoss and WeibullNLLLoss in losses.py for negative log-likelihood calculations.
- Developed TabularEncoder class in model.py for encoding tabular features.
- Created DelphiFork and SapDelphi classes in model.py for time-to-event prediction using transformer architecture.
- Added data preparation scripts in prepare_data.R and prepare_data.py for processing UK Biobank data, including handling field mappings and event data extraction.
2026-01-07 21:32:00 +08:00