Hello!
I am trying to get through the assignment for week 4 Course 1. In the first exercise I keep getting the error:
NameError Traceback (most recent call last)
in
4 # getting the training set:
5 X_train, Y_train = get_matrices(
----> 6 en_fr_train, fr_embeddings_subset, en_embeddings_subset)
in get_matrices(en_fr, french_vecs, english_vecs)
43
44 # add the french embedding to the list
—> 45 Y_1.append(fr_vec)
46
47 # stack the vectors of X_l into a matrix X
NameError: name ‘Y_1’ is not defined
Even though clearly Y_1 is defined at the start of the function as Y_1 = list(). Does anyone have any ideas as to why I’m getting this error?
All the best,
Sunny