Skip to content

Instantly share code, notes, and snippets.

@jamesloyys
Last active September 20, 2020 09:17
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save jamesloyys/796ad704748174da94e313097042e04c to your computer and use it in GitHub Desktop.
Save jamesloyys/796ad704748174da94e313097042e04c to your computer and use it in GitHub Desktop.
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)
@ziajek444
Copy link

What type are x and y?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment