PatientLevelPrediction icon indicating copy to clipboard operation
PatientLevelPrediction copied to clipboard

Error with Default Temporal Covariate Settings + PLP Lasso Logistic Regression

Open bechlerk opened this issue 3 years ago • 1 comments

When using settings = CreateDefaultTemporalCovariateSettings(), running the getPlpData + createStudyPopulation works fine, but when running the lasso logistic regression model I receive the error below. Error still occurs even when segment to different subsets of temporal covariates (i.e. just demographics and condition). However, when using settings = CreateDefaultCovariateSettings(), the lasso logistic regression model runs smoothly with no error. Screen Shot 2021-05-03 at 1 26 29 PM

bechlerk avatar May 03 '21 22:05 bechlerk

Hello. This error is expected, but we should have an input check to warn people and clearer documentation. The majority of the PLP classifiers only support 2d (patient x covariate) data, the CreateDefaultTemporalCovariateSettings() creates 3d (patient x covariate x time) data. The deep learning classifiers generally accept 3d data, but those are the only ones that will. I'll add in an input check and stop() to make sure the plpData are 2d for the non-deep learning classifiers. I'll also make sure this is clear in the PLP manual files. Thanks, Jenna.

jreps avatar May 04 '21 16:05 jreps