ucl-pond / pySuStaIn

Subtype and Stage Inference (SuStaIn) algorithm with an example using simulated data.
MIT License
130 stars 63 forks source link

Apply the trained model to external/independent data #50

Closed anbai106 closed 5 months ago

anbai106 commented 5 months ago

Hello,

Is it possible to apply the optimal model (after CV) to external independent data? If so, can you please add functionality to this tutorial: https://github.com/ucl-pond/pySuStaIn/blob/master/notebooks/SuStaInWorkshop.ipynb

I assume we only need to z-score the new data relative to the CN data used for the training?

Thank you very much!

noxtoby commented 5 months ago

You want this function: subtype_and_stage_new_data() which is included (albeit commented out) in the simulation notebook here

noxtoby commented 5 months ago

(P.S. Yes — your new data needs to be suitably z-scored)