Skip to content

Commit

Permalink
Removing TODOs #75
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenfmann committed Nov 18, 2024
1 parent e1e3ec0 commit 98f5a55
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 11 deletions.
1 change: 0 additions & 1 deletion evoke/examples/godfreysmith2013communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,6 @@ def calculate_results_per_c_and_k(self) -> None:
"""

# 1. Initialize
# TODO: get this from the keys of self.games.
results = {
f"{c_value:.3f}_{k_value:.3f}": []
for c_value in self.c_values
Expand Down
4 changes: 1 addition & 3 deletions evoke/src/evolve.py
Original file line number Diff line number Diff line change
Expand Up @@ -520,15 +520,14 @@ def is_pooling(self, epsilon=1e-3):
"""

## TODO: add a custom exception here.
## Check that the game is of the appropriate type for this method.
## i.e. In order to determine whether a simulation is currently pooling,
## there must minimally be states, signals and acts.
assert (
hasattr(self.game, "states")
and hasattr(self.game, "messages")
and hasattr(self.game, "acts")
)
), "Game must have states, messages and acts to determine pooling."

##########################################################
## NB: This is not true because the state_chances might be uneven enough
Expand Down Expand Up @@ -709,7 +708,6 @@ def calculate_stats(self):
self.statistics["avg_prob_success"][:] = np.nan

## Get the current average probability of success
# TODO check this!
avg_prob_success = np.average(
self.game.payoff(sender_strat=snorm, receiver_strat=rnorm)
)
Expand Down
7 changes: 0 additions & 7 deletions evoke/src/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,6 @@ def receiver_pure_strats(self):
pure_strats = np.identity(self.acts)
return np.array(list(it.product(pure_strats, repeat=self.messages)))

def one_pop_pure_strats(self):
"""
Return the set of pure strategies available to players in a
one-population setup
"""
# TODO

def payoff(self, sender_strat, receiver_strat):
"""
Calculate the average payoff for sender and receiver given concrete
Expand Down

0 comments on commit 98f5a55

Please sign in to comment.