I donât know for sure, but I guess the final test cases may not be the same as the unit test cases. Itâs better to get all the unit tests right before submitting - even this may not guarantee a 100% score.
The unit tests you passed are designed to check specific cases, but the final grading is based on a separate set of test cases used by the grader. Your code needs to handle a wider range of inputs and edge cases to pass all the grading tests. Try reviewing your implementation to ensure it works correctly for all possible scenarios, not just the provided unit tests.
Hope it helps! Feel free to ask if you need further assistance.
There is no guarantee that the grader gives partial credit. If you fail some of the tests in the notebook, that means there is something wrong with each one of those functions.
If you get 0 for everything, one cause can be that there is some kind of syntax error or other exception when the grader runs your notebook. In that case, it doesnât even get as far as being able to run your code, so you get 0 for everything. Click âShow grader outputâ and usually you will be able to tell that is the cause. This could be something like referencing global variables in your functions that are not present in the grader context.
In general, there is no point in submitting to the grader until you pass the test cases completely in the notebook. But as Alireza points out, even passing all the tests in the notebook is not a guarantee of success from the grader, because it may use different test cases.
Hello the â./data/shakespeare.txtâ text is empty so the expected result is not matched as output of the porcess_data function is empty list. I manually downloaded the file and saw it doesnt have any content. Can you please help me here? >THank you