Square Machine Learning Engineer | October 2020
?
•Anonymous••Upvote
1
Downvote
Company: Square
Position: Machine Learning Engineer
Location: nan
Level: nan
Outcome: NA
How was the interview process? What was it like?
No
What technical questions were asked?
nan
What was one of your solutions?
Compute cosine similarity of each of the list in the matrix with input list which also represents target user's row in the matrix. Add Cosine scores with corresponding row indices to HashMap and sort in descending order of cosine scores. This would represent top users as row_index = user
Now iterate through top k keys(or row indices) in hash map and capture their column indices(only where value is 1 and should not clash with input user column indices) from matrix. Add it to new hash map of row(represents user) and column index(represents product type).
As a final step, Replace Column Index with product types by referencing product_code dictionary given in the question
Square
Machine Learning Engineer
There's so much more to Interview Query
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est
quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est