Generating new text characters

Hi! I’m taking Course 5, Sequence Models, from the Deep Learning Specialization.

Currently, I’m working on the Dinosaur Island Character Programming Assignment in Module 1.

I don´t understand what is i0 in the first cell inside ix_to_char?

Isn’t it x1? Or is it the first character associated with 0, which is "\n"?

I would really appreciate some comments about it.

1 Like

I agree that’s a mistake in the image. I think you are correct that they mean x^{<1>} there. I will file a bug about that.

Although maybe you could argue they are being a bit careless there and eliding the meaning of the index versus the “one hot” representation of the index. The x^{} values are one hot vectors. The argument to ix_to_char is not a one hot vector, but a scalar index value.

1 Like

Dear @noreli,

Good catch.


Keep Learning AI with DeepLearning.AI - Girijesh

About xt inside ix_to_char, I understood that xt denotes the cell associated with the character. Yes, the notation is quite confusing, but your comments helped me a lot. Thank you so much.

1 Like