Skip to content

Instantly share code, notes, and snippets.

@hnsl
Created September 7, 2017 22:28
Show Gist options
  • Save hnsl/e4bb06fc3c69c5b01f2331b37a81028c to your computer and use it in GitHub Desktop.
Save hnsl/e4bb06fc3c69c5b01f2331b37a81028c to your computer and use it in GitHub Desktop.
ReLU XOR
-1.585 *
(
if (((1.262 * a + 1.262 * b) + -0.000) > 0)
then ((1.262 * a + 1.262 * b) + -0.000)
else 0
)
+
1.303 *
(
if (((0.767 * a + 0.767 * b) + 0.767) > 0)
then ((0.767 * a + 0.767 * b) + 0.767)
else 0
)
+
0.627 *
(
if (((-0.869 * a + -0.687 * b) + -0.806) > 0)
then ((-0.869 * a + -0.687 * b) + -0.806)
else 0
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment