link to the classroom: https://www.coursera.org/learn/data-pipelines-tensorflow/home/week/1
The grader fails this assignment even though code executes correctly in the coursera jupyter notebook. (I am now exploring all cells, and not just the one it reports an error for.)
My cell 2 gives an output that is not 100% the same as the expected output. Does anyone know if the output below is acceptable or is my code incorrect?
my output:
expected output:
Many thanks in advance!
@Alireza_Saei
I don’t have access to the course assignment of this course. can you address learner’s query.
I am suspecting he has used numpy function to tf datatype, but I cannot be sure as I can’t access the course.
Regards
DP
Hi @Cormac_Garvey
Thanks for mentioning me @Deepti_Prasad .
The issue with your code is that the output is not exactly the same as the expected output, which is why the grader is failing. The function you mentioned returns a tuple containing feature
and one_hot
but the cell only prints one_hot
. However, in your code, you are printing the whole tuple returned by function.
Hope it helps! Feel free to ask if you need further assistance.
does this means he might be using a global variable instead of local variables (arguments)?
Yes, I think the issue lies in the scope or how the return value is handled. If they’d like, they can share their code in private messages, and I’d be happy to help them debug it specifically.
1 Like