C3_W1 grading problem

The create_model step fails with the error of

Make sure all arrays contain the same number of samples

and the grades for all cells become 0, I followed the other post to upgrade the notebook, but this issue still exist.

hi @Qiang_Yao

See if the below thread helps you

mostly the reshuffle and how batched the vocabulary, must have caused that incompatible cardinality for exercise 1

  1. I don’t have the line to tensor cell (is the whole notebook updated?)
  2. which dataset should I shuffle?

which assignment are you working on, can you share the assignment name

Assignment 1: Sentiment with Deep Neural Networks

ok this is practice assignment, can you DM me the code screenshot for the exercise 1 you failed. Click on my name and then message.

This is the screen shot of my first grade cell and all the tests passed, but I still don’t even get points on this cell, does anyone have any ideas?


check if in your max_len grade function, if you have used training_X and validation_X.

if you used train_X then that would be global variable for that grade cell, perhaps that’s why difference in your x and y cardinality.

your build vocabulary and create model codes are correct