Closed iago-lito closed 1 year ago
On the last point, isn't the purpose of using the probabilistic (I learnt this word on Monday 😊) niche model to generate the food webs because we don't want a random graph, we want the structure it provides?
Yes @Thomalpas, the last point is not a possibility. We draw graph randomly using the niche model and we can't change this as it the standard model used to generate realistic trophic networks.
To complete your message @iago-lito there are actually two separate issues:
tol
erance value (and wrong name in the error message) that is too restrictive in general and can lead to an error. EDIT: I've created a dedicated issue for 2 #116.
Thank you @ismael-lajaaiti I could have phrased my point better. I agree we need to retain the potential to use the niche model as it is the standard model as you said.
But I was also raising the point that the niche model is not random but probabilistic (using the beta distribution I believe), which seemed to me another reason not to replace it with a random method
Yeah, sorry @Thomalpas I haven't been precise enough. My suggestion was to investigate some way to generate a niche model network according to their probabilistic rules, with an algorithm that would not only guarante that it be a correct "niche network", but also that its connectance be the one we need :)
This said, I would not be surprised that this algorithm be either impossible to write, or that it's still lying beyond the scope of science in 2023 ¯\_(ツ)_/¯
The following simple script fails:
with a misleading error message:
As it turns out, the constraint is not crazy to solve, but the default value for
ΔC
is too low to achieve such an "edge-perfect" (1 / S^2
) connectance. Also, users can tweak this value with an argument namedtol
, but this is not easily discoverable from the message alone.Suggestions:
ΔC
. MaybeΔC = 0.01 * C
(1% ofC
), orΔC = 10 / S^2
(10% of the possible links) ?tol -> ΔC
.