An issue in practice lab

Hi everyone,
I have a problem with this unknown error. However, my result is true!
Can anyone say how to solve this problem?

Hi @ali_azmoudeh,

The unit tests are failing at the step where it is making sure that entropy is 0 with an array of ones. Re-read the notes in section 4.1 about how your implementation should work, in particular the note about what to do when p_1 is 0 or 1.

It might also be helpful to look at the code for compute_entropy_test to see exactly what it is testing. You can do this by choosing “Open” from the “File” menu, and then opening

Finally, if you are still stuck, you can click on the green “Click for hints” link in the practice lab

Thanks for your suggestions.