Commit 42d89da9 authored by Tiago Peixoto's avatar Tiago Peixoto

Fix docstests

parent e6374fc4
......@@ -53,7 +53,7 @@ master_doc = 'index'
# General information about the project.
project = u'graph-tool'
copyright = u'2016, Tiago de Paula Peixoto <tiago@skewed.de>'
copyright = u'2017, Tiago de Paula Peixoto <tiago@skewed.de>'
# The version info for the project you're documenting, acts as replacement for
# |version| and |release|, also used in various other places throughout the
......
......@@ -477,7 +477,7 @@ fits. In our particular case, we have
.. testcode:: model-selection
print(u"ln Λ: ", state_dc.entropy() - state_ndc.entropy())
print(u"ln \u039b: ", state_dc.entropy() - state_ndc.entropy())
.. testoutput:: model-selection
:options: +NORMALIZE_WHITESPACE
......@@ -504,13 +504,13 @@ example, for the American football network above, we have:
print("Non-degree-corrected DL:\t", state_ndc.entropy())
print("Degree-corrected DL:\t", state_dc.entropy())
print(u"ln Λ:\t\t\t", state_ndc.entropy() - state_dc.entropy())
print(u"ln \u039b:\t\t\t", state_ndc.entropy() - state_dc.entropy())
.. testoutput:: model-selection
:options: +NORMALIZE_WHITESPACE
Non-degree-corrected DL: 1738.71605436
Degree-corrected DL: 1795.27140372
Degree-corrected DL: 1795.27140372
ln Λ: -56.5553493622
Hence, with a posterior odds ratio of :math:`\Lambda \sim e^{-56} \sim
......
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