fixed training-pca for case of a single output