Qube·Data Scientist·Take-home Assignment
May 2026
Qube gave me a take-home for a Data Scientist role, basically a leaf classification task with three numeric features and an unlabeled test set to predict on. The whole thing had to be done in a Jupyter notebook, which was fine, but the KNN-from-scratch requirement caught me a bit off guard.
- Given a labeled dataset with three numeric features and a three-class target, implement a K-nearest neighbors classifier from scratch (no ML libraries for the prediction logic), tune the value of k, and use the final model to generate predictions on an unlabeled dataset.
“The 'from scratch' part is where I spent most of my time.”