Module Expr Str Assign NameStore Str ImportFrom alias alias alias alias ImportFrom alias FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore IfExp NameLoad NameLoad NameLoad Assign NameStore Call NameLoad Str Assign NameStore Call NameLoad Num keyword Str Assign NameStore Call NameLoad Num keyword Str Assign NameStore Call NameLoad Num keyword Str Assign NameStore Call NameLoad Num keyword Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list If CompareEq NameLoad Str body Expr Call NameLoad Call NameLoad Str
N/A N/A 

Trying to build a cyclic network (should fail):

    >>> buildCyclicNetwork(False)
    Traceback (most recent call last):
        ...
    NetworkConstructionException: Loop in network graph.

If one connection is recurrent, it should work:

    >>> buildCyclicNetwork(True)
    <RecurrentNetwork 'cyc'>

 N/A __author__ Tom Schaul, tom@idsia.ch pybrain FeedForwardNetwork RecurrentNetwork LinearLayer FullConnection pybrain.tests runModuleTestSuite buildCyclicNetwork N/A N/A recurrent N/A N/A N/A  build a cyclic network with 4 modules

    :key recurrent: make one of the connections recurrent  N/A Network N/A recurrent RecurrentNetwork FeedForwardNetwork N/A N N/A Network cyc N/A a N/A LinearLayer 1 name a N/A b N/A LinearLayer 2 name b N/A c N/A LinearLayer 3 name c N/A d N/A LinearLayer 4 name d N/A N/A N/A N addInputModule a N/A N/A N/A N addModule b N/A N/A N/A N addModule d N/A N/A N/A N addOutputModule c N/A N/A N/A N addConnection N/A FullConnection a b N/A N/A N/A N addConnection N/A FullConnection b c N/A N/A N/A N addConnection N/A FullConnection c d N/A recurrent N/A N/A N/A N/A N addRecurrentConnection N/A FullConnection d a N/A N/A N/A N/A N addConnection N/A FullConnection d a N/A N/A N/A N sortModules N/A N N/A N/A N/A __name__ __main__ N/A N/A N/A runModuleTestSuite N/A __import__ __main__