Skip to content

Commit

Permalink
Fixed bug at processing outputs from epoch.
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-costas committed Mar 30, 2020
1 parent cb0ab5b commit 5b6e065
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions experiments/_processes.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,11 @@ def training(model:Module,
epoch_tr_loss = epoch_tr_loss.mean().item()

f1_score_training = f1_func(
hat_training,
hat_training.sigmoid(),
true_training).mean().item()

error_rate_training = er_func(
hat_training,
hat_training.sigmoid(),
true_training).mean().item()

model = model.eval()
Expand All @@ -189,11 +189,11 @@ def training(model:Module,
epoch_va_loss = epoch_va_loss.mean().item()

f1_score_validation = f1_func(
hat_validation,
hat_validation.sigmoid(),
true_validation).mean().item()

error_rate_validation = er_func(
hat_validation,
hat_validation.sigmoid(),
true_validation).mean().item()

if epoch_va_loss < lowest_epoch_loss:
Expand Down

0 comments on commit 5b6e065

Please sign in to comment.