I am getting this warning message while executing the k means cluster algorithm ?

10 visualizzazioni (ultimi 30 giorni)
Warning: Failed to converge in 100 iterations.
> In kmeans/loopBody (line 479)
In internal.stats.parallel.smartForReduce (line 136)
In kmeans (line 343)
In sav (line 27)
  3 Commenti
MINO GEORGE
MINO GEORGE il 18 Giu 2021
The coding for k means algorithm is here
numberOfClusters = 7;
grayLevels = double(g(:));
[clusterIndexes, clusterCenters] = kmeans(grayLevels, numberOfClusters,...
'distance', 'sqEuclidean', ...
'Replicates', 2);
labeledImage = reshape(clusterIndexes, rows, columns);

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Statistics and Machine Learning Toolbox in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by