Wk1 Dino Island model function Y label

I got the model to work and pass all tests with how I set Y, but I’m not sure why it works or what exactly we are doing with Y here. Is this just a way to initialize the first Y? I got chastised for posting code, so can someone please dm me so I can share how I set the value of Y and discuss why it works. Thank you

You are building a character based language model. The model predicts the next character, given the current character as input.

With training done on each dinosaur name, the model is expected to generate a dinosaur like name given the seed character. You can see that snippet covered in if j % 2000 == 0 section of the model function.