OHDSI / DeepPatientLevelPrediction

An R package for performing patient level prediction using deep learning in an observational database in the OMOP Common Data Model.
https://ohdsi.github.io/DeepPatientLevelPrediction
11 stars 4 forks source link

Error when training models on full training cache #95

Closed lhjohn closed 1 year ago

lhjohn commented 1 year ago

The training cache allows us to resume training at the last unsolved hyperparameter combination. However, when we try to resume training from a completed cache it will return NA for the index to return from and throw an exception: https://github.com/OHDSI/DeepPatientLevelPrediction/blob/2aba7580f8410d623dfb6f012ce6fed95bdf417f/R/TrainingCache-class.R#L75

Instead, in the case of a full cache this for loop in gridCvDeep could be skipped to directly train the final model: https://github.com/OHDSI/DeepPatientLevelPrediction/blob/2aba7580f8410d623dfb6f012ce6fed95bdf417f/R/Estimator.R#L313

egillax commented 1 year ago

Fixed in develop