示例#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
 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