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

Function datasetToArray

data-generator/index.js:87–92  ·  view source on GitHub ↗

* This is pulled into a separate function to isolate the async code. * @see datasetToArrayHandler

()

Source from the content-addressed store, hash-verified

85 * @see datasetToArrayHandler
86 */
87async function datasetToArray() {
88 return GAME_GENERATOR_DATASET.map(gameToFeaturesAndLabel)
89 .batch(ui.getBatchSize())
90 .take(ui.getTake())
91 .toArray();
92}
93
94/**
95 * Creates a dataset pipeline from GAME_GENERATOR_DATASET by:

Callers 1

datasetToArrayHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected