예제 #1
0
    def __init__(self, Neurons):
        Layer.__init__(self, Neurons, False, None)

        # Total number of neurons
        self.numberOfNeurons = Neurons

        # Default value
        self.bias = 1.0
예제 #2
0
파일: BiasLayer.py 프로젝트: kelvict/spiral
 def __init__ (self, Neurons):
     Layer.__init__ (self, Neurons, False, None)
     
     # Total number of neurons
     self.numberOfNeurons = Neurons
     
     # Default value
     self.bias = 1.0
예제 #3
0
 def __init__ (self, Neurons, AddBias=False, Name=None):
     Layer.__init__ (self, Neurons, AddBias, Name)
     
     # Has a bias layer?
     if AddBias:
         self.hasBiasLayer = True
     else:
         self.hasBiasLayer = False
     
     # Bias layer
     if self.hasBiasLayer:
         self.biasLayer = BiasLayer (self.numberOfNeurons)
     else:
         self.biasLayer = None