Implement K-Means in NumPy or PyTorch

This is a recurring Apple ML Coding question for Machine Learning Engineer candidates (phone screen and onsite, on a HackerRank-style shared editor). You are asked to implement K-Means clustering from scratch in NumPy or PyTorch. The interviewer expects:

Check more interview questions and experiences about Apple

Please log in to view interview question details