-
-
Save jamesloyys/796ad704748174da94e313097042e04c to your computer and use it in GitHub Desktop.
This file contains 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
class NeuralNetwork: | |
def __init__(self, x, y): | |
self.input = x | |
self.weights1 = np.random.rand(self.input.shape[1],4) | |
self.weights2 = np.random.rand(4,1) | |
self.y = y | |
self.output = np.zeros(y.shape) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Was this the same networks in the guide you used? Because the jpg image near the top had 3 input neurons, 4 hidden and 1 output neuron?