Added parameter to evaluate number of LDA or PCA in test. Removed duplicated logger.