Taro Logo
1

Numpy vectorization exercises for interviews (ML coding)

Profile picture
Senior Software Engineer at Unemployed22 days ago

Hi,

Does anybody know of a good resource with numpy vectorization exercises? Something like leetcode but for numpy vectorization. The reason why I'm asking about this is because I had several companies asking these sort of questions in the coding interviews. You are given a math formula, and you have to rewrite it in numpy/pytorch/tensorflow vectorized form, so that it is computationally efficient. I need basically some exercises to practise broadcasting, converting operations to matmul, masking, and other tensor tricks.

I appreciate your help in advance.

27
2

Discussion

(2 comments)
  • 0
    Profile picture
    Supportive Tarodactyl
    Taro Community
    22 days ago

    Hi, I came across this website Deep ML, it seems to still be a work in progress and I think they're aiming to eventually become the "LeetCode for MLEs". I am not sure about the quality of questions and answers, if you check it out please share some feedback here. Hopefully this helps. Good luck with your prep!

    https://www.deep-ml.com/collections

    • 0
      Profile picture
      Senior Software Engineer [OP]
      Unemployed
      22 days ago

      Thanks for sharing this but I do not see verctorization exercises there :(