/HoleCardHandicapper

NeuralNet for poker hands evaluation

Primary LanguageJupyter NotebookMIT LicenseMIT

HoleCardHandicapper

PyPI license

HoleCardHandicapper makes a prediction of heads-up win rates on poker hands.

from holecardhandicapper.model.neuralnet import Neuralnet
from pypokerengine.engine.card import Card

model = Neuralnet("preflop")
model.compile()
holecard = [Card(suit=Card.HEART, rank=1), Card(suit=Card.SPADE, rank=1)]
model.predict(holecard) # returns 0.850103

You can check out sample code for all street (preflop, flop, turn, river)

Installation

pip install HoleCardHandicapper

Dependency

  • Keras
    • To make a prediction, HoleCardHandicapper internally uses keras library.
  • PyPokerEngine
    • To represents trump card, we use pypokerengine.engine.card.Card class.