Пример #1
0
    def __init__(self, brain, inputs, neurons, position, activation="sigmoid"):
        FCLayer.__init__(self, brain=brain,
                         neurons=neurons, position=position,
                         activation=activation)

        self.weights = np.random.randn(inputs, neurons)
        self.biases = np.random.randn(1, neurons)
Пример #2
0
    def __init__(self, brain):
        FCLayer.__init__(self, brain=brain, neurons=0, position=1, activation="linear")

        self.brain = brain
        self.position = 1