]> hydra-www.ietfng.org Git - dyna2/commitdiff
added sigmoid - a simple example of back-chained math
authortimv <tim.f.vieira@gmail.com>
Mon, 17 Dec 2012 20:46:30 +0000 (15:46 -0500)
committertimv <tim.f.vieira@gmail.com>
Mon, 17 Dec 2012 20:46:30 +0000 (15:46 -0500)
examples/sigmoid.dyna [new file with mode: 0644]

diff --git a/examples/sigmoid.dyna b/examples/sigmoid.dyna
new file mode 100644 (file)
index 0000000..c095838
--- /dev/null
@@ -0,0 +1,6 @@
+% FIXME: should all be '=' instead of '+='
+sigmoid(X) += 1 / (1 + exp(-X)).
+
+a += sigmoid(-1).
+b += sigmoid(0).
+c += sigmoid(1).
\ No newline at end of file