Can you share your lab ID with me ? In the assignment, when you click the top right “Help” button, a panel will open and your lab ID will be shown at the bottom.
I shall take a look.
When you reply back, kindly tag me in the post so that I’m notified.
I see the difference was the use of set. I did the same via other means. I can’t still really understand the error message with " Expected: 9165, but got: 9165". Could you please explain it?
Because the below is a len and it should be just an integer, rigth?
But I’ll write to whomever get a similar issue: the output (“Expected 9165, but got 9615”) is not informative, there is probably another error in the code. At first glance I thought it’s a type related issue (it’s not, both 9615 are integers).
For the team: it’ll be helpful to get more informative feedback. I spent a lot of time thinking it’s some bug, as an actual bug popped up in the last test of this assignment (the test looked for a key ‘:D’, but word_list has all its keys processed, thus the key should be ‘:d’; I’m still failing with this test, still don’t know if it’s another bug or a mistake I’ve made).
I have the same issue, the unittests fail, and when I submit my solution if fails in ‘Train naive bayes’ tests (0/10).
Not sure what is the problem in my solution…
This is a very old thread and Mubsi is a pretty busy guy. Note that only the course staff have the “superpower” to look at someone else’s notebook directly. For the mentors, we need to take a different route. Please check your DMs for a message from me about how to proceed.