Exemple #1
0
 def getDecoders(self):
     neurons = self._parent.nodes[0].neurons
     decoders = MU.zero(neurons * len(self._origins), self._dimensions)
     for i, o in enumerate(self._origins):
         MU.copyInto(o.decoders, decoders, i * neurons, i * o.dimensions,
                     neurons)
     return decoders
Exemple #2
0
 def getEncoders(self):
     neurons = self.nodes[0].neurons
     encoders = MU.zero(self.neurons, self.dimension)
     for i, n in enumerate(self.nodes):
         MU.copyInto(n.encoders, encoders, i * neurons, i * n.dimension,
                     neurons)
     return encoders
Exemple #3
0
 def getDecoders(self):
     neurons=self._parent.nodes[0].neurons
     decoders=MU.zero(neurons*len(self._origins),self._dimensions)
     for i,o in enumerate(self._origins):
         MU.copyInto(o.decoders,decoders,i*neurons,i*o.dimensions,neurons)       
     return decoders            
Exemple #4
0
 def getEncoders(self):  
     neurons=self.nodes[0].neurons
     encoders=MU.zero(self.neurons,self.dimension)
     for i,n in enumerate(self.nodes):
         MU.copyInto(n.encoders,encoders,i*neurons,i*n.dimension,neurons)       
     return encoders