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
3a609c11
Commit
3a609c11
authored
Jul 11, 2016
by
Tiago Peixoto
Browse files
Fix superficial build test errors
parent
00b49466
Pipeline
#200
failed with stage
in 3855 minutes and 21 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
doc/demos/inference/inference.rst
View file @
3a609c11
...
...
@@ -581,7 +581,7 @@ random partition into 20 groups
.. testoutput:: model-averaging
Change in description length: -374.329276
5930462
Change in description length: -374.329276
...
Number of accepted vertex moves: 4394
.. note::
...
...
@@ -605,7 +605,7 @@ random partition into 20 groups
.. testoutput:: model-averaging
Change in description length: 22.0565576
48826185
Change in description length: 22.0565576
...
Number of accepted vertex moves: 4490
Although the above is sufficient to implement model averaging, there is a
...
...
@@ -820,7 +820,7 @@ network as above.
.. testoutput:: nested-model-averaging
Change in description length: 15.9450145
63014706
Change in description length: 15.9450145
...
Number of accepted vertex moves: 8767
Similarly to the the non-nested case, we can use
...
...
@@ -1097,7 +1097,7 @@ evidence efficiently, as we show below, using
.. testoutput:: model-evidence
Model evidence for deg_corr = True: -640.956071664 (mean field), -726.488710685 (Bethe)
Model evidence for deg_corr = False: -61
6.85388277
(mean field), -6
90.799585562
(Bethe)
Model evidence for deg_corr = False: -61
2.22656602
(mean field), -6
74.526935124
(Bethe)
Despite the (expected) discrepancy between both approximations, the
outcome shows a clear preference for the non-degree-corrected model.
...
...
@@ -1161,8 +1161,8 @@ approach for the same network, using the nested model.
.. testoutput:: model-evidence
Model evidence for deg_corr = True: -5
28.956749801
(mean field), -6
93.226240584
(Bethe)
Model evidence for deg_corr = False: -
567.856911437
(mean field), -
703.458763172
(Bethe)
Model evidence for deg_corr = True: -5
17.408224149
(mean field), -6
72.911348985
(Bethe)
Model evidence for deg_corr = False: -
606.900607981
(mean field), -
655.099814808
(Bethe)
The results are interesting: Not only we observe a better evidence for
the nested models themselves, when comparing to the evidences for the
...
...
Write
Preview
Supports
Markdown
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