| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → Neural Network Toolbox |
| Contents | Index |
Conscience bias learning function
learncon is the conscience bias learning function used to increase the net input to neurons that have the lowest average output until each neuron responds approximately an equal percentage of the time.
learncon(B,P,Z,N,A,T,E,gW,gA,D,LP,LS) takes several inputs,
| dB |
S x 1 weight (or bias) change matrix |
| LS |
New learning state |
Learning occurs according to learncon's learning parameter, shown here with its default value.
| LP.lr - 0.001 |
Learning rate |
learncon(code) returns useful information for each code string:
| 'pnames' |
Names of learning parameters |
| 'pdefaults' |
Default learning parameters |
| 'needg' |
Returns 1 if this function uses gW or gA |
Neural Network Toolbox™ 2.0 compatibility: The LP.lr described above equals 1 minus the bias time constant used by trainc in the Neural Network Toolbox 2.0 software.
Here you define a random output A and bias vector W for a layer with three neurons. You also define the learning rate LR.
Because learncon only needs these values to calculate a bias change (see algorithm below), use them to do so.
To prepare the bias of layer i of a custom network to learn with learncon,
To train the network (or enable it to adapt),
learncon calculates the bias change db for a given neuron by first updating each neuron's conscience, i.e., the running average of its output:
The conscience is then used to compute a bias for the neuron that is greatest for smaller conscience values.
(learncon recovers C from the bias values each time it is called.)
| Provide feedback about this page |
![]() | initzero | learngd | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |