I am on excersise 4 and got the following error: “AssertionError: Wrong vaulues”. I am not sure if I put the embedding() correct. Did i do this right?
{moderator edit - solution code removed}
I am on excersise 4 and got the following error: “AssertionError: Wrong vaulues”. I am not sure if I put the embedding() correct. Did i do this right?
{moderator edit - solution code removed}
If the assertion fails, then it’s pretty good bet that there is something wrong with your code.
A few points here:
Think about what the “embedding matrix” represents or just look at the shape of it: the second dimension of it is an “embedding vector”, right? But you’re setting it to a scalar “index” value. That doesn’t seem correct to me. But this is with the disclaimer that I have not actually done this exercise myself.