Next: , Previous: , Up: Top   [Contents][Index]


5 Machine learning with tarot

There are support for different paradigms of machine learning in tarot. The library provides a set of hand-crafted high-level features, and tensor-shaped features for use with a Convolutional Neural Network.

The high level features that way: for each game to learn, we can extract some game features. The features are, for instance, how many trumps we have, whether a partner may still play, and so on.

Each move for each player implements one or multiple strategies. For instance, one strategy is “play the called suit”, or “take the trick”, or how many points you play. This shows that the strategy may not be binary.

Then, we record the final score for each player. So, for a given strategy, we learn how many points we might get in the given game state. It is important to consider the interactions between features: for instance, we should not have the same model for all game variants.

Please note that these functions are tailored for machine learning: they are redundent with the rest of the API, and they never fail, but the value may be meaningless. Both features and strategies are only meaningful if the next player is the main player of the given game (i.e. we know her cards), and there is uncertainty (we don’t know the cards of the other players). If we know, the learning will not be very useful because the data set will not be taken from the same distribution as the test set.

On the other hand, the library also provides support for tensor-shaped data.


Next: , Previous: , Up: Top   [Contents][Index]