Skip to content

Instantly share code, notes, and snippets.

@mdhasanai
Last active November 11, 2018 07:48
Show Gist options
  • Save mdhasanai/6fbf95ae217aa5f069c6459a02a7de8d to your computer and use it in GitHub Desktop.
Save mdhasanai/6fbf95ae217aa5f069c6459a02a7de8d to your computer and use it in GitHub Desktop.
import numpy as np
def initialization():
# ইউনপুট ভেক্টর
X = np.array([.10,.30,.50]).reshape(3,1)
# ওয়েট ম্যাট্রিক্স
W1 = np.array([
[0.15,0.20,0.25],
[0.30,0.14,0.34],
[0.50,0.55,0.45]
])
# ওয়েট ম্যাট্রিক্স
W2 = np.array([
[0.20,0.50,0.30],
[0.70,0.40,0.90]
])
# bias ভেক্টর
b1 = np.array([.25,.25,.25]).reshape(3,1)
# bias ভেক্টর
b2 = np.array([.12,.12]).reshape(2,1)
# আউটপুট ভেক্টর
Y = np.array([0.88,0.12]).reshape(2,1)
return X, Y, W1, W2, b1, b2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment