Skip to content

Commit

Permalink
Docs/function/hebbian (#661)
Browse files Browse the repository at this point in the history
* Merge branch 'devel' of https://github.com/PrincetonUniversity/PsyNeuLink into refactor/Projection/Context_devel

# Conflicts:
#	psyneulink/components/mechanisms/adaptive/control/controlmechanism.py

* -

* • Function
  Hebbian().function - updated docstring to show proper calculation
  • Loading branch information
jdcpni authored Feb 16, 2018
1 parent 1a77cd0 commit 0ddb792
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion psyneulink/components/functions/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -9042,7 +9042,11 @@ def function(self,
context=None):
"""Calculate a matrix of weight changes from a 1d array of activity values using Hebbian learning function.
Weight change matrix = *learning_rate* :math:`* w_{ij}x_ix_j`
The weight change matrix is calculated as:
*learning_rate* * :math:`a_ia_j` if `i \\neq j`, else `0`
where :math:`a_i` and :math:`a_j` are elements of `variable <Hebbian.variable>`.
Arguments
---------
Expand Down

0 comments on commit 0ddb792

Please sign in to comment.