Error in knnsearch when using Ionosphere dataset

2 次查看(过去 30 天)
Hi I am receiving the following error when trying to run the knnsearch function with the standard Ionosphere dataset. Could someone please help?
Error using ExhaustiveSearcher/setDistParameter (line 110) The Cov argument must be symmetric and positive definite.
Error in NeighborSearcher/set.DistParameter (line 71) this = setDistParameter(this, distPara);
Error in ExhaustiveSearcher (line 274) obj.DistParameter = nancov(X);
Error in createns (line 174) O = ExhaustiveSearcher(X,'distance', distMetric,...
Error in knnsearch (line 140) O=createns(X,args{:},'nsmethod', nsmethod,'bucketSize',bSize);
Error in MyPgm (line 37) [knn] = knnsearch(dataset, dataset, 'k', K, 'distance',distMeasure);
>>
Thanks in advance Deepa

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Classification 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by