55 |
(** |
(** |
56 |
Weight decay coefficient. |
Weight decay coefficient. |
57 |
*) |
*) |
58 |
val mutable d = 0.01 |
val mutable d = 0.000001 |
59 |
|
|
60 |
(** |
(** |
61 |
The generic accept method. |
The generic accept method. |
72 |
for j = 0 to (Array.length !weights.(l).(i)) - 1 do |
for j = 0 to (Array.length !weights.(l).(i)) - 1 do |
73 |
!weights.(l).(i).(j) |
!weights.(l).(i).(j) |
74 |
<- !weights.(l).(i).(j) |
<- !weights.(l).(i).(j) |
75 |
-. (network#getStep *. !gradients.(l).(i).(j) |
-. network#getStep *. !gradients.(l).(i).(j) |
76 |
-. d *. !weights.(l).(i).(j)) |
-. d *. !weights.(l).(i).(j) |
77 |
done |
done |
78 |
done |
done |
79 |
done |
done |