Clojure library for simulating Continuous-Time Recurrent Neural Networks
See the tests for more complete examples.
Make a CTRNN and print activation of one of the neurons for 10 timesteps:
(let [neuron-1 (make-neuron -5 0.5)
neuron-2 (add-synapse (make-neuron 1 0.5) neuron-1 -20)]
(loop [t 0
net (make-ctrnn [neuron-1 neuron-2] 0.01)]
(println (activation ((:id neuron-2) (:neurons net))))
(if (< t 0.1)
(recur (+ t 0.01) (update-ctrnn net)))))
Generated codox documentation is available here. Mathematical background is outlined here.