Skip to content

Commit

Permalink
playing with colors
Browse files Browse the repository at this point in the history
  • Loading branch information
gigasquid committed Dec 2, 2013
1 parent 0f88127 commit b104aee
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 75 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ pom.xml.asc
.lein-failures
.lein-plugins
.lein-repl-history
.nrepl-port
73 changes: 0 additions & 73 deletions src/k9/#click.clj#

This file was deleted.

4 changes: 2 additions & 2 deletions src/k9/colors.clj
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
(partition 2 (mapv #(normalize-input %) color-data)))


(def color-nn (construct-network 3 6 6))
(def color-nn (construct-network 3 10 6))
(defn train-epochs [n network training-data learning-rate]
(if (zero? n)
network
Expand All @@ -101,7 +101,7 @@
;; before training
(ff (normalize-input [255 0 0]) color-nn) ;=> .3

(def nc (train-epochs 1000 color-nn color-training-data 0.2))
(def nc (train-epochs 100 color-nn color-training-data 0.2))

;; after training
(ff (normalize-input [255 0 0]) nc)
Expand Down

0 comments on commit b104aee

Please sign in to comment.