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

Function compileModel

quantization/model_fashion_mnist.js:57–64  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

55}
56
57export function compileModel(model) {
58 const optimizer = 'adam';
59 model.compile({
60 optimizer: optimizer,
61 loss: 'categoricalCrossentropy',
62 metrics: ['accuracy'],
63 });
64}

Callers 1

createModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected