def gen_net(structure, activations):
    net = []
    for i in range(1, len(structure)):
        layer = []
        for j in range(structure[i]):
            weights = gen_weights(structure[(i - 1)])
            layer.append(Neuron(weights, activations[0][(i - 1)], activations[1][(i - 1)]))
        net.append(layer)
    return net
def gen_net(structure, activations):
    net = []
    for i in range(1, len(structure)):
        layer = []
        for j in range(structure[i]):
            weights = gen_weights(structure[(i - 1)])
            layer.append(Neuron(weights, activations[0][(i - 1)], activations[1][(i - 1)]))
        net.append(layer)
    return net