Grade function codes removed as it is violation of Code of Conduct, please post only your output to expected output or the error you encounter. If mentor needs to see your code, they will ask you to send by personal DM
Vocabulary of labels looks like this: [None, ‘sport’, ‘business’, ‘politics’, ‘tech’, ‘entertainment’]
First ten labels: [‘tech’, ‘business’, ‘sport’, ‘sport’, ‘entertainment’, ‘politics’, ‘politics’, ‘sport’, ‘sport’, ‘entertainment’]
First ten label sequences: [4 2 1 1 5 3 3 1 1 5]
Expected Output:
Vocabulary of labels looks like this: [‘sport’, ‘business’, ‘politics’, ‘tech’, ‘entertainment’]
First ten labels: [‘tech’, ‘business’, ‘sport’, ‘sport’, ‘entertainment’, ‘politics’, ‘politics’, ‘sport’, ‘sport’, ‘entertainment’]
First ten label sequences: [3 1 0 0 4 2 2 0 0 4]
You should see that each encoded label corresponds to the index of its corresponding label in the vocabulary!|
can anyone tell what i am doing wrong?