コード例 #1
0
 def __init__(self, inmesh=None, hiddenmesh=None, outmesh=None, **args):
     if inmesh != None:
         args['dims'] = inmesh.dims
     SwipingNetwork.__init__(self, **args)
     if inmesh != None:
         self._buildBorderStructure(inmesh, hiddenmesh, outmesh)
         self.sortModules()
コード例 #2
0
ファイル: borderswiping.py プロジェクト: RaVbaker/pybrain
 def __init__(self, inmesh = None, hiddenmesh = None, outmesh = None, **args):
     if inmesh != None:
         args['dims'] = inmesh.dims
     SwipingNetwork.__init__(self, **args)
     if inmesh != None:
         self._buildBorderStructure(inmesh, hiddenmesh, outmesh)
         self.sortModules()
コード例 #3
0
ファイル: borderswiping.py プロジェクト: DanSGraham/code
 def __init__(self, inmesh = None, hiddenmesh = None, outmesh = None, **args):
     if not self.symmetricdirections:
         raise NotImplementedError("BorderSwipingNetworks are currently limited so direction-symmetric weights.")
     if inmesh != None:
         args['dims'] = inmesh.dims
     SwipingNetwork.__init__(self, **args)
     if inmesh != None:
         self._buildBorderStructure(inmesh, hiddenmesh, outmesh)
         self.sortModules()
コード例 #4
0
 def __init__(self, inmesh=None, hiddenmesh=None, outmesh=None, **args):
     if not self.symmetricdirections:
         raise NotImplementedError(
             "BorderSwipingNetworks are currently limited so direction-symmetric weights."
         )
     if inmesh != None:
         args['dims'] = inmesh.dims
     SwipingNetwork.__init__(self, **args)
     if inmesh != None:
         self._buildBorderStructure(inmesh, hiddenmesh, outmesh)
         self.sortModules()