ucl-pond / pySuStaIn

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

Apply the trained model to external/independent data #50

Closed anbai106 closed 1 month ago

anbai106 commented 1 month 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 1 month ago

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

noxtoby commented 1 month ago

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