예제 #1
0
    def __init__(self, units):
        """
            Build the Layer

            @author     Thiago F Pappacena
            @param      integer     units   The number of units in this layer
        """
        Layer.__init__(self, [OutputNeuron() for i in range(units)])
예제 #2
0
    def __init__(self, units, minValue = 0.0, maxValue = 1.0):
        """
            Build the Layer

            @author     Thiago F Pappacena
            @param      integer     units   The number of units in this layer
            @param      float   minValue    The minimum output for this neuron
            @param      float   maxValue    The maximum output for this neuron
        """
        Layer.__init__(self, [SigmoidInputNeuron(minValue = minValue, maxValue = maxValue) for i in range(units)])
        self.minValue = minValue
        self.maxValue = maxValue