ML_course icon indicating copy to clipboard operation
ML_course copied to clipboard

Update lab 10 solutions

Open Antoine-Bergerault opened this issue 1 year ago • 0 comments

In the lab 10 there is one function that is the perfect opportunity to use np.einsum, a method that turns out to be very useful in practice. It makes it easier to deal with linear operators with tensors (with shapes being like (N, C, H, W)) by removing the need of reshaping and being more efficient (less operations and with some frameworks easier parallelization on multiple devices).

So I thought it would be great to update the solution for build_distance_matrix.

Antoine-Bergerault avatar Dec 01 '23 07:12 Antoine-Bergerault