Skip to content

Instantly share code, notes, and snippets.

@shangeth
Last active December 27, 2018 06:04
Show Gist options
  • Save shangeth/42426544ed520e4f7351d9ee5e1e02d6 to your computer and use it in GitHub Desktop.
Save shangeth/42426544ed520e4f7351d9ee5e1e02d6 to your computer and use it in GitHub Desktop.
X = np.random.rand(3,3)
print('Input X = \n',X)
w = np.random.normal(loc=0.0, scale=0.01, size=(3,1))
print('\nInitialized weight w = \n',w)
bias = np.ones((3,1))
print('\nInitialized bias b = \n',bias)
z = np.dot(X, w) + bias z
print(z)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment