Commit 667a4926 authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

inference.rst: Remove unnecessary test setups

parent 195526cf
Pipeline #219 failed with stage
in 161 minutes and 12 seconds
...@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment