modified so supervised_and_unsupervised ONLY takes training and test images, not any other third category