C3W3_Assignment expected output of parse_data_from_file

Hi ,

Just started C3w3 assignment.

I noticed something not right in the expected output in the assignment. Where the Note book says :

Labels of last 5 examples should look like this:
[1, 1, 1, 1, 1]

by my code is producing :

Labels of last 5 examples should look like this:
[‘4’, ‘4’, ‘4’, ‘4’, ‘4’]

I checked the dataset and indeed the sentiment is 4 not 1. is there a change in the dataset ?

Am I doing something wrong ?

thanks

You missed this instruction from the writeup:

The labels are originally encoded as strings (‘0’ representing negative and ‘4’ representing positive). You need to change this so that the labels are integers and 0 is used for representing negative, while 1 should represent positive.