nash.learning package

Submodules

nashpy.learning.fictitious_play module

Code to carry out fictitious learning

nashpy.learning.fictitious_play.fictitious_play(A, B, iterations, play_counts=None)[source]

Implement fictitious play

nashpy.learning.fictitious_play.get_best_response_to_play_count(A, play_count)[source]

Returns the best response to a belief based on the playing distribution of the opponent

nashpy.learning.fictitious_play.update_play_count(play_count, play)[source]

Update a belief vector with a given play