SPARC

Model weights for SPARC, trained on MSK-CAIA. Code: https://github.com/tommyfuu/SPARC

Tasks

anemia, neutropenia, febrile_neutropenia, AKI, Liver_toxicity, binary (mortality after hospital discharge), binary_icu_pre (ICU mortality), and pretrained (the self-supervised forecaster).

Usage

Copy sparc_predict.py into a clone of https://github.com/tommyfuu/SPARC, then:

from sparc_predict import SPARCPredict

model = SPARCPredict.from_hub("tommyfuu/SPARC", task="neutropenia", token="hf_...")
probs = model.predict(xs, times, num_infusion)
  • xs: [B, 20, 37] visits, most recent first, features in the order of config.json["feature_order"]; labs and vitals z-scored as (value - mean) / std; NaN for missing values.
  • Means and standard deviations are not included; compute them per lab and vital sign from your own data and fill in normalization_factors_template.json.
  • times: [B, 20] days relative to the prediction time (0 or negative).
  • num_infusion: infusion number per sample (adverse-event tasks only).
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support