I am new to wandb and I am trying to figure out how to set up logging processes (based on cross validation folds) and to group them. What I would like to do is to plot/visualise performances for each fold in a cross validation scheme.
In this Colab example notebook
at the very bottom the section “Basic Setup” says in point 2: "Groups: For multiple processes or cross validation folds, log each process as a runs and group them together. wandb.init(group='experiment-1')". I am not quite sure how to do this. I searched the documentation, but I was not successful. Can anyone point me to some example code how to do this?
Basically, what I am interested in is to visualise ROC, etc. for each fold and compare how much they differ.
I ended up with something similar by playing around with various approaches. One thing I did differently though was calling
wandb.finish()
only once at the end of the script outside the KFold for loop. Looking at your code suggestions, I understand that I should finish every single run with wandb.finish().
Thanks a lot also for the example using sweeps. That will come in handy.
@olto No problem! Thanks for the question. It gave me a chance to dig into this myself.
When you start a new run with wandb.init() it basically calls wandb.finish() on the previous run so both codes work essentially the same. I just like to explicitly call it to finish a run but either works!