Could someone help in the compute_training_params? I’m getting the following error
The code works while executing in the Notebook with a difference in values for breeds 0 and 1
Failed test case: Incorrect ‘probs_dict’ when using the whole ‘df_all_breeds’ dataframe.
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}.