[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 583: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/session.php on line 639: sizeof(): Parameter must be an array or an object that implements Countable
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4516: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3262)
Gephi forums •Running Modularity statistics on the same data set twice generates different numbers of communities?
Page 1 of 1

Running Modularity statistics on the same data set twice generates different numbers of communities?

Posted: 13 Mar 2018 00:03
by yuling
Hi All,

I was hoping that the communities generated from Modularity statistics could be same of similar if I click the button twice. However, with the same selections of "Randomize", "Use weights", and "Resolution", it first generated 56 communities, and then 79 communities...any idea?

Thanks,
YuLing

Re: Running Modularity statistics on the same data set twice generates different numbers of communities?

Posted: 13 Mar 2018 17:20
by eduramiba
Hi,

Modularity is non-deterministic, it depends on the randomization, which chooses what's the starting node. Try to disable it.

Re: Running Modularity statistics on the same data set twice generates different numbers of communities?

Posted: 04 Jun 2018 04:54
by Max Viana
I try to do that (disable random mode), but it's still generating different results.

Any idea?

Re: Running Modularity statistics on the same data set twice generates different numbers of communities?

Posted: 04 Jun 2018 10:42
by eduramiba
Hi,
Randomization makes the algorithm start in a random node or not. So, several runs in the same workspace should work the same.
But it's possible that due to the graph structure (graphstore) the first node in the graph might change if you load the same file several times.