kfold cross-val: any way to average partial-epoch metrics across folds? #12294
Unanswered
pchalasani
asked this question in
Lightning Trainer API: Trainer, LightningModule, LightningDataModule
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to use ray-tune for hyper-param opt with PTL. One issue I run into often is that the "best" hyperparams found by ray-tune are not so great once I change the random seed. It's much more useful to find hyperperams such that the average objective across random seeds is optimized.
One thought I had is to define a new objective, say
avg_val_auc
as the average of theval_auc
across multiple folds in kfold cross-validation (I saw the kfold.py example). The important requirement is to have:val_check_interval
, i.e. before the entire fold training has completed. This enables ray-tune to kill trials that are looking bad.Hopefullly that makes sense. Any pointers appreciated.
Beta Was this translation helpful? Give feedback.
All reactions