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)
def __init__(self, brain): FCLayer.__init__(self, brain=brain, neurons=0, position=1, activation="linear") self.brain = brain self.position = 1