Skip to content

Instantly share code, notes, and snippets.

@curiousily
Created July 16, 2019 19:51
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 curiousily/8de945d934c7c51e2771c012d9171a88 to your computer and use it in GitHub Desktop.
Save curiousily/8de945d934c7c51e2771c012d9171a88 to your computer and use it in GitHub Desktop.
await model.fit(X, y, {
shuffle: true,
epochs: 20,
callbacks: {
onEpochEnd: async (epoch, logs) => {
console.log("Epoch " + epoch);
console.log("Loss: " + logs.loss + " accuracy: " + logs.acc);
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment