A machine learning notebook that classifies seven varieties of dry beans from measurements of their size and shape. Every model is scored with 5-fold cross-validation over all 2,900 beans.

  • k-nearest neighbours: 66%
  • Decision tree: 89%
  • Support vector classifier: 91%
  • Voting ensemble of bagged KNN, SVC and decision trees: 91.4%, the final model
  • It gets every Bombay bean right; its most common mistake is confusing Sira with Dermason, two similar-looking beans

Role SoloBuilt with Python, scikit-learn, pandas, JupyterMade for CMP3751M Machine Learning, University of Lincoln

The source code is being tidied up before it goes public.


Confusion matrix of the final model

← All projects