Commit Graph

7 Commits

Author SHA1 Message Date
9eda00ea48 Add n_tech_tokens parameter to DelphiFork and SapDelphi model initializations 2026-01-08 11:36:23 +08:00
1d1f568a3f Rename age_encoder parameter to age_encoder_type for clarity in Trainer class 2026-01-08 11:34:44 +08:00
8293f7ee24 Enhance TabularEncoder with BatchNorm and AutoDiscretization for continuous features 2026-01-08 00:24:43 +08:00
33ba7e6c1d Refactor training logic to improve early stopping mechanism and variable naming 2026-01-08 00:07:15 +08:00
811b2e1a46 Implement training script for Delphi model with configurable parameters 2026-01-07 23:57:29 +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
5d1d79b908 Initial commit 2026-01-07 21:27:38 +08:00