Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created March 16, 2019 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/6614d59beed681cd23790a3e7a2834b2 to your computer and use it in GitHub Desktop.
Save NMZivkovic/6614d59beed681cd23790a3e7a2834b2 to your computer and use it in GitHub Desktop.
/**
* @desc evaluates the model
*/
async function evaluateModelFunction(model, inputs, outputs)
{
const result = await model.evaluate(inputs, outputs, {batchSize: 64});
console.log('Accuracy is:')
result[1].print();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment