maxkw / evolution

0 stars 0 forks source link

Scenario plots are weird with Prior = 0.5 #67

Closed maxkw closed 7 years ago

maxkw commented 7 years ago
maxkw commented 7 years ago

I've tracked the bug to the utility function of the Reciprocal_Agent. It seems to be returning 0 for all actions which then leads to a 50-50 probability on both 'give' and 'keep' which screws up the likelihood calculations completely.

maxkw commented 7 years ago

These are now fixed. It turned out the bug was due to a weird default in games.py for BinaryDictator which had a different default benefit (2) than the other games (3) which caused the utility to evaluate to 0 when Prior was equal to 0.5.