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

Function f

addition-rnn-webworker/worker.js:119–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

117 const maxLen = digits + 1 + digits;
118
119 const f = () => {
120 let str = '';
121 while (str.length < digits) {
122 const index = Math.floor(Math.random() * arraySize);
123 str += digitArray[index];
124 }
125 return Number.parseInt(str);
126 };
127
128 const seen = new Set();
129 while (output.length < numExamples) {

Callers 1

generateDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected