Skip to content

Instantly share code, notes, and snippets.

@marthall
Created June 2, 2015 21:24
Show Gist options
  • Save marthall/5b09e3b2c1a07dd41d3d to your computer and use it in GitHub Desktop.
Save marthall/5b09e3b2c1a07dd41d3d to your computer and use it in GitHub Desktop.
(defn feed-forward [input weights biases]
(doseq [[w b] (map vector weights biases)]
(set! input (sigmoid (+ (dot w input) b))))
input)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment