Hi Team,
I am getting error in the ‘prepare the data’ section of the C3W1_Practice_Assignment: Sentiment with Deep Neural Networks. All my previous tests are passes. Please help with the error.
Hi Team,
I am getting error in the ‘prepare the data’ section of the C3W1_Practice_Assignment: Sentiment with Deep Neural Networks. All my previous tests are passes. Please help with the error.
I’m not familiar with the details of that assignment (yet anyway), but that error typically means that you have accidentally used parens when you meant to use square brackets to index a string, array or list. For example:
name = "Fred Flintstone"
lastchar = name(-1)
When you really meant to write:
lastchar = name[-1]
If that suggestion doesn’t shed any light, the next step would be to show the full exception trace so that we can see the actual line in your code that triggers the error.
Also share screenshot of the build your vocabulary unit test result, did you pass the test?