Module Assign NameStore Str Assign NameStore Str ImportFrom alias ImportFrom alias ImportFrom alias alias ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult Num NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body AugAssignAdd NameStore BinOpMult SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore NameLoad Slice AttributeLoad NameLoad attr BinOpMult SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr NameLoad AugAssignAdd SubscriptStore NameLoad Slice AttributeLoad NameLoad attr BinOpMult SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult Num NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body AugAssignAdd NameStore BinOpMult Call NameLoad SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore NameLoad Slice AttributeLoad NameLoad attr BinOpMult BinOpMult Call NameLoad SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr NameLoad AugAssignAdd SubscriptStore NameLoad Slice AttributeLoad NameLoad attr BinOpMult Call NameLoad SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad BinOpMult Num NameLoad BinOpMult Num NameLoad NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Num AugAssignAdd SubscriptStore NameLoad Slice NameLoad BinOpMult Call NameLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad AugAssignAdd SubscriptStore NameLoad Slice NameLoad BinOpMult BinOpSub Num Call NameLoad SubscriptLoad NameLoad Slice NameLoad SubscriptLoad NameLoad Slice NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Num Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad AugAssignAdd SubscriptStore NameLoad Slice NameLoad BinOpMult BinOpMult Call NameLoad NameLoad NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Slice NameLoad BinOpMult Call NameLoad NameLoad NameLoad AugAssignSub SubscriptStore NameLoad Slice NameLoad BinOpMult BinOpMult Call NameLoad NameLoad NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Slice NameLoad BinOpMult BinOpSub Num Call NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad BinOpMult NameLoad Num NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad keyword AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body AugAssignAdd SubscriptStore NameLoad Slice AttributeLoad NameLoad attr Call NameLoad NameLoad AugAssignAdd SubscriptStore NameLoad Slice AttributeLoad NameLoad attr BinOpSub Num Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body AugAssignAdd NameStore BinOpMult Call NameLoad NameLoad SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr AugAssignSub NameStore BinOpMult Call NameLoad NameLoad SubscriptLoad NameLoad Slice AttributeLoad NameLoad attr decorator_list decorator_list
N/A N/A __author__ Justin S Bayer, bayer.justin@googlemail.com N/A __version__ $Id$ pybrain.structure.modules.module Module pybrain.structure.modules.neuronlayer NeuronLayer pybrain.tools.functions sigmoid sigmoidPrime MultiplicationLayer N/A NeuronLayer N/A N/A Layer that implements pairwise multiplication. __init__ N/A N/A self dim name N/A None N/A N/A N/A N/A Module __init__ self N/A 2 dim dim name N/A N/A N/A self setArgs dim dim name N/A self name N/A _forwardImplementation N/A N/A self inbuf outbuf N/A N/A N/A outbuf N/A N/A inbuf N/A N/A self outdim N/A inbuf N/A N/A self outdim N/A _backwardImplementation N/A N/A self outerr inerr outbuf inbuf N/A N/A N/A N/A inerr N/A N/A self outdim N/A N/A inbuf N/A N/A self outdim outerr N/A N/A inerr N/A N/A self outdim N/A N/A inbuf N/A N/A self outdim outerr N/A N/A GateLayer N/A NeuronLayer N/A N/A Layer that implements pairwise input multiplication, with one element of
    the pair being squashed.

    If a GateLayer of size n is created, it will have 2 * n inputs and n
    outputs. The i'th output is calculated as sigmoid(I_i) * I_(i + n) where I
    is the vector of inputs. __init__ N/A N/A self dim name N/A None N/A N/A N/A N/A Module __init__ self N/A 2 dim dim name N/A N/A N/A self setArgs dim dim name N/A self name N/A _forwardImplementation N/A N/A self inbuf outbuf N/A N/A N/A outbuf N/A N/A sigmoid N/A inbuf N/A N/A self outdim N/A inbuf N/A N/A self outdim N/A _backwardImplementation N/A N/A self outerr inerr outbuf inbuf N/A N/A N/A N/A inerr N/A N/A self outdim N/A N/A N/A sigmoidPrime N/A inbuf N/A N/A self outdim N/A inbuf N/A N/A self outdim outerr N/A N/A inerr N/A N/A self outdim N/A N/A sigmoid N/A inbuf N/A N/A self outdim outerr N/A N/A DoubleGateLayer N/A NeuronLayer N/A N/A Layer that implements a continuous if-then-else.

    If a DoubleGateLayer of size n is created, it will have 2 * n inputs and
    2 * n outputs. The i'th output is calculated as sigmoid(I_i) * I_(i + n) for
    i < n and as (1 - sigmoid(I_i) * I_(i + n) for i >= n where I is the vector
    of inputs. __init__ N/A N/A self dim name N/A None N/A N/A N/A N/A Module __init__ self N/A 2 dim N/A 2 dim name N/A N/A N/A self setArgs dim dim name N/A self name N/A _forwardImplementation N/A N/A self inbuf outbuf N/A N/A N/A dim N/A N/A self indim 2 N/A N/A outbuf N/A dim N/A N/A sigmoid N/A inbuf N/A dim N/A inbuf N/A dim N/A N/A outbuf N/A dim N/A N/A 1 N/A sigmoid N/A inbuf N/A dim N/A inbuf N/A dim N/A _backwardImplementation N/A N/A self outerr inerr outbuf inbuf N/A N/A N/A dim N/A N/A self indim 2 N/A in0 N/A inbuf N/A dim N/A in1 N/A inbuf N/A dim N/A out0 N/A outerr N/A dim N/A out1 N/A outerr N/A dim N/A N/A inerr N/A dim N/A N/A N/A sigmoidPrime in0 in1 out0 N/A N/A inerr N/A dim N/A N/A sigmoid in0 out0 N/A N/A inerr N/A dim N/A N/A N/A sigmoidPrime in0 in1 out1 N/A N/A inerr N/A dim N/A N/A 1 N/A sigmoid in0 out1 N/A N/A SwitchLayer N/A NeuronLayer N/A N/A Layer that implements pairwise multiplication. __init__ N/A N/A self dim name N/A None N/A N/A N/A N/A Module __init__ self dim N/A dim 2 name N/A N/A N/A self setArgs dim dim name N/A self name N/A _forwardImplementation N/A N/A self inbuf outbuf N/A N/A N/A N/A outbuf N/A N/A self indim N/A sigmoid inbuf N/A N/A outbuf N/A N/A self indim N/A 1 N/A sigmoid inbuf N/A _backwardImplementation N/A N/A self outerr inerr outbuf inbuf N/A N/A N/A inerr N/A N/A sigmoidPrime inbuf N/A outerr N/A N/A self indim N/A inerr N/A N/A sigmoidPrime inbuf N/A outerr N/A N/A self indim N/A N/A