NLP course 2 Week 2 Exercise 8, expected float, got float error

I’m getting strange error where the types the grader says don’t match, but they do. Has anyone else had an error like this?

Hi @Daniel_F85

I see there’s a bug in the test case. What actually should have went wrong is that the values did not match (test case checks for np.isclose(result, test_case["expected"]) but throws an exception

                    "expected": float,
                    "got": type(result),

which is just a bug in a test case. What it should have informed you is that the results do not match with the expected results.

I will submit this bug for fixing.

Thanks for understanding

Thank you for your prompt reply. It seems the autograder is unaffected by this issue, as I submitted my notebook and my function got graded as correct.