Skip to content

Commit

Permalink
evaluate_forward_func as last argument
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dangel committed Sep 13, 2019
1 parent 49bb694 commit ff6529d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions deepobs/pytorch/testproblems/testproblem.py
Expand Up @@ -95,11 +95,10 @@ def _get_next_batch(self):
return next(self._iterator)

def get_batch_loss_and_accuracy(self,
return_forward_func = False,
evaluate_forward_func = True,
reduction = 'mean',
add_regularization_if_available = True):

return_forward_func=False,
reduction='mean',
add_regularization_if_available=True,
evaluate_forward_func=True):
"""Gets a new batch and calculates the loss and accuracy (if available)
on that batch. This is a default implementation for image classification.
Testproblems with different calculation routines (e.g. RNNs) overwrite this method accordingly.
Expand Down

0 comments on commit ff6529d

Please sign in to comment.