Distance funtion of knn classifier

조회 수: 2 (최근 30일)
Elena Casiraghi
Elena Casiraghi 2020년 4월 4일
Dear,none
I used Bayesian Optimization to choose the best parameters for a knn classifier.
After optimizing I got a knn with JACCARD distance and INVERSE distance weights, and no standardization.
I suppose this means that the nearest points are those that are the most distant (when using the jaccard).
Is anyone able to tell me how may I reproduce the INVERSE jaccard (with no standardization) by using the KDTreeSearcher or the ExhaustiveSearcher??
In other words, I would like to find, for each point in a test set, all the points that are the nearest, according to the distance function used by the optimized knn classifier.
THANKS a lot for any help!

답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by