DESlib icon indicating copy to clipboard operation
DESlib copied to clipboard

Questions relevant to KNN in the framework.

Open PitZhu-2002 opened this issue 1 year ago • 0 comments

Dear Developers: Deslib package is a really excellent framework which could be used by researchers and scientists and contributory to the community. But I have a few questions revelant to KNN in this framework when I complete my research project. Take "DESP(k = 7, random_state = 10).fit(X_dsel, y_dsel)" as an example: (1) Does the framework really find the 7 nearest neighbors in X_dsel for each query sample? (2) If I employ KNN classifier to select k nearest neighbors (i.e, X_knn, y_knn)in X_dsel of the query sample by myself of the framework, and then pass those k nearest neighbors in DES method realized by this framework (e.g., DESP(k = k).fit(X_knn, y_knn)). Compared to the traiditional method (i.e., (DESP(k = k).fit(X_dsel, y_dsel))), does those two writings find identical knn of the query sample ? Thank you, Best wishes!

PitZhu-2002 avatar Jan 15 '24 16:01 PitZhu-2002