Skip to content

Commit

Permalink
fix(Evaluation): added support for only transfer learning epochs in e…
Browse files Browse the repository at this point in the history
…valuate_fitting()
  • Loading branch information
muellerdo committed Jul 18, 2022
1 parent 9e75baf commit e474282
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aucmedi/evaluation/fitting.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ def evaluate_fitting(train_history,
tl_epochs = filter_tl.groupby(["prefix"])["epoch"].max()
# compute fine tune epoch update
group_repeats = filter.groupby(["prefix"]).size()
ft_update = tl_epochs.repeat(group_repeats).to_numpy()
if group_repeats.empty : ft_update = 0
else : ft_update = tl_epochs.repeat(group_repeats).to_numpy()
# if no prefix available -> add epochs to all ft phases
else:
# identify number of epochs global
Expand Down

0 comments on commit e474282

Please sign in to comment.