facebookresearch / EGG

EGG: Emergence of lanGuage in Games
MIT License
287 stars 100 forks source link

Fixes calculation of accuracy for the signal game with GumbelSoftmax #257

Open DominikKuenkele opened 1 year ago

DominikKuenkele commented 1 year ago

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.