MCPcopy Index your code
hub / github.com/tensorflow/tfjs-examples / createTextDataForTest

Function createTextDataForTest

lstm-text-generation/model_test.js:39–41  ·  view source on GitHub ↗
(sampleLen, sampleStep = 1)

Source from the content-addressed store, hash-verified

37
38describe('text-generation model', () => {
39 function createTextDataForTest(sampleLen, sampleStep = 1) {
40 return new TextData('LoremIpsum', FAKE_TEXT, sampleLen, sampleStep);
41 }
42
43 it('createModel: 1 LSTM layer', () => {
44 const model = createModel(20, 52, 32);

Callers 1

model_test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected