MCPcopy Index your code
hub / github.com/tensorflow/tfjs / createDummyModel

Function createDummyModel

tfjs-layers/src/callbacks_test.ts:17–22  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16describe('EarlyStopping', () => {
17 function createDummyModel(): tfl.LayersModel {
18 const model = tfl.sequential();
19 model.add(tfl.layers.dense({units: 1, inputShape: [1]}));
20 model.compile({loss: 'meanSquaredError', optimizer: 'sgd'});
21 return model;
22 }
23
24 it('Default monitor, default mode, increasing val_loss', async () => {
25 const model = createDummyModel();

Callers 1

callbacks_test.tsFile · 0.70

Calls 2

addMethod · 0.65
compileMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…