goldilocks-DPM

Goldilocks DPM Demos

Demonstrations of the Goldilocks-DPM framework for data-driven Disease Progression Model configuration.

Contents

  1. goldilocks-pysustain.py: Subtype and Stage Inference (Young et al., Nature Communications 2018)
  2. Future feature (TODO): goldilocks-ebm.py: Event-Based Model (Fonteijn, et al., NeuroImage 2012)

Workflow for Z-Score SuStaIn

See goldilocks-pysustain.py for a worked example, but here’s a conceptual overview.

from goldilocks_dpm import goldilocks_ZscoreSustain



output_folder = Path.cwd() # or wherever you want the output to go

gdpm = goldilocks_ZscoreSustain(
    dpmData = X,
    classes = y,
    output_folder = output_folder,
    robust_zscores = False,
    case_label = 1,
    ctrl_label = 0, 
    direction_abnormal = direction_abnormal,
    biomarker_labels = biomarkers
)


gdpm.run_goldilocks(
    plot = True,
    plot_format = "png",
    verbose = False
)