Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
4ce6f522
Commit
4ce6f522
authored
Jul 03, 2018
by
Tiago Peixoto
Browse files
_reconstruction.rst: Limit output precision
This fixes tests with Python 2.7.
parent
1d7916cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/demos/inference/_reconstruction.rst
View file @
4ce6f522
...
...
@@ -185,9 +185,9 @@ Which yields the following output:
.. testoutput:: measured
Posterior probability of edge (11, 36): 0.801980
198019802
Posterior probability of non-edge (15, 73): 0.097309
73097309731
Estimated average local clustering: 0.572154 ± 0.004853
14
Posterior probability of edge (11, 36): 0.801980
...
Posterior probability of non-edge (15, 73): 0.097309
...
Estimated average local clustering: 0.572154 ± 0.004853
...
We have a successful reconstruction, where both ambiguous adjacency
matrix entries are correctly recovered. The value for the average
...
...
@@ -306,9 +306,9 @@ Which yields:
.. testoutput:: measured
Posterior probability of edge (11, 36): 0.790179
0179017901
Posterior probability of non-edge (15, 73): 0.109010
90109010901
Estimated average local clustering: 0.572504 ± 0.005453
37
Posterior probability of edge (11, 36): 0.790179
...
Posterior probability of non-edge (15, 73): 0.109010
...
Estimated average local clustering: 0.572504 ± 0.005453
...
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
...
...
@@ -434,9 +434,9 @@ The above yields the output:
.. testoutput:: uncertain
Posterior probability of edge (11, 36): 0.950495
0495049505
Posterior probability of non-edge (15, 73): 0.067406
7406740674
Estimated average local clustering: 0.552333 ± 0.019183
1
Posterior probability of edge (11, 36): 0.950495
...
Posterior probability of non-edge (15, 73): 0.067406
...
Estimated average local clustering: 0.552333 ± 0.019183
...
The reconstruction is accurate, despite the two ambiguous entries having
the same measurement probability. The reconstructed network is visualized below.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment