Hey, everyone! I hope you are all well/
I have implemented most of my answer cells and functions, but when I submit my assignment, the grader gives zero to all of my cells giving me the following error under all of them:
There was a problem compiling the code from your notebook. Details:
cannot assign to None (<unknown>, line 739)
This is very strange because I have already submitted my code in its earlier stage, and the grader has already given me an 80, total score for all of the completed sections. However, even now, it gives me 0 although I have not changed any of the cells.
I finished all the cells and the assignment, and this time when I submitted it, I got 137/140. However, I cannot find what is wrong with the only function that is not giving me a full score and decreasing 3 scores.
Which exercise gives result 7 out of 10?
1 Like
Thank you for your reply!
I get 7 out of 10 on compute_training_params
and the grader output is:
Expected:
{0: 0.348, 1: 0.391, 2: 0.261},
but got:
{2: 0.18231884057971015, 0: 0.24231884057971015, 1: 0.2753623188405797}.
Failed test case: Incorrect value for parameter n of feature bark_days of breed 1.
Expected:
30,
but got:
24.0.
Failed test case: Incorrect value for parameter p of feature bark_days of breed 1.
Expected:
0.4984,
but got:
0.6222.
Failed test case: Incorrect value for parameter sigma of feature height of breed 2.
Expected:
3.5175,
but got:
3.5746.
Failed test case: Incorrect value for parameter sigma of feature weight of breed 2.
Expected:
3.015,
but got:
3.0639.
Failed test case: Incorrect value for parameter n of feature bark_days of breed 2.
Expected:
30,
but got:
18.0.
Failed test case: Incorrect value for parameter p of feature bark_days of breed 2.
Expected:
0.2981,
but got:
0.4935.
Failed test case: Incorrect 'probs_dict' when using dataframe with 3 dogs of breed 0, 1 of breed 1 and 1 of breed 2.
Expected:
{0: 0.6, 1: 0.2, 2: 0.2},
but got:
{2: 125.8, 0: 167.2, 1: 190.0}.```
Did you use the given functions for retrieving the parameters?
estimate_gaussian_params, estimate_binomial_params and estimate_uniform_params?
Is did get 10 points although there was for me one failed test case as well
I will check this one and report back to you. Thank you again for your reply!