-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add FA2 option to stop after N iterations ? #514
Comments
Rather than an option, the following method will probably be implemented: s.runForceAtlas2Iterations(n); |
An alternative implementation is available in: Setting |
quasi-optimal layout being defined by : // Auto stop.
// The greater the ratio nb nodes / nb edges,
// the greater the number of iterations needed to converge.
if (W.settings.autoStop) {
W.converged = (
W.iterations > W.maxIterations ||
alldistance / W.nodesLength < W.avgDistanceThreshold
);
} For people doing Visual Network Analysis, this autostop feature might represents a problematic bias. |
Hi, |
@RouxRC good point for the configurable settings, I'll add them. @paulgirard The underlying problem is the inability to compute a "good number of iterations": too few the layout is not readable, too large you lose computation time. My approach is to stop the layout when nodes move too little, while keeping a tolerance to local minima. In a methodological point of view, the "stop" decision taken arbitrarily by a human is more problematic than having a public algorithm taking that decision, because such algorithm can be criticized, measured and improved, while the human decision is a black box called "expertise". |
Well. Yes the problem is the inability to compute a "good number of iterations". Thus he chose not to add any autostop method in the paper about ForceAtlas published in PlosOne. You probably know that since you are a co-author. And yes, I do confirm that it's not a good idea to try to do that with ForceAtlas when you want to render any network. Now, if you think that for Linkurious' clients, it's a good idea to do it, that's completely fine with me but some sigma.js users actually use it for science, in which case that 's highly insufficient. Finally please don't try to bullshit me about blackboxing. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
It would be nice to be able to set FA2 to run for exactly a desired amount of iterations before autostopping, instead of having to use a setTimeout to stopForceAtlas2 which will result in various numbers of ran iterations depending on the client's machine and browser.
The text was updated successfully, but these errors were encountered: