Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLocal minima and number of tries in metaMDS #154
Comments
|
I ended up setting both I tested this with settings |
Peter Minchin turned my attention to the danger of falling to a local minimum in
metaMDSiterations. We stop with convergence as soon as we find two minimum stress solutions. Sometimes this stops too soon, and ends up in a local minimum. Compare these two runs withdunedata:The first (and several other starts) will first find the local minimum of run 0 (stress 0.1192678) and stop, but the second example will find a better minimum of stress 0.1183186. I think most of these cases can be avoided if we require a minimum number of tries before checking for convergence.
I have implemented this in branch https://github.com/vegandevs/vegan/tree/metaMDS-try. I wanted to maintain backward compatibility and therefore I kept the old
trymaxargument and added a new argumenttrythat gives the minimum number of tries before signalling convergence. The first version keeps the old limittrymax = 20and set minimum totry = 6. I think both of these limits are too low and should be increased, but I don't know how much. They come from a time when computers were slower and we usedisoMDSwhich also is much slower than currentmonoMDS.