the output are exactly the same as expected but test cases keep failing
1 Like
Therr are also hidden tests performed and it might be that your code doesnt pass those tests. I would check the code implementation if I were you again.
I have the exact same problem, same output, 9 tests passed, 3 failed. Same with # UNQ_C10 GRADED FUNCTION: calculate_perplexity, 2 tests passed, 2 failed, although the output is the expected one.