class neurolab.core.Net(inp_minmax, co, layers, connect, trainf, errorf)[source]¶
Neural Network class
Parameters:
inp_minmax: minmax: list ci x 2
Range of input value
co: int
Number of output
layers: list of Layer
Network layers
connect: list of list
Connection scheme of layers*
trainf: callable
Train function
errorf: callable
Error function with derivative
Connect format:
Example 1: for two-layers feed forwad network
>>> connect=[[-1],# - layer 0 receives the input network signal;... [0],# - layer 1 receives the output signal... # from the layer 0;... [1]]# - the network exit receives the output... # signal from the layer 1.
Example 2: for two-layers Elman network with derivatives:
>>> connect=[[-1,0],# - layer 0 receives the input network... # signal and output signal from layer 0;... [0],# - layer 1 receives the output... # signal from the layer 0;... [1]]# - the network exit receives the output... # signals from the layer 1.