Module Assign NameStore Str Import alias ImportFrom alias alias alias alias ImportFrom alias alias alias alias ImportFrom alias ClassDef bases NameLoad body Expr Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore NameLoad FunctionDef arguments args NameParam defaults kwarg body Expr Str If CompareIn Str NameLoad body Assign AttributeStore NameLoad attr SubscriptLoad NameLoad Index Str Assign SubscriptStore NameLoad Index Str TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assert CompareGt AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If UnaryOpNot AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad BinOpMult BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Assign NameStore Lambda arguments args defaults Call AttributeLoad Call NameLoad AttributeLoad NameLoad attr Num AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad NameLoad TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str keyword NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr TupleLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Num Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad For NameStore AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Num For NameStore Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad body If Call NameLoad AttributeLoad NameLoad attr NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword BinOpMult AttributeLoad NameLoad attr NameLoad keyword BinOpMult AttributeLoad NameLoad attr BinOpAdd NameLoad Num AugAssignAdd NameStore Num If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareGt AttributeLoad NameLoad attr Num body Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Str Expr Call AttributeLoad NameLoad attr NameLoad If CompareNotIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If UnaryOpNot CompareIn Str AttributeLoad NameLoad attr body Assign SubscriptStore AttributeLoad NameLoad attr Index Str Call NameLoad BinOpMult AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body For NameStore Call AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr AugAssignAdd NameStore BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body AugAssignAdd NameStore Str If CompareNotEq AttributeLoad NameLoad attr NameLoad body AugAssignAdd NameStore BinOpAdd Str AttributeLoad AttributeLoad NameLoad attr attr If CompareGt AttributeLoad NameLoad attr Num body AugAssignAdd NameStore BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr If CompareGt AttributeLoad NameLoad attr Num body AugAssignAdd NameStore BinOpAdd Str Call NameLoad AttributeLoad NameLoad attr AugAssignAdd NameStore BinOpAdd Str Call NameLoad Call NameLoad BinOpAdd BinOpMult Call AttributeLoad NameLoad attr Num Num Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Return Call AttributeLoad NameLoad attr orelse Import alias For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index Str NameLoad Delete SubscriptDel NameLoad Index Str For NameStore AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad Return Call NameLoad keyword NameLoad NameLoad decorator_list decorator_list
N/A N/A __author__ Tom Schaul, tom@idsia.ch N/A random pybrain SharedFullConnection MotherConnection MDLSTMLayer IdentityConnection pybrain ModuleMesh LinearLayer TanhLayer SigmoidLayer pybrain.structure.networks BorderSwipingNetwork CaptureGameNetwork N/A BorderSwipingNetwork N/A N/A  a custom-made swiping network for the Capture-Game.
    As an input it takes an array of values corresponding to the occupation state on
    the board positions (black, white, empty) -  the output produced is an array
    of values for positions that correspond to the preference of moving there.  N/A size 5 N/A insize 2 N/A hsize 5 N/A predefined None N/A directlink False N/A componentclass TanhLayer N/A outcomponentclass SigmoidLayer N/A peepholes False N/A outputs 1 N/A comboutputs 0 N/A combinputs 0 N/A rebuilt False __init__ N/A N/A self N/A args N/A N/A 
        :key clusterssize: the side of the square for clustering: if > 1, an extra layer for cluster-construction is added
        :key clusteroverlap: by how much should the cluster overlap (default = 0)
        :key directlink: should connections from the input directly to the bottleneck be included?
         N/A N/A size args N/A N/A N/A self size N/A args N/A size N/A N/A args N/A dims N/A N/A self size N/A self size N/A N/A N/A self size 1 Minimal board size is 2. N/A N/A N/A BorderSwipingNetwork __init__ self args N/A N/A N/A self rebuilt N/A N/A N/A N/A self _buildCaptureNetwork N/A N/A N/A self sortModules N/A N/A self rebuilt True N/A N/A N/A self setArgs rebuilt True N/A _buildCaptureNetwork N/A N/A self N/A N/A N/A inmod N/A LinearLayer N/A N/A N/A self insize N/A self size N/A self size name input N/A inmesh N/A N/A ModuleMesh viewOnFlatLayer inmod N/A N/A self size N/A self size inmesh N/A outmod N/A N/A self outcomponentclass N/A N/A N/A self outputs N/A self size N/A self size name output N/A outmesh N/A N/A ModuleMesh viewOnFlatLayer outmod N/A N/A self size N/A self size outmesh N/A N/A N/A self componentclass MDLSTMLayer N/A N/A c N/A N/A N/A N/A N/A N/A N/A MDLSTMLayer N/A self hsize 2 N/A self peepholes meatSlice N/A hiddenmesh N/A ModuleMesh c N/A N/A self size N/A self size 4 hidden baserename True N/A N/A hiddenmesh N/A N/A ModuleMesh constructWithLayers N/A self componentclass N/A self hsize N/A N/A self size N/A self size 4 hidden N/A N/A N/A self _buildBorderStructure inmesh hiddenmesh outmesh N/A m N/A self modules N/A N/A N/A isinstance m MDLSTMLayer N/A N/A tmp N/A N/A m stateSlice N/A index 0 N/A c N/A list N/A N/A self connections N/A m N/A N/A N/A isinstance N/A c outmod MDLSTMLayer N/A N/A N/A N/A self addConnection N/A IdentityConnection tmp N/A N/A N/A c outmod stateSlice outSliceFrom N/A N/A self hsize index outSliceTo N/A N/A self hsize N/A index 1 N/A index 1 N/A N/A self directlink N/A N/A N/A N/A self _buildDirectLink inmesh outmesh N/A N/A N/A self combinputs 0 N/A N/A cin N/A LinearLayer N/A self combinputs name globalin N/A N/A N/A self addInputModule cin N/A N/A globalinconn N/A self predefined N/A N/A N/A N/A self predefined N/A globalinconn N/A MotherConnection N/A N/A cin componentOutdim N/A hiddenmesh componentIndim globalinconn N/A N/A N/A self _linkToAll cin hiddenmesh N/A N/A self predefined N/A globalinconn N/A _buildDirectLink N/A N/A self inmesh outmesh N/A N/A N/A N/A N/A directconn N/A self predefined N/A N/A N/A N/A self predefined N/A directconn N/A MotherConnection N/A N/A inmesh componentOutdim N/A outmesh componentIndim inconn N/A unit N/A N/A self _iterateOverUnits N/A N/A N/A N/A self addConnection N/A SharedFullConnection N/A N/A self predefined N/A directconn N/A inmesh N/A unit N/A outmesh N/A unit N/A _linkToAll N/A N/A self inmod mesh conn N/A N/A N/A unit N/A N/A self _iterateOverUnits N/A N/A N/A N/A self addConnection N/A SharedFullConnection conn inmod N/A mesh N/A unit N/A _generateName N/A N/A self N/A N/A N/A  generate a quasi unique name, using construction parameters  N/A name N/A N/A self __class__ __name__ N/A name N/A -s N/A str N/A self size N/A name N/A -h N/A str N/A self hsize N/A N/A self directlink N/A N/A name -direct N/A N/A N/A self componentclass TanhLayer N/A N/A name N/A - N/A N/A self componentclass __name__ N/A N/A N/A self outputs 1 N/A N/A name N/A -o N/A str N/A self outputs N/A N/A N/A self combinputs 0 N/A N/A name N/A -combin N/A str N/A self combinputs N/A name N/A -- N/A str N/A int N/A N/A N/A N/A random random 900000.0 100000.0 N/A name N/A resizedTo N/A N/A self newsize N/A N/A N/A  Produce a copy of the network, with a different size but with the same (shared) weights,
        extrapolating on the borders as necessary.  N/A N/A newsize N/A self size N/A N/A N/A N/A self copy N/A N/A copy N/A mc N/A self motherconnections N/A N/A N/A mc owner None N/A cdict N/A N/A copy deepcopy N/A self predefined N/A args N/A N/A N/A self argdict copy N/A N/A args N/A size newsize N/A N/A args N/A rebuilt N/A mc N/A self motherconnections N/A N/A N/A mc owner self N/A N/A CaptureGameNetwork predefined cdict args N/A N/A