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

Function compileModel

quantization/model_mnist.js:55–62  ·  view source on GitHub ↗
(model)

Source from the content-addressed store, hash-verified

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

Callers 2

mainFunction · 0.90
createModelFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected