all AI news
[P]Nash Finder - find Nash equilibrium for all games
Aug. 4, 2022, 5:07 a.m. | /u/lansiz
Machine Learning www.reddit.com
**This program helps to find Nash equilibrium (NE) for any type of games. It is especially useful for those games with more than two players, which oftentimes are unsolvable.**
# Example 1: find NE for two-person games
​
[ Payoff bimatrix of two-person game](https://preview.redd.it/9rlmz6coomf91.png?width=691&format=png&auto=webp&s=2a097c5b11bf9ef7a4a604de86df620417489004)
import grm
game = grm.Game()
# two playeys, and each player uses THREE pure strategies
game.player_join(grm.Player(3))
game.player_join(grm.Player(3))
game.player_init_mixed_strategies()
# assign the payoff (define the payoff function)
# player 1
game.player_assign_payoff(1, "11", -231)
game.player_assign_payoff(1, "12", -505) …
More from www.reddit.com / Machine Learning
Jobs in AI, ML, Big Data
Lead Developer (AI)
@ Cere Network | San Francisco, US
Research Engineer
@ Allora Labs | Remote
Ecosystem Manager
@ Allora Labs | Remote
Founding AI Engineer, Agents
@ Occam AI | New York
AI Engineer Intern, Agents
@ Occam AI | US
AI Research Scientist
@ Vara | Berlin, Germany and Remote