Commit Graph

8 Commits

Author SHA1 Message Date
1757bcd25b Refactor DeepHealth model and related components
- Removed BaselineEncoder and CrossAttention classes from models.py.
- Introduced OtherInfoTokenizer for handling additional token types.
- Updated DeepHealth class to integrate OtherInfoTokenizer and manage extra pooling logic.
- Added support for extra_pool_reduce parameter to control pooling behavior.
- Modified forward methods to return structured output using DeepHealthOutput dataclass.
- Updated training scripts to accommodate changes in model architecture and output handling.
- Enhanced error handling and validation for input shapes and types.
2026-06-17 11:05:10 +08:00
c3e49db859 Enhance DeepHealth model to incorporate CHECKUP state tokens in next-step training and evaluation, update dataset cache versioning, and improve handling of observed event histories. 2026-06-15 14:10:09 +08:00
46a3dfe628 Add training scripts for all-future and next-step supervision with DeepHealth
- Implement `train_all_future.py` for training with query-conditioned all-future supervision.
- Implement `train_next_step.py` for training with next-token/next-time-point supervision.
- Introduce `train_util.py` for shared utility functions including logging, dataset splitting, and model checkpointing.
- Enhance argument parsing for both training scripts to accommodate new parameters.
- Update loss functions and model configurations to support the new training paradigms.
2026-06-13 11:42:04 +08:00
034d8065a7 Refactor bias handling in AUC evaluation scripts to improve robustness and prevent errors when bias is not defined 2026-06-12 17:28:22 +08:00
1240766aa9 Enhance training script and evaluation logic to support all-future model target mode and improve error handling for distribution modes 2026-06-12 11:53:35 +08:00
3125b6119f Refactor AUC evaluation scripts to support model target modes and improve distribution handling 2026-06-12 11:33:32 +08:00
0fa8bbbb9a Enhance data parsing and validation, add extra info types files
- Improved `parse_int_list` and `parse_float_list` functions to support JSON list input.
- Introduced `validate_dataset_metadata` function to ensure dataset metadata consistency with training configuration.
- Added multiple new files for extra information types, categorizing them into assessment-only, exposure-only, and combined types.
- Removed deprecated `merge_extra_info_types` function and adjusted related logic in `train.py`.
- Updated `save_config` function to accept additional metadata for training runs.
- Refactored model and training scripts for better clarity and maintainability.
2026-06-12 11:16:19 +08:00
fc8c7b7177 Refactor code structure for improved readability and maintainability 2026-06-12 10:40:48 +08:00