C3_W1_Assignment exercise number 6

I’ve spent a whole day trying to figure out my error and have came to a dead end. I think it must be python syntax and how I’m accessing the data in the ‘params_dict’ that is causing the output to be the following:

Example dog has breed 1 and features: height = 28.63, weight = 21.56, bark_days = 13.00, ear_head_ratio = 0.27

Probability of these features if dog is classified as breed 0: [0. 0. 0. 0.]
Probability of these features if dog is classified as breed 1: [0. 0. 0. 0.]
Probability of these features if dog is classified as breed 2: [0. 0. 0. 0.]

Can someone let me know what I’m doing wrong as I can’t see what the problem is with my code. I won’t post my code here, even though it may be completely wrong.

Nevermind I’ve solved the problem now.

I eventually discovered that I had used a local loop variable name in the for loop that was different to X, that caused my issue. So when I pulled X from the zip function, I called it another name which messed with the output and displayed a list of 4 zeros. No idea how to explain what actually happened, but it is working now and giving the correct output.

It’s good you were able to resolve the issue.