Skip to content

Clojure library for simulating Continuous-Time Recurrent Neural Networks

License

Notifications You must be signed in to change notification settings

oyvinht/clj-ctrnn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clj-ctrnn

Clojure library for simulating Continuous-Time Recurrent Neural Networks

Installation

Clojars Project

Usage

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)))))

Documentation

Generated codox documentation is available here. Mathematical background is outlined here.

About

Clojure library for simulating Continuous-Time Recurrent Neural Networks

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published