Minor improvement to application of PCA in supervised learning