speed difference between knnclassify and fitcknn
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi All,
I have been using knnclassify in my code
knnclassify(Test_Input, Train_Input, Train_Target,10,'euclidean','nearest')
and have decided to change it to use fitcknn due to the depreciation of knnclassify.
mdl = fitcknn(Train_Input,Train_Target,'NumNeighbors',10,'Distance','euclidean')
predict(mdl,Test_Input)
The fitcknn takes several times longer to solve.
I'm wondering if this is a known thing, and why? If not what is the best way I can debug, or sort out what is happening with my code?
Thank you.
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Axes Appearance에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!