Closed xwjBupt closed 3 years ago
Hi @xwjBupt,
To achieve the aforementioned result, you can do the following:
Track metrics defining each context:
aim.track(train_loss, name="loss", subset="train", fold=fold)
aim.track(train_acc, name="accuracy", subset="train", fold=fold)
aim.track(val_loss, name="loss", subset="val", fold=fold)
aim.track(val_acc, name="accuracy", subset="val", fold=fold)
Open Aim UI and search metrics by context:
loss, accuracy if context.fold == <fold_index>
loss, accuracy if context.fold in (<fold_index_1>, <fold_index_2>, ... )
More on how context works is described here
context.fold
or/and by any other context key that you specified while tracking metrics.Please try out and check if it works.
yes!! it works, thank you so much!!@gorarakelyan
Hi, can aim fold several graphs together? As in medical image segmentaion field, we ofter need to try k-fold validation. so if aim can organize the metrics of same fold together, it would be great!! Actually, right now, i use the following code under tensorboard to realize this:
so the page will be like 👍:
Moreover, can aim track several metrics at one time ? like < add_scalars > in tensorboard?
Huge thanks !!