Skip to content

Instantly share code, notes, and snippets.

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