Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
jdcpni committed Jan 2, 2025
1 parent aa22077 commit 4773869
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions psyneulink/core/compositions/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -332,12 +332,13 @@
*BIAS Nodes*
^^^^^^^^^^^^

NodeRoles can be used to implement BIAS Nodes, which add a bias (constant value) to the input of another Node, that can
also be modified by `learning <Composition_Learning>`. A bias Node is implemented by adding a `ProcessingMechanism` to
the Composition and requiring it to have the `BIAS` `NodeRole`. The ProcessingMechanims cannot have any afferent
Projections, and should project to the `InputPort` containing the array of values to be biased. If the bias(es) are
to be learned, the `learnable <MappingProjection.learnable>` attribute of the MappingProjeciton should be set to True.
The value of the bias, and how it is applied to the arrays being biased are specified as described below:
`BIAS` `NodeRole` can be used to implement BIAS Nodes, which add a bias (constant value) to the input of another
Node, that can also be modified by `learning <Composition_Learning>`. A bias Node is implemented by adding a
`ProcessingMechanism` to the Composition and requiring it to have the `BIAS` `NodeRole`. The ProcessingMechanims
cannot have any afferent Projections, and should project to the `InputPort` containing the values to be biased. If
the bias is to be learned, the `learnable <MappingProjection.learnable>` attribute of the MappingProjeciton
should be set to True. The value of the bias, and how it is applied to the values being biased are specified as
described below:

*Single bias value*. To apply a single scalar bias value to all elements of the array being biased, the
`default_variable <Component_Variable>` of the BIAS Node should be specified as a scalar value, and the `matrix
Expand Down

0 comments on commit 4773869

Please sign in to comment.