I have a question please, concerning isomap on R
, I use vegan
package with a square matrix of distance : isomap(Dist, k=2)
I still have this error:
Error in isomapdist(Dist); data arre fragmented.
I did not understand what that means ?
I have a question please, concerning isomap on R
, I use vegan
package with a square matrix of distance : isomap(Dist, k=2)
I still have this error:
Error in isomapdist(Dist); data arre fragmented.
I did not understand what that means ?
Isomap will compute the distance between points using a path between points using only k-nearest neighbors - in your case, three nearest neighbors. If your data consists of disconnected components, there may not be any path between points using only k-th nearest neighbors. Depending on what you are trying to accomplish, it may be good enough to break up your data into connected clusters and run isomap on each cluster.
I hope that this helps.
Use parameter epsilon
instead of k
, and tune it to a good value in order to succeed.
library(vegan)
iso <- isomap(d, ndim=1, epsilon=0.3)