* This is pulled into a separate function to isolate the async code. * @see datasetToArrayHandler
()
| 85 | * @see datasetToArrayHandler |
| 86 | */ |
| 87 | async 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: |
no outgoing calls
no test coverage detected