Hi, The model seems running but the loss is exploding after few iterations. Here are the outputs:
single_example = turiasaurus
single_example_chars [‘t’, ‘u’, ‘r’, ‘i’, ‘a’, ‘s’, ‘a’, ‘u’, ‘r’, ‘u’, ‘s’]
single_example_ix [20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19]
X = [None, 20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19]
Y = [20, 21, 18, 9, 1, 19, 1, 21, 18, 21, 19, 0]
…
curr loss= 58.12372726116307
curr loss= 50.29752492287171
curr loss= 151.48395730840713
curr loss= 1566.987862638166
curr loss= 4024.7637708785633
curr loss= inf
curr loss= inf
The call to the optimizer seems OK:
curr_loss, gradients, a_prev = optimize(X, Y, a_prev, parameters, learning_rate = 0.01)
Can anyone help me on this topic ?
many thanks in advance
Marc