Not really a bug, but something that must be known for replicability:
the seed for rng (set with the MC_DETERMINISTIC environment variable) is valid per session.
So, if you run mixtCompLearn several times with the same seed inside the same R session, you will have different results:
Not really a bug, but something that must be known for replicability: the seed for rng (set with the
MC_DETERMINISTIC
environment variable) is valid per session. So, if you runmixtCompLearn
several times with the same seed inside the same R session, you will have different results:If you restart R between 2 runs, you will have the same results
If you change the seed inside a session, it has no effect:
If we start a new session and run with a randomSeed of 50
If you run without a seed then with a seed inside the same r session, the seed has no effect
It is because the seed is managed in C++ with a static variable: https://github.com/modal-inria/MixtComp/blob/master/MixtComp/src/lib/Statistic/RNG.h