C3W2 Error in Exercise 2: Label vectorizer


Received the above error even though the padding parameter is set to ‘post’. Can someone please help me figure it out?

Hi @N_Adhikari

Your output has 0s, whereas the expected output contains -1s. you can make sure that you explicitly set the padding value in your function. Try reviewing any preprocessing steps to confirm that vectorization is performed correctly before padding is applied.

Hope it helps! Feel free to ask if you need further assistance.

Thank you so much! Setting the padding value explicitly helped!