MCPcopy Create free account
hub / github.com/tensorflow/tfjs / shuffle

Function shuffle

tfjs-data/src/iterators/lazy_iterator.ts:466–468  ·  view source on GitHub ↗

* Randomly shuffles the elements of this stream. * * @param bufferSize: An integer specifying the number of elements from * this stream from which the new stream will sample. * @param seed: (Optional.) An integer specifying the random seed that * will be used to create the distributio

(windowSize: number, seed?: string)

Source from the content-addressed store, hash-verified

464 * will be used to create the distribution.
465 */
466 shuffle(windowSize: number, seed?: string): LazyIterator<T> {
467 return new ShuffleIterator(this, windowSize, seed);
468 }
469
470 /**
471 * Force an iterator to execute serially: each next() call will await the

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…