Exemplo n.º 1
0
 def createSegment(self, learningCells):
     """
 Create a new segment for this Cell. The new segment will initially connect to
 at most newSynapseCount synapses randomly selected from the set of cells that
 were in the learning state at t-1 (specified by the learningCells parameter).
 @param learningCells: the set of available learning cells to add to the segment.
 @return the segment that was just created.
 """
     newSegment = Segment(self.column.region.segActiveThreshold)
     newSegment.createSynapsesToLearningCells(learningCells)
     self.segments.append(newSegment)
     return newSegment
Exemplo n.º 2
0
 def createSegment(self, learningCells):
   """
   Create a new segment for this Cell. The new segment will initially connect to
   at most newSynapseCount synapses randomly selected from the set of cells that
   were in the learning state at t-1 (specified by the learningCells parameter).
   @param learningCells: the set of available learning cells to add to the segment.
   @return the segment that was just created.
   """
   newSegment = Segment(self.column.region.segActiveThreshold)
   newSegment.createSynapsesToLearningCells(learningCells)
   self.segments.append(newSegment)
   return newSegment