Completed lda and qda, which should be cached.