Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NeuralNetworkHaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Andor Kyrill Willared
NeuralNetworkHaskell
Commits
4e662f3a
Commit
4e662f3a
authored
Jul 11, 2019
by
Marco Herzog
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update NeuralNetwork.hs
parent
724920e0
Changes
1
Hide whitespace changes
Inline
Sidebyside
Showing
1 changed file
with
5 additions
and
6 deletions
+5
6
NeuralNetwork.hs
NeuralNetwork.hs
+5
6
No files found.
NeuralNetwork.hs
View file @
4e662f3a
...
...
@@ 177,12 +177,11 @@ update [] _ _ = []
update
_
[]
_
=
[]
update
(
m
:
matrices
)
(
u
:
updates
)
learningRate
=
m

fmap
(
*
learningRate
)
u
:
update
matrices
updates
learningRate
 
gradients
::
[
Matrix
Float
]
>
[
Matrix
Float
]
>
[
Matrix
Float
]
>
Matrix
Float
>
[(
Matrix
Float
,
Matrix
Float
)]
  'gradients' calculates the updates for the 'weights' and 'biases' of a 'NeuralNetwork'. This function is only to be called by 'apply'
gradients
::
[
Matrix
Float
]
 ^ The 'weight' matrix
>
[
Matrix
Float
]
 ^ The 'bias' matrix
>
[
Matrix
Float
]
 ^ The activations calculated by
gradients
[]
_
_
_
=
[]
gradients
_
[]
_
_
=
[]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment