Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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)
@alpizano

This comment has been minimized.

Copy link

@alpizano alpizano commented Apr 22, 2019

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?

@ziajek444

This comment has been minimized.

Copy link

@ziajek444 ziajek444 commented Aug 9, 2019

What type are x and y?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.