ucl-pond / pySuStaIn

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

[Question] Can we discover subtypes in a training test, and use the discovered subtypes to subtype subjects of a test set? #44

Closed little-nem closed 1 year ago

little-nem commented 1 year ago

Hi SuStaIn team!

I am trying to use SuStaIn with a train / test like approach, in which I have two dataset:

So it seems to me that this makes sense from a methodological point of view (but I could be mistaken 😅).

Now I don't seem to find exactly how I would proceed to perform this last step, given the output from the first step. I went back to the notebook from the workshop (that I had followed some time ago) and it looks to me that the presented cross_validate_sustain_model mainly focuses on cross validation metrics, rather than outputting the subtypes corresponding to the "test" subtypes.

I am sorry if this is treated somewhere that I have missed, and don't hesitate if the question is somewhat unclear, I'm happy to rephrase or go more into details 🙂

Cheers, Nemo

noxtoby commented 1 year ago

Hey Nemo. You should have a look at subtype_and_stage_individuals_newData(), presumably you're interested in this version for ZscoreSuStaIn