This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from numpy import exp, array, random, dot, reshape | |
from autograd import grad | |
class NeuronLayer(): | |
def __init__(self, neuron_n, inputs_n): | |
self.weights = 2 * random.random((inputs_n, neuron_n)) - 1 | |
class NeuralNetwork(): | |
def __init__(self, layer1, layer2): | |
self.layer1 = layer1 |
NewerOlder