Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
deltam committed Aug 9, 2015
1 parent 7105c05 commit 76e11c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/neuro/train.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
(declare train-next)

(def ^:dynamic *weight-inc-val* 0.00001)
(def ^:dynamic *learning-param* 0.00001)
(def ^:dynamic *learning-rate* 0.00001)
(def ^:dynamic *weight-random-diff* 0.001)

(def ^:dynamic *report-period* 100)
Expand Down Expand Up @@ -61,7 +61,7 @@
[w nn dfn dataset level in out]
(let [grd (gradient nn dfn dataset level in out)
diff (dfn nn dataset)]
(- w (* *learning-param* diff))))
(- w (* *learning-rate* diff))))

(defn weight-gradient
"勾配降下法で重みを更新する"
Expand Down

0 comments on commit 76e11c1

Please sign in to comment.