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/4b6a1494f59faa58326f7d243f26a268 to your computer and use it in GitHub Desktop.
Save curiousily/4b6a1494f59faa58326f7d243f26a268 to your computer and use it in GitHub Desktop.
const xs = [...Array(20).keys()].map(x => x - 10);
const ys = tf.leakyRelu(xs).dataSync();
renderActivationFunction(xs, ys, "Leaky ReLU", "leaky-relu-cont");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment