supervisedPCA-Python Original code was meant as an addition for scikit-learn 0.16, but it can also be used independently.