Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
115a4347
Commit
115a4347
authored
Feb 26, 2017
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inference.rst: Update doctests
parent
55d3d90b
Pipeline
#276
passed with stage
in 293 minutes and 51 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
doc/demos/inference/inference.rst
doc/demos/inference/inference.rst
+6
-6
No files found.
doc/demos/inference/inference.rst
View file @
115a4347
...
...
@@ -790,8 +790,8 @@ network as above.
.. testoutput:: nested-model-averaging
Change in description length:
11.627008
...
Number of accepted vertex moves: 7
3
90
Change in description length:
37.046981
...
Number of accepted vertex moves: 790
0
Similarly to the the non-nested case, we can use
:func:`~graph_tool.inference.mcmc_equilibrate` to do most of the boring
...
...
@@ -1121,8 +1121,8 @@ approach for the same network, using the nested model.
.. testoutput:: model-evidence
Model evidence for deg_corr = True: -3
5
3.
976...
(mean field), -
627.360...
(Bethe)
Model evidence for deg_corr = False: -34
0
.0
63...
(mean field), -5
11.833...
(Bethe)
Model evidence for deg_corr = True: -3
7
3.
221899017
(mean field), -
583.090286823
(Bethe)
Model evidence for deg_corr = False: -34
4
.0
81973912
(mean field), -5
00.750271684
(Bethe)
The results are similar: If we consider the most accurate approximation,
the non-degree-corrected model possesses the largest evidence. Note also
...
...
@@ -1362,8 +1362,8 @@ above).
..
testoutput
::
missing
-
edges
likelihood
-
ratio
for
(
101
,
102
):
0.3
7
...
likelihood
-
ratio
for
(
17
,
56
):
0.6
2
...
likelihood
-
ratio
for
(
101
,
102
):
0.3
6
...
likelihood
-
ratio
for
(
17
,
56
):
0.6
3
...
From
which
we
can
conclude
that
edge
:
math
:`(
17
,
56
)`
is
more
likely
than
:
math
:`(
101
,
102
)`
to
be
a
missing
edge
.
...
...
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