This folder contains scripts for evaluating blood biomarker forecasting on the Flatiron Health-Foundation Medicine Clinico-Genomic Database (CGDB) across 20 cancer indications.
The evaluation pipeline assesses GDT's ability to:
- Forecast blood biomarkers over a 13-week horizon across 93,054 patients Results demonstrate that GDT achieves a median MASE of 0.87 for forecasting and an average C-index of 0.703 for event prediction, significantly outperforming baseline methods.
Scripts for preprocessing and creating evaluation datasets.
utils_forecasting_eval.py- MASE calculation and forecasting metricsgenerate_train_data_stats.py- Dataset statistics and variable volatility analysis
Naive baseline that carries forward the last observed value.
Foundation model baselines pretrained on 700k+ time series:
chronos_zero_shot.py- Zero-shot inferencechronos_bolt_zero_shot.py- Chronos Bolt variantchronos_fine_tune_and_eval.py- Fine-tuning on CGDB data
State-of-the-art time-series model with multivariate capabilities:
tide_train.py- Training and evaluation
Llama 3.1 8B baseline for comparison:
llama_eval.py- Zero-shot forecasting with base LLM
gdt_eval.py- Main evaluation script for GDTutils_call_vllm.py- vLLM inference utilitiesutils_gdt.py- GDT-specific preprocessing and evaluation functions
See requirements.txt for dependencies. Key packages include:
- AutoGluon (Chronos, TiDE)
- vLLM (GDT inference)