Add some comments and remove useless setNoCache for KNN.