How to use this demo.
This demo is meant to illustrate how to train a model using a tf.data.Dataset constructed from a generator usingtf.data.generator(). In this case, we will predict the likelihood of winning a game. The game itself is described below, and implmented in game.js. The game exports a function we will use as a "generator" function to create a dataset. We will then fit a model to this dataset using
model.fitDataset(), with the goal of predicting the "win" state from features calculated from Player 1's hand. The output logit value will be larger for hands which the model considers more likely to win.
How to use this app.
Game Simulation
Click "Simulate Game" to run one play of the game. Three numbers will be randomly selected for each player. The "win" status will indicate whether player one's 'win' status according to the following rules.. Rules:Data Pipeline
Train & Evaluate Model
Training Progress
Use Trained Model
Output of model: