from forward import rnn_forward
import numpy as np

np.random.seed(1)
x = np.random.randn(3,10,4)
a0 = np.random.randn(5,10)
Waa = np.random.randn(5,5)
Wax = np.random.randn(5,3)
Wya = np.random.randn(2,5)
ba = np.random.randn(5,1)
by = np.random.randn(2,1)
parameters = {"Waa": Waa, "Wax": Wax, "Wya": Wya, "ba": ba, "by": by}

a, y_pred, caches = rnn_forward(x, a0, parameters)
print("a[4][1] = ", a[4][1])
print("a.shape = ", a.shape)
print("y_pred[1][3] =", y_pred[1][3])
print("y_pred.shape = ", y_pred.shape)
print("caches[1][1][3] =", caches[1][1][3])
print("len(caches) = ", len(caches))
966b6013df8b26e460b03c3437a419213552c7e6
<mask token>

<mask token>
np.random.seed(1)
<mask token>
print('a[4][1] = ', a[4][1])
print('a.shape = ', a.shape)
print('y_pred[1][3] =', y_pred[1][3])
print('y_pred.shape = ', y_pred.shape)
print('caches[1][1][3] =', caches[1][1][3])
print('len(caches) = ', len(caches))

<mask token>
np.random.seed(1)
x = np.random.randn(3, 10, 4)
a0 = np.random.randn(5, 10)
Waa = np.random.randn(5, 5)
Wax = np.random.randn(5, 3)
Wya = np.random.randn(2, 5)
ba = np.random.randn(5, 1)
by = np.random.randn(2, 1)
parameters = {'Waa': Waa, 'Wax': Wax, 'Wya': Wya, 'ba': ba, 'by': by}
a, y_pred, caches = rnn_forward(x, a0, parameters)
print('a[4][1] = ', a[4][1])
print('a.shape = ', a.shape)
print('y_pred[1][3] =', y_pred[1][3])
print('y_pred.shape = ', y_pred.shape)
print('caches[1][1][3] =', caches[1][1][3])
print('len(caches) = ', len(caches))

from forward import rnn_forward
import numpy as np
np.random.seed(1)
x = np.random.randn(3, 10, 4)
a0 = np.random.randn(5, 10)
Waa = np.random.randn(5, 5)
Wax = np.random.randn(5, 3)
Wya = np.random.randn(2, 5)
ba = np.random.randn(5, 1)
by = np.random.randn(2, 1)
parameters = {'Waa': Waa, 'Wax': Wax, 'Wya': Wya, 'ba': ba, 'by': by}
a, y_pred, caches = rnn_forward(x, a0, parameters)
print('a[4][1] = ', a[4][1])
print('a.shape = ', a.shape)
print('y_pred[1][3] =', y_pred[1][3])
print('y_pred.shape = ', y_pred.shape)
print('caches[1][1][3] =', caches[1][1][3])
print('len(caches) = ', len(caches))

from forward import rnn_forward
import numpy as np

np.random.seed(1)
x = np.random.randn(3,10,4)
a0 = np.random.randn(5,10)
Waa = np.random.randn(5,5)
Wax = np.random.randn(5,3)
Wya = np.random.randn(2,5)
ba = np.random.randn(5,1)
by = np.random.randn(2,1)
parameters = {"Waa": Waa, "Wax": Wax, "Wya": Wya, "ba": ba, "by": by}

a, y_pred, caches = rnn_forward(x, a0, parameters)
print("a[4][1] = ", a[4][1])
print("a.shape = ", a.shape)
print("y_pred[1][3] =", y_pred[1][3])
print("y_pred.shape = ", y_pred.shape)
print("caches[1][1][3] =", caches[1][1][3])
print("len(caches) = ", len(caches))