Fix the calculation of the accuracy when running the signal game with GumbelSoftmax.
Here, the mean of the accuracies for the batch was calculated already in the loss function, although it should be only calculated in the forward call of the game.
Related Issue (if any)
Issue #256
Motivation and Context
Signal game can be run using GumbelSoftmax (see Issue #256)
How Has This Been Tested?
Error is fixed and the agents are trained on the data, using GumbelSoftmax.
Description
Fix the calculation of the accuracy when running the signal game with GumbelSoftmax. Here, the mean of the accuracies for the batch was calculated already in the loss function, although it should be only calculated in the
forward
call of the game.Related Issue (if any)
Issue #256
Motivation and Context
Signal game can be run using GumbelSoftmax (see Issue #256)
How Has This Been Tested?
Error is fixed and the agents are trained on the data, using GumbelSoftmax.