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
Malte R
graph-tool
Commits
1fcff03a
Commit
1fcff03a
authored
Sep 23, 2017
by
Tiago Peixoto
Browse files
inference.rst: Change rng seed
parent
2483cbb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
doc/demos/inference/inference.rst
View file @
1fcff03a
...
...
@@ -461,7 +461,7 @@ case of the `C. elegans` network we have
.. testsetup:: model-selection
gt.seed_rng(4
2
)
gt.seed_rng(4
3
)
.. testcode:: model-selection
...
...
@@ -476,8 +476,8 @@ case of the `C. elegans` network we have
.. testoutput:: model-selection
:options: +NORMALIZE_WHITESPACE
Non-degree-corrected DL:
8557.215637
...
Degree-corrected DL:
8229.533915
...
Non-degree-corrected DL:
8511.005312
...
Degree-corrected DL:
8225.167736
...
Since it yields the smallest description length, the degree-corrected
fit should be preferred. The statistical significance of the choice can
...
...
@@ -503,7 +503,7 @@ fits. In our particular case, we have
.. testoutput:: model-selection
:options: +NORMALIZE_WHITESPACE
ln Λ: -
327.681722
...
ln Λ: -
285.837575
...
The precise threshold that should be used to decide when to `reject a
hypothesis <https://en.wikipedia.org/wiki/Hypothesis_testing>`_ is
...
...
@@ -530,12 +530,12 @@ example, for the American football network above, we have:
.. testoutput:: model-selection
:options: +NORMALIZE_WHITESPACE
Non-degree-corrected DL: 17
55.860047
...
Degree-corrected DL: 17
80.576716
...
ln Λ: -
24.716669
...
Non-degree-corrected DL: 17
33.525685
...
Degree-corrected DL: 17
91.750418
...
ln Λ: -
58.224733
...
Hence, with a posterior odds ratio of :math:`\Lambda \approx \mathrm{e}^{-
24
} \approx
10^{-
10
}` in favor of the non-degree-corrected model, it seems like the
Hence, with a posterior odds ratio of :math:`\Lambda \approx \mathrm{e}^{-
58
} \approx
10^{-
26
}` in favor of the non-degree-corrected model, it seems like the
degree-corrected variant is an unnecessarily complex description for
this network.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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