MCPcopy Create free account
hub / github.com/tensorflow/tfjs-examples / datasetToArrayHandler

Function datasetToArrayHandler

data-generator/index.js:103–107  ·  view source on GitHub ↗

* Creates a dataset pipeline from GAME_GENERATOR_DATASET by: * 1) Applying the function gameToFeaturesAndlabel * 2) Taking the first N samples of the dataset * 3) Batching the dataset to batches of size B * * It then executes the dataset by filling an array. Finally, it passes this * array to

()

Source from the content-addressed store, hash-verified

101 * array to the UI to render in a table.
102 */
103async function datasetToArrayHandler() {
104 const arr = await datasetToArray();
105 ui.displayBatches(arr);
106 ui.displayNumSimulationsSoFar();
107}
108
109/**
110 * Returns a three layer sequential model suitable for predicting win state from

Callers

nothing calls this directly

Calls 1

datasetToArrayFunction · 0.85

Tested by

no test coverage detected