Skip to content

Instantly share code, notes, and snippets.

@curiousily
Created July 16, 2019 19:47
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/25988d4e642b0176882572d592f47c3a to your computer and use it in GitHub Desktop.
Save curiousily/25988d4e642b0176882572d592f47c3a to your computer and use it in GitHub Desktop.
const xs = [...Array(20).keys()].map(x => x - 10);
const ys = tf.relu(xs).dataSync();
renderActivationFunction(xs, ys, "ReLU", "relu-cont");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment