Hi, I’m trying to implement the code for the frechet distance function but when I test it, it says AssertionError.

The code I wrote is this:

*{moderator edit - solution code removed}*

Does anybody know where’s the error?

Hi, I’m trying to implement the code for the frechet distance function but when I test it, it says AssertionError.

The code I wrote is this:

*{moderator edit - solution code removed}*

Does anybody know where’s the error?

Hi, @g_alzorriz.

It looks like you’re missing couple things in your formula.

Firstly, the norm of the mean difference must be squared. Secondly, you’re missing coefficient 2 in front of matrix_sqrt(sigma_x @ sigma_y)). Please refer to the equation above UNQ_C2. Please tag me if you’re still unable to complete the cell.

solved! Thank you