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
667a4926
Commit
667a4926
authored
Oct 20, 2016
by
Tiago Peixoto
Browse files
inference.rst: Remove unnecessary test setups
parent
195526cf
Pipeline
#219
failed with stage
in 161 minutes and 12 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
doc/demos/inference/inference.rst
View file @
667a4926
...
@@ -548,15 +548,6 @@ example, the following will perform 1000 sweeps of the algorithm with
...
@@ -548,15 +548,6 @@ example, the following will perform 1000 sweeps of the algorithm with
the network of characters in the novel Les Misérables, starting from a
the network of characters in the novel Les Misérables, starting from a
random partition into 20 groups
random partition into 20 groups
.. testsetup:: model-averaging
import os
try:
os.chdir("demos/inference")
except FileNotFoundError:
pass
.. testcode:: model-averaging
.. testcode:: model-averaging
g = gt.collection.data["lesmis"]
g = gt.collection.data["lesmis"]
...
@@ -761,14 +752,6 @@ analogous, but now we make use of
...
@@ -761,14 +752,6 @@ analogous, but now we make use of
Here we perform the sampling of hierarchical partitions using the same
Here we perform the sampling of hierarchical partitions using the same
network as above.
network as above.
.. testsetup:: nested-model-averaging
import os
try:
os.chdir("demos/inference")
except FileNotFoundError:
pass
.. testcode:: nested-model-averaging
.. testcode:: nested-model-averaging
g = gt.collection.data["lesmis"]
g = gt.collection.data["lesmis"]
...
@@ -1032,14 +1015,6 @@ evidence efficiently, as we show below, using
...
@@ -1032,14 +1015,6 @@ evidence efficiently, as we show below, using
:meth:`~graph_tool.inference.mf_entropy` and
:meth:`~graph_tool.inference.mf_entropy` and
:meth:`~graph_tool.inference.bethe_entropy`.
:meth:`~graph_tool.inference.bethe_entropy`.
.. testsetup:: model-evidence
import os
try:
os.chdir("demos/inference")
except FileNotFoundError:
pass
.. testcode:: model-evidence
.. testcode:: model-evidence
g = gt.collection.data["lesmis"]
g = gt.collection.data["lesmis"]
...
@@ -1285,14 +1260,6 @@ football network, using the nested model (for which we need to replace
...
@@ -1285,14 +1260,6 @@ football network, using the nested model (for which we need to replace
:
math
:`\
boldsymbol
b
`
by
:
math
:`\{\
boldsymbol
b_l
\}`
in
the
equations
:
math
:`\
boldsymbol
b
`
by
:
math
:`\{\
boldsymbol
b_l
\}`
in
the
equations
above
).
above
).
..
testsetup
::
missing
-
edges
import
os
try
:
os
.
chdir
(
"demos/inference"
)
except
FileNotFoundError
:
pass
..
testcode
::
missing
-
edges
..
testcode
::
missing
-
edges
:
hide
:
:
hide
:
...
...
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