networks – Structural Components: Networks

class pybrain.structure.networks.Network(name=None, **args)

Bases: pybrain.structure.modules.module.Module, pybrain.structure.parametercontainer.ParameterContainer

Abstract class for linking different modules with connections.

Do one transformation of an input and return the result.
Run the module’s forward pass on the given dataset unconditionally and return the output.
Add the given connection to the network.
Add the given module to the network and mark it as an input module.
Add the given module to the network.
Add the given module to the network and mark it as an output module.
Reset all component modules and the network.

Prepare the network for activation by sorting the internal datastructure.

Needs to be called before activation.

class pybrain.structure.networks.FeedForwardNetwork(*args, **kwargs)

Bases: pybrain.structure.networks.feedforward.FeedForwardNetworkComponent,

FeedForwardNetworks are networks that do not work for sequential data. Every input is treated as independent of any previous or following inputs.

class pybrain.structure.networks.RecurrentNetwork(*args, **kwargs)

Bases: pybrain.structure.networks.recurrent.RecurrentNetworkComponent,

Class that implements networks which can work with sequential data.

Until .reset() is called, the network keeps track of all previous inputs and thus allows the use of recurrent connections and layers that look back in time.

Add a connection to the network and mark it as a recurrent one.

Previous topic

modules – Structural Components: Modules

Next topic

actionvalues – RL Components: ActionValues

This Page