Commit 55355c90 authored by Tiago Peixoto's avatar Tiago Peixoto

Small documentation fixes

parent de0cf806
......@@ -21,7 +21,7 @@ network of American football teams, which we load from the
os.chdir("demos/inference")
except FileNotFoundError:
pass
gt.seed_rng(7)
gt.seed_rng(8)
.. testcode:: football
......
......@@ -191,9 +191,9 @@ Which yields the following output:
.. testoutput:: measured
Posterior probability of edge (11, 36): 0.890889...
Posterior probability of non-edge (15, 73): 0.056005...
Estimated average local clustering: 0.572758 ± 0.003998...
Posterior probability of edge (11, 36): 0.742674...
Posterior probability of non-edge (15, 73): 0.020702...
Estimated average local clustering: 0.572384 ± 0.003466...
We have a successful reconstruction, where both ambiguous adjacency
matrix entries are correctly recovered. The value for the average
......@@ -312,9 +312,9 @@ Which yields:
.. testoutput:: measured
Posterior probability of edge (11, 36): 0.967896...
Posterior probability of non-edge (15, 73): 0.038703...
Estimated average local clustering: 0.572129 ± 0.005409...
Posterior probability of edge (11, 36): 0.839483...
Posterior probability of non-edge (15, 73): 0.061106...
Estimated average local clustering: 0.572476 ± 0.004370...
The results are very similar to the ones obtained with the uniform model
in this case, but can be quite different in situations where a large
......@@ -441,9 +441,9 @@ The above yields the output:
.. testoutput:: uncertain
Posterior probability of edge (11, 36): 0.951195...
Posterior probability of non-edge (15, 73): 0.020702...
Estimated average local clustering: 0.538731 ± 0.017645...
Posterior probability of edge (11, 36): 0.891889...
Posterior probability of non-edge (15, 73): 0.026002...
Estimated average local clustering: 0.544468 ± 0.021562...
The reconstruction is accurate, despite the two ambiguous entries having
the same measurement probability. The reconstructed network is visualized below.
......
......@@ -143,8 +143,8 @@ The reconstruction can accurately recover the hidden network and the infection p
.. testoutput:: dynamics
Posterior similarity: 0.978108...
Inferred infection probability: 0.687213 ± 0.054126
Posterior similarity: 0.978091...
Inferred infection probability: 0.68809 ± 0.054207
The figure below shows the reconstructed network and the inferred community structure.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment