1
0
Fork 0

Documentazione

master
Pietro 3 years ago
parent c546e9fcc6
commit fb43fec112
  1. 16
      docs-out/PyCTBN.PyCTBN.structure_graph.rst
  2. 16
      docs-out/PyCTBN.PyCTBN.utility.rst
  3. 17
      docs-out/PyCTBN.rst
  4. 16
      docs-out/PyCTBN.tests.structure_graph.rst
  5. 7
      docs-out/example.rst
  6. 5
      docs-out/modules.rst
  7. 4
      docs/.buildinfo
  8. BIN
      docs/.doctrees/PyCTBN.PyCTBN.doctree
  9. BIN
      docs/.doctrees/PyCTBN.PyCTBN.estimators.doctree
  10. BIN
      docs/.doctrees/PyCTBN.PyCTBN.optimizers.doctree
  11. BIN
      docs/.doctrees/PyCTBN.PyCTBN.structure_graph.doctree
  12. BIN
      docs/.doctrees/PyCTBN.PyCTBN.utility.doctree
  13. BIN
      docs/.doctrees/PyCTBN.doctree
  14. BIN
      docs/.doctrees/PyCTBN.tests.doctree
  15. BIN
      docs/.doctrees/PyCTBN.tests.estimators.doctree
  16. BIN
      docs/.doctrees/PyCTBN.tests.optimizers.doctree
  17. BIN
      docs/.doctrees/PyCTBN.tests.structure_graph.doctree
  18. BIN
      docs/.doctrees/PyCTBN.tests.utility.doctree
  19. BIN
      docs/.doctrees/basic_main.doctree
  20. BIN
      docs/.doctrees/environment.pickle
  21. BIN
      docs/.doctrees/example.doctree
  22. BIN
      docs/.doctrees/examples.doctree
  23. BIN
      docs/.doctrees/index.doctree
  24. BIN
      docs/.doctrees/modules.doctree
  25. BIN
      docs/.doctrees/setup.doctree
  26. 146
      docs/PyCTBN.PyCTBN.estimators.html
  27. 14
      docs/PyCTBN.PyCTBN.html
  28. 42
      docs/PyCTBN.PyCTBN.optimizers.html
  29. 476
      docs/PyCTBN.PyCTBN.structure_graph.html
  30. 234
      docs/PyCTBN.PyCTBN.utility.html
  31. 64
      docs/PyCTBN.html
  32. 145
      docs/PyCTBN.tests.estimators.html
  33. 20
      docs/PyCTBN.tests.html
  34. 62
      docs/PyCTBN.tests.optimizers.html
  35. 248
      docs/PyCTBN.tests.structure_graph.html
  36. 134
      docs/PyCTBN.tests.utility.html
  37. 16
      docs/_sources/PyCTBN.PyCTBN.structure_graph.rst.txt
  38. 16
      docs/_sources/PyCTBN.PyCTBN.utility.rst.txt
  39. 17
      docs/_sources/PyCTBN.rst.txt
  40. 16
      docs/_sources/PyCTBN.tests.structure_graph.rst.txt
  41. 7
      docs/_sources/example.rst.txt
  42. 5
      docs/_sources/modules.rst.txt
  43. 106
      docs/_static/basic.css
  44. 9
      docs/_static/doctools.js
  45. 6
      docs/_static/language_data.js
  46. 10
      docs/_static/pygments.css
  47. 30
      docs/_static/searchtools.js
  48. 2042
      docs/_static/underscore-1.13.1.js
  49. 37
      docs/_static/underscore.js
  50. 10
      docs/basic_main.html
  51. 188
      docs/example.html
  52. 10
      docs/examples.html
  53. 260
      docs/genindex.html
  54. 14
      docs/index.html
  55. 69
      docs/modules.html
  56. BIN
      docs/objects.inv
  57. 55
      docs/py-modindex.html
  58. 10
      docs/search.html
  59. 2
      docs/searchindex.js
  60. 10
      docs/setup.html

@ -12,6 +12,14 @@ PyCTBN.PyCTBN.structure\_graph.conditional\_intensity\_matrix module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.PyCTBN.structure\_graph.network\_generator module
--------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.network_generator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.network\_graph module PyCTBN.PyCTBN.structure\_graph.network\_graph module
---------------------------------------------------- ----------------------------------------------------
@ -52,6 +60,14 @@ PyCTBN.PyCTBN.structure\_graph.trajectory module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.PyCTBN.structure\_graph.trajectory\_generator module
-----------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.trajectory_generator
:members:
:undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------

@ -4,6 +4,14 @@ PyCTBN.PyCTBN.utility package
Submodules Submodules
---------- ----------
PyCTBN.PyCTBN.utility.abstract\_exporter module
-----------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.abstract_exporter
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.abstract\_importer module PyCTBN.PyCTBN.utility.abstract\_importer module
----------------------------------------------- -----------------------------------------------
@ -20,6 +28,14 @@ PyCTBN.PyCTBN.utility.cache module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.PyCTBN.utility.json\_exporter module
-------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.json_exporter
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.json\_importer module PyCTBN.PyCTBN.utility.json\_importer module
------------------------------------------- -------------------------------------------

@ -8,10 +8,27 @@ Subpackages
:maxdepth: 4 :maxdepth: 4
PyCTBN.PyCTBN PyCTBN.PyCTBN
PyCTBN.tests
Submodules Submodules
---------- ----------
PyCTBN.basic\_main module
-------------------------
.. automodule:: PyCTBN.basic_main
:members:
:undoc-members:
:show-inheritance:
PyCTBN.setup module
-------------------
.. automodule:: PyCTBN.setup
:members:
:undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------

@ -12,6 +12,14 @@ PyCTBN.tests.structure\_graph.test\_cim module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.tests.structure\_graph.test\_networkgenerator module
-----------------------------------------------------------
.. automodule:: PyCTBN.tests.structure_graph.test_networkgenerator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.tests.structure\_graph.test\_networkgraph module PyCTBN.tests.structure\_graph.test\_networkgraph module
------------------------------------------------------- -------------------------------------------------------
@ -52,6 +60,14 @@ PyCTBN.tests.structure\_graph.test\_trajectory module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.tests.structure\_graph.test\_trajectorygenerator module
--------------------------------------------------------------
.. automodule:: PyCTBN.tests.structure_graph.test_trajectorygenerator
:members:
:undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------

@ -0,0 +1,7 @@
example module
==============
.. automodule:: example
:members:
:undoc-members:
:show-inheritance:

@ -4,5 +4,6 @@ PyCTBN
.. toctree:: .. toctree::
:maxdepth: 4 :maxdepth: 4
PyCTBN.PyCTBN PyCTBN
examples example
setup

@ -0,0 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 87e83150455399004cf3d149c3abeafb
tags: 645f666f9bcd5a90fca523b33c5a78b7

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -123,13 +127,13 @@
<div class="section" id="module-PyCTBN.PyCTBN.estimators.fam_score_calculator"> <div class="section" id="module-PyCTBN.PyCTBN.estimators.fam_score_calculator">
<span id="pyctbn-pyctbn-estimators-fam-score-calculator-module"></span><h2>PyCTBN.PyCTBN.estimators.fam_score_calculator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.fam_score_calculator" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-estimators-fam-score-calculator-module"></span><h2>PyCTBN.PyCTBN.estimators.fam_score_calculator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.fam_score_calculator" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.fam_score_calculator.</code><code class="sig-name descname">FamScoreCalculator</code><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.estimators.fam_score_calculator.</span></span><span class="sig-name descname"><span class="pre">FamScoreCalculator</span></span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of calculating the FamScore of a node by using a Bayesian score function</p> <p>Has the task of calculating the FamScore of a node by using a Bayesian score function</p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score">
<code class="sig-name descname">get_fam_score</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_fam_score</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cims</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.array</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tau_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">0.1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">1</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the FamScore value of the node</p> <dd><p>Calculate the FamScore value of the node</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -149,8 +153,8 @@
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q">
<code class="sig-name descname">marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">marginal_likelihood_q</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cims</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.array</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tau_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">0.1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">1</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the value of the marginal likelihood over q of the node identified by the label node_id</p> <dd><p>Calculate the value of the marginal likelihood over q of the node identified by the label node_id</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -170,8 +174,8 @@
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta">
<code class="sig-name descname">marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">marginal_likelihood_theta</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cims</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"><span class="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xxu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the FamScore value of the node identified by the label node_id</p> <dd><p>Calculate the FamScore value of the node identified by the label node_id</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -191,8 +195,8 @@
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q">
<code class="sig-name descname">single_cim_xu_marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">M_xu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">T_xu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">single_cim_xu_marginal_likelihood_q</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">M_xu_suff_stats</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">T_xu_suff_stats</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tau_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">0.1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">1</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value <dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
and a specif parents’s assignment</p> and a specif parents’s assignment</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -215,8 +219,8 @@ and a specif parents’s assignment</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta">
<code class="sig-name descname">single_cim_xu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">index</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">single_cim_xu_marginal_likelihood_theta</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">index</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cim</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"><span class="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xxu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value <dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
and a specif parents’s assignment</p> and a specif parents’s assignment</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -237,8 +241,8 @@ and a specif parents’s assignment</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta">
<code class="sig-name descname">single_internal_cim_xxu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">M_xxu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">single_internal_cim_xxu_marginal_likelihood_theta</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">M_xxu_suff_stats</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xxu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">1</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the second part of the marginal likelihood over theta formula</p> <dd><p>Calculate the second part of the marginal likelihood over theta formula</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -257,8 +261,8 @@ and a specif parents’s assignment</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q">
<code class="sig-name descname">variable_cim_xu_marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">variable_cim_xu_marginal_likelihood_q</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cim</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"><span class="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">tau_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">0.1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">1</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the value of the marginal likelihood over q given a cim</p> <dd><p>Calculate the value of the marginal likelihood over q given a cim</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -278,8 +282,8 @@ and a specif parents’s assignment</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta">
<code class="sig-name descname">variable_cim_xu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">variable_cim_xu_marginal_likelihood_theta</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cim</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"><span class="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xxu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the value of the marginal likelihood over theta given a cim</p> <dd><p>Calculate the value of the marginal likelihood over theta given a cim</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -304,8 +308,8 @@ and a specif parents’s assignment</p>
<div class="section" id="module-PyCTBN.PyCTBN.estimators.parameters_estimator"> <div class="section" id="module-PyCTBN.PyCTBN.estimators.parameters_estimator">
<span id="pyctbn-pyctbn-estimators-parameters-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.parameters_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.parameters_estimator" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-estimators-parameters-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.parameters_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.parameters_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.parameters_estimator.</code><code class="sig-name descname">ParametersEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectories</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory" title="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory">PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory</a></span></em>, <em class="sig-param"><span class="n">net_graph</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph">PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.estimators.parameters_estimator.</span></span><span class="sig-name descname"><span class="pre">ParametersEstimator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">trajectories</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory" title="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory"><span class="pre">PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">net_graph</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"><span class="pre">PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph</span></a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of computing the cims of particular node given the trajectories and the net structure <p>Has the task of computing the cims of particular node given the trajectories and the net structure
in the graph <code class="docutils literal notranslate"><span class="pre">_net_graph</span></code>.</p> in the graph <code class="docutils literal notranslate"><span class="pre">_net_graph</span></code>.</p>
@ -321,8 +325,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node">
<code class="sig-name descname">compute_parameters_for_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; <a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims" title="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims">PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims</a><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">compute_parameters_for_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims" title="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims"><span class="pre">PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims</span></a><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node" title="Permalink to this definition"></a></dt>
<dd><p>Compute the CIMS of the node identified by the label <code class="docutils literal notranslate"><span class="pre">node_id</span></code>.</p> <dd><p>Compute the CIMS of the node identified by the label <code class="docutils literal notranslate"><span class="pre">node_id</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -338,8 +342,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node">
<em class="property">static </em><code class="sig-name descname">compute_state_res_time_for_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">times</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cols_filter</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">scalar_indexes_struct</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">T</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">compute_state_res_time_for_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">times</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">trajectory</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cols_filter</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">scalar_indexes_struct</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">T</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node" title="Permalink to this definition"></a></dt>
<dd><p>Compute the state residence times for a node and fill the matrix <code class="docutils literal notranslate"><span class="pre">T</span></code> with the results</p> <dd><p>Compute the state residence times for a node and fill the matrix <code class="docutils literal notranslate"><span class="pre">T</span></code> with the results</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -356,8 +360,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node">
<em class="property">static </em><code class="sig-name descname">compute_state_transitions_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cols_filter</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">scalar_indexing</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">M</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">compute_state_transitions_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_indx</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">trajectory</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cols_filter</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">scalar_indexing</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">M</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node" title="Permalink to this definition"></a></dt>
<dd><p>Compute the state residence times for a node and fill the matrices <code class="docutils literal notranslate"><span class="pre">M</span></code> with the results.</p> <dd><p>Compute the state residence times for a node and fill the matrices <code class="docutils literal notranslate"><span class="pre">M</span></code> with the results.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -373,8 +377,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.fast_init"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.fast_init">
<code class="sig-name descname">fast_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.fast_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">fast_init</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.fast_init" title="Permalink to this definition"></a></dt>
<dd><p>Initializes all the necessary structures for the parameters estimation for the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code>.</p> <dd><p>Initializes all the necessary structures for the parameters estimation for the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -389,8 +393,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<div class="section" id="module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator"> <div class="section" id="module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">
<span id="pyctbn-pyctbn-estimators-structure-constraint-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-estimators-structure-constraint-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.</code><code class="sig-name descname">StructureConstraintBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath">PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath</a></span></em>, <em class="sig-param"><span class="n">exp_test_alfa</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">chi_test_alfa</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">[]</span></em>, <em class="sig-param"><span class="n">thumb_threshold</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">25</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.</span></span><span class="sig-name descname"><span class="pre">StructureConstraintBasedEstimator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sample_path</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><span class="pre">PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">exp_test_alfa</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">chi_test_alfa</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">known_edges</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">[]</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">thumb_threshold</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">25</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></code></a></p> <dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></code></a></p>
<p>Has the task of estimating the network structure given the trajectories in samplepath by using a constraint-based approach.</p> <p>Has the task of estimating the network structure given the trajectories in samplepath by using a constraint-based approach.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -420,8 +424,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test">
<code class="sig-name descname">complete_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">test_parent</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">test_child</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">parent_set</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">child_states_numb</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parent_indx</span></em>, <em class="sig-param"><span class="n">child_indx</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">complete_test</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">test_parent</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">test_child</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parent_set</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">child_states_numb</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tot_vars_count</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parent_indx</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">child_indx</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">bool</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test" title="Permalink to this definition"></a></dt>
<dd><p>Performs a complete independence test on the directed graphs G1 = {test_child U parent_set} <dd><p>Performs a complete independence test on the directed graphs G1 = {test_child U parent_set}
G2 = {G1 U test_parent} (added as an additional parent of the test_child). G2 = {G1 U test_parent} (added as an additional parent of the test_child).
Generates all the necessary structures and datas to perform the tests.</p> Generates all the necessary structures and datas to perform the tests.</p>
@ -445,8 +449,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value">
<code class="sig-name descname">compute_thumb_value</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parent_val</span></em>, <em class="sig-param"><span class="n">child_val</span></em>, <em class="sig-param"><span class="n">parent_set_vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">compute_thumb_value</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">parent_val</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">child_val</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parent_set_vals</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value" title="Permalink to this definition"></a></dt>
<dd><p>Compute the value to test against the thumb_threshold.</p> <dd><p>Compute the value to test against the thumb_threshold.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -466,14 +470,14 @@ Generates all the necessary structures and datas to perform the tests.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm">
<code class="sig-name descname">ctpc_algorithm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">ctpc_algorithm</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">disable_multiprocessing</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm" title="Permalink to this definition"></a></dt>
<dd><p>Compute the CTPC algorithm over the entire net.</p> <dd><p>Compute the CTPC algorithm over the entire net.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure">
<code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">estimate_structure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">disable_multiprocessing</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dd><p>Abstract method to estimate the structure</p> <dd><p>Abstract method to estimate the structure</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Returns</dt> <dt class="field-odd">Returns</dt>
@ -486,8 +490,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test">
<code class="sig-name descname">independence_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">child_states_numb</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cim1</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">cim2</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">thumb_value</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">parent_indx</span></em>, <em class="sig-param"><span class="n">child_indx</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">independence_test</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">child_states_numb</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cim1</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"><span class="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">cim2</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"><span class="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">thumb_value</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">float</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parent_indx</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">child_indx</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">bool</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test" title="Permalink to this definition"></a></dt>
<dd><p>Compute the actual independence test using two cims. <dd><p>Compute the actual independence test using two cims.
It is performed first the exponential test and if the null hypothesis is not rejected, It is performed first the exponential test and if the null hypothesis is not rejected,
it is performed also the chi_test.</p> it is performed also the chi_test.</p>
@ -509,8 +513,8 @@ it is performed also the chi_test.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm">
<code class="sig-name descname">one_iteration_of_CTPC_algorithm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">var_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">one_iteration_of_CTPC_algorithm</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">var_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tot_vars_count</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm" title="Permalink to this definition"></a></dt>
<dd><p>Performs an iteration of the CTPC algorithm using the node <code class="docutils literal notranslate"><span class="pre">var_id</span></code> as <code class="docutils literal notranslate"><span class="pre">test_child</span></code>.</p> <dd><p>Performs an iteration of the CTPC algorithm using the node <code class="docutils literal notranslate"><span class="pre">var_id</span></code> as <code class="docutils literal notranslate"><span class="pre">test_child</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -525,8 +529,8 @@ it is performed also the chi_test.</p>
<div class="section" id="module-PyCTBN.PyCTBN.estimators.structure_estimator"> <div class="section" id="module-PyCTBN.PyCTBN.estimators.structure_estimator">
<span id="pyctbn-pyctbn-estimators-structure-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_estimator" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-estimators-structure-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_estimator.</code><code class="sig-name descname">StructureEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath">PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath</a></span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.</span></span><span class="sig-name descname"><span class="pre">StructureEstimator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sample_path</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><span class="pre">PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">known_edges</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">List</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of estimating the network structure given the trajectories in <code class="docutils literal notranslate"><span class="pre">samplepath</span></code>.</p> <p>Has the task of estimating the network structure given the trajectories in <code class="docutils literal notranslate"><span class="pre">samplepath</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -550,8 +554,8 @@ it is performed also the chi_test.</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix">
<code class="sig-name descname">adjacency_matrix</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">adjacency_matrix</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">numpy.ndarray</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix" title="Permalink to this definition"></a></dt>
<dd><p>Converts the estimated structure <code class="docutils literal notranslate"><span class="pre">_complete_graph</span></code> to a boolean adjacency matrix representation.</p> <dd><p>Converts the estimated structure <code class="docutils literal notranslate"><span class="pre">_complete_graph</span></code> to a boolean adjacency matrix representation.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Returns</dt> <dt class="field-odd">Returns</dt>
@ -564,8 +568,8 @@ it is performed also the chi_test.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_complete_graph"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_complete_graph">
<em class="property">static </em><code class="sig-name descname">build_complete_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_ids</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; networkx.classes.digraph.DiGraph<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_complete_graph" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">build_complete_graph</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_ids</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">networkx.classes.digraph.DiGraph</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_complete_graph" title="Permalink to this definition"></a></dt>
<dd><p>Builds a complete directed graph (no self loops) given the nodes labels in the list <code class="docutils literal notranslate"><span class="pre">node_ids</span></code>:</p> <dd><p>Builds a complete directed graph (no self loops) given the nodes labels in the list <code class="docutils literal notranslate"><span class="pre">node_ids</span></code>:</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -581,8 +585,8 @@ it is performed also the chi_test.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix">
<code class="sig-name descname">build_removable_edges_matrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_removable_edges_matrix</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">known_edges</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix" title="Permalink to this definition"></a></dt>
<dd><p>Builds a boolean matrix who shows if a edge could be removed or not, based on prior knowledge given:</p> <dd><p>Builds a boolean matrix who shows if a edge could be removed or not, based on prior knowledge given:</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -598,8 +602,8 @@ it is performed also the chi_test.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure">
<em class="property">abstract </em><code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">abstract</span> </em><span class="sig-name descname"><span class="pre">estimate_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dd><p>Abstract method to estimate the structure</p> <dd><p>Abstract method to estimate the structure</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Returns</dt> <dt class="field-odd">Returns</dt>
@ -612,8 +616,8 @@ it is performed also the chi_test.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size">
<em class="property">static </em><code class="sig-name descname">generate_possible_sub_sets_of_size</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">u</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">size</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parent_label</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">generate_possible_sub_sets_of_size</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">u</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">size</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parent_label</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size" title="Permalink to this definition"></a></dt>
<dd><p>Creates a list containing all possible subsets of the list <code class="docutils literal notranslate"><span class="pre">u</span></code> of size <code class="docutils literal notranslate"><span class="pre">size</span></code>, <dd><p>Creates a list containing all possible subsets of the list <code class="docutils literal notranslate"><span class="pre">u</span></code> of size <code class="docutils literal notranslate"><span class="pre">size</span></code>,
that do not contains a the node identified by <code class="docutils literal notranslate"><span class="pre">parent_label</span></code>.</p> that do not contains a the node identified by <code class="docutils literal notranslate"><span class="pre">parent_label</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -634,8 +638,8 @@ that do not contains a the node identified by <code class="docutils literal notr
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph">
<code class="sig-name descname">save_plot_estimated_structure_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">save_plot_estimated_structure_graph</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">file_path</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph" title="Permalink to this definition"></a></dt>
<dd><p>Plot the estimated structure in a graphical model style, use .png extension. <dd><p>Plot the estimated structure in a graphical model style, use .png extension.
Spurious edges are colored in red if a prior structure is present.</p> Spurious edges are colored in red if a prior structure is present.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -649,8 +653,8 @@ Spurious edges are colored in red if a prior structure is present.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_results"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_results">
<code class="sig-name descname">save_results</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_results" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">save_results</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">file_path</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_results" title="Permalink to this definition"></a></dt>
<dd><p>Save the estimated Structure to a .json file in file_path.</p> <dd><p>Save the estimated Structure to a .json file in file_path.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -660,8 +664,8 @@ Spurious edges are colored in red if a prior structure is present.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges">
<code class="sig-name descname">spurious_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">spurious_edges</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges" title="Permalink to this definition"></a></dt>
<dd><dl class="simple"> <dd><dl class="simple">
<dt>Return the spurious edges present in the estimated structure, if a prior net structure is present in</dt><dd><p><code class="docutils literal notranslate"><span class="pre">_sample_path.structure</span></code>.</p> <dt>Return the spurious edges present in the estimated structure, if a prior net structure is present in</dt><dd><p><code class="docutils literal notranslate"><span class="pre">_sample_path.structure</span></code>.</p>
</dd> </dd>
@ -682,8 +686,8 @@ Spurious edges are colored in red if a prior structure is present.</p>
<div class="section" id="module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator"> <div class="section" id="module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">
<span id="pyctbn-pyctbn-estimators-structure-score-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_score_based_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-estimators-structure-score-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_score_based_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_score_based_estimator.</code><code class="sig-name descname">StructureScoreBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath">PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath</a></span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">1</span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">[]</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.estimators.structure_score_based_estimator.</span></span><span class="sig-name descname"><span class="pre">StructureScoreBasedEstimator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sample_path</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><span class="pre">PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">tau_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">0.1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">alpha_xu</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">known_edges</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">[]</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></code></a></p> <dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></code></a></p>
<p>Has the task of estimating the network structure given the trajectories in samplepath by <p>Has the task of estimating the network structure given the trajectories in samplepath by
using a score based approach and differt kinds of optimization algorithms.</p> using a score based approach and differt kinds of optimization algorithms.</p>
@ -698,8 +702,8 @@ using a score based approach and differt kinds of optimization algorithms.</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents">
<code class="sig-name descname">estimate_parents</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">10</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">5</span></em>, <em class="sig-param"><span class="n">optimizer</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'hill'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">estimate_parents</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_parents</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iterations_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">40</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">patience</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">10</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tabu_length</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tabu_rules_duration</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">5</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">optimizer</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">'hill'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents" title="Permalink to this definition"></a></dt>
<dd><p>Use the FamScore of a node in order to find the best parent nodes</p> <dd><p>Use the FamScore of a node in order to find the best parent nodes</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -723,8 +727,8 @@ using a score based approach and differt kinds of optimization algorithms.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure">
<code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">optimizer</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'tabu'</span></em>, <em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">estimate_structure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">max_parents</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iterations_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">40</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">patience</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tabu_length</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tabu_rules_duration</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">optimizer</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">'tabu'</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">disable_multiprocessing</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute the score-based algorithm to find the optimal structure</p> <dd><p>Compute the score-based algorithm to find the optimal structure</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -742,8 +746,8 @@ using a score based approach and differt kinds of optimization algorithms.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph">
<code class="sig-name descname">get_score_from_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph">PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph</a></span></em>, <em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_score_from_graph</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"><span class="pre">PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph" title="Permalink to this definition"></a></dt>
<dd><p>Get the FamScore of a node</p> <dd><p>Get the FamScore of a node</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -806,6 +810,9 @@ using a score based approach and differt kinds of optimization algorithms.</p>
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -816,9 +823,6 @@ using a score based approach and differt kinds of optimization algorithms.</p>
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -142,18 +146,22 @@
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul> <li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul> <li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
@ -204,6 +212,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -214,9 +225,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -123,8 +127,8 @@
<div class="section" id="module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer"> <div class="section" id="module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer">
<span id="pyctbn-pyctbn-optimizers-constraint-based-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-optimizers-constraint-based-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.</code><code class="sig-name descname">ConstraintBasedOptimizer</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</a></span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.</span></span><span class="sig-name descname"><span class="pre">ConstraintBasedOptimizer</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">structure_estimator</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">tot_vars_count</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p> <dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement a CTPC Algorithm</p> <p>Optimizer class that implement a CTPC Algorithm</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -137,8 +141,8 @@
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">optimize_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute Optimization process for a structure_estimator by using a CTPC Algorithm</p> <dd><p>Compute Optimization process for a structure_estimator by using a CTPC Algorithm</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Returns</dt> <dt class="field-odd">Returns</dt>
@ -156,8 +160,8 @@
<div class="section" id="module-PyCTBN.PyCTBN.optimizers.hill_climbing_search"> <div class="section" id="module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">
<span id="pyctbn-pyctbn-optimizers-hill-climbing-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.hill_climbing_search module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-optimizers-hill-climbing-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.hill_climbing_search module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.hill_climbing_search.</code><code class="sig-name descname">HillClimbing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</a></span></em>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.optimizers.hill_climbing_search.</span></span><span class="sig-name descname"><span class="pre">HillClimbing</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">structure_estimator</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_parents</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iterations_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">40</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">patience</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p> <dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement Hill Climbing Search</p> <p>Optimizer class that implement Hill Climbing Search</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -172,8 +176,8 @@
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing.optimize_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing.optimize_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">optimize_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing.optimize_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute Optimization process for a structure_estimator by using a Hill Climbing Algorithm</p> <dd><p>Compute Optimization process for a structure_estimator by using a Hill Climbing Algorithm</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Returns</dt> <dt class="field-odd">Returns</dt>
@ -191,8 +195,8 @@
<div class="section" id="module-PyCTBN.PyCTBN.optimizers.optimizer"> <div class="section" id="module-PyCTBN.PyCTBN.optimizers.optimizer">
<span id="pyctbn-pyctbn-optimizers-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.optimizer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.optimizer" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-optimizers-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.optimizer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.optimizer" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.optimizer.</code><code class="sig-name descname">Optimizer</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.</span></span><span class="sig-name descname"><span class="pre">Optimizer</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">structure_estimator</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Interface class for all the optimizer’s child PyCTBN</p> <p>Interface class for all the optimizer’s child PyCTBN</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -204,8 +208,8 @@
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer.optimize_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer.optimize_structure">
<em class="property">abstract </em><code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer.optimize_structure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">abstract</span> </em><span class="sig-name descname"><span class="pre">optimize_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer.optimize_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute Optimization process for a structure_estimator</p> <dd><p>Compute Optimization process for a structure_estimator</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Returns</dt> <dt class="field-odd">Returns</dt>
@ -223,8 +227,8 @@
<div class="section" id="module-PyCTBN.PyCTBN.optimizers.tabu_search"> <div class="section" id="module-PyCTBN.PyCTBN.optimizers.tabu_search">
<span id="pyctbn-pyctbn-optimizers-tabu-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.tabu_search module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.tabu_search" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-optimizers-tabu-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.tabu_search module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.tabu_search" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.tabu_search.</code><code class="sig-name descname">TabuSearch</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</a></span></em>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.optimizers.tabu_search.</span></span><span class="sig-name descname"><span class="pre">TabuSearch</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">structure_estimator</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></a></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_parents</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">iterations_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">40</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">patience</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tabu_length</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">int</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tabu_rules_duration</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p> <dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement Tabu Search</p> <p>Optimizer class that implement Tabu Search</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -241,8 +245,8 @@
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch.optimize_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch.optimize_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">optimize_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch.optimize_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute Optimization process for a structure_estimator by using a Hill Climbing Algorithm</p> <dd><p>Compute Optimization process for a structure_estimator by using a Hill Climbing Algorithm</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Returns</dt> <dt class="field-odd">Returns</dt>
@ -299,6 +303,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -309,9 +316,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -123,8 +127,8 @@
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix"> <div class="section" id="module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">
<span id="pyctbn-pyctbn-structure-graph-conditional-intensity-matrix-module"></span><h2>PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-structure-graph-conditional-intensity-matrix-module"></span><h2>PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.</code><code class="sig-name descname">ConditionalIntensityMatrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">state_residence_times</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">state_transition_matrix</span><span class="p">:</span> <span class="n">numpy.array</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.</span></span><span class="sig-name descname"><span class="pre">ConditionalIntensityMatrix</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">state_residence_times</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">numpy.array</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">state_transition_matrix</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">numpy.array</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cim</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">numpy.array</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Abstracts the Conditional Intesity matrix of a node as aggregation of the state residence times vector <p>Abstracts the Conditional Intesity matrix of a node as aggregation of the state residence times vector
and state transition matrix and the actual CIM matrix.</p> and state transition matrix and the actual CIM matrix.</p>
@ -139,26 +143,103 @@ and state transition matrix and the actual CIM matrix.</p>
<dd class="field-even"><p>the actual cim of the node</p> <dd class="field-even"><p>the actual cim of the node</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim">
<em class="property">property </em><code class="sig-name descname">cim</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">cim</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients">
<code class="sig-name descname">compute_cim_coefficients</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">compute_cim_coefficients</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients" title="Permalink to this definition"></a></dt>
<dd><p>Compute the coefficients of the matrix _cim by using the following equality q_xx’ = M[x, x’] / T[x]. <dd><p>Compute the coefficients of the matrix _cim by using the following equality q_xx’ = M[x, x’] / T[x].
The class member <code class="docutils literal notranslate"><span class="pre">_cim</span></code> will contain the computed cim</p> The class member <code class="docutils literal notranslate"><span class="pre">_cim</span></code> will contain the computed cim</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times">
<em class="property">property </em><code class="sig-name descname">state_residence_times</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">state_residence_times</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix">
<em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">state_transition_matrix</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div>
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph.network_generator">
<span id="pyctbn-pyctbn-structure-graph-network-generator-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_generator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.network_generator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator">
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.structure_graph.network_generator.</span></span><span class="sig-name descname"><span class="pre">NetworkGenerator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">labels</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">vals</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Provides the methods to generate a network graph and the CIMs related to it
Items in _labels, _vals and _indxs are related, and therefore respect the same order</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>_labels</strong> (<em>List</em>) – List of variables labels that will be part of the network</p></li>
<li><p><strong>_vals</strong> (<em>List</em>) – List of cardinalities of the variables in network (defined in the same order as _labels)</p></li>
<li><p><strong>_indxs</strong> (<em>List</em>) – List of the nodes indexes</p></li>
<li><p><strong>_cims</strong> (<em>Dict</em>) – It contains, for each variable label (the key), the SetOfCims object related to it</p></li>
<li><p><strong>_graph</strong> (<a class="reference internal" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"><em>NetworkGraph</em></a>) – The NetworkGraph object representing the generated structure</p></li>
</ul>
</dd>
</dl>
<dl class="py property">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.cims">
<em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">cims</span></span><em class="property"><span class="pre">:</span> <span class="pre">dict</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.dyn_str">
<em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">dyn_str</span></span><em class="property"><span class="pre">:</span> <span class="pre">list</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.dyn_str" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_cims">
<em class="property">property </em><code class="sig-name descname">state_transition_matrix</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">generate_cims</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">min_val</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_val</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_cims" title="Permalink to this definition"></a></dt>
<dd><dl class="simple">
<dt>For each node, generate the corresponding SetOfCims. The objective is to group the CIMs </dt><dd><p>(actually generated by private method __generate_cim) according to parents possibles states of every node.
This method must obviously be executed after the graph has been generated.</p>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>min_val</strong> (<em>float</em>) – Minimum value allowed for the coefficients in the CIMs</p></li>
<li><p><strong>max_val</strong> (<em>float</em>) – Maximum value allowed for the coefficients in the CIMs</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_graph">
<span class="sig-name descname"><span class="pre">generate_graph</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">density</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">fixed</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">bool</span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">False</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_graph" title="Permalink to this definition"></a></dt>
<dd><dl class="simple">
<dt>Generate the edges according to specified density, and then instantiate the NetworkGraph object</dt><dd><p>to represent the network</p>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>density</strong> (<em>float</em>) – Probability of an edge between two nodes to exist</p></li>
<li><p><strong>fixed</strong> (<em>bool</em>) – Specifies whether the required density is mandatory or it’s just a probability</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.graph">
<em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">graph</span></span><em class="property"><span class="pre">:</span> <span class="pre">PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.graph" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py property">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.variables">
<em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">variables</span></span><em class="property"><span class="pre">:</span> <span class="pre">list</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -167,8 +248,8 @@ The class member <code class="docutils literal notranslate"><span class="pre">_c
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph.network_graph"> <div class="section" id="module-PyCTBN.PyCTBN.structure_graph.network_graph">
<span id="pyctbn-pyctbn-structure-graph-network-graph-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_graph module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.network_graph" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-structure-graph-network-graph-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_graph module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.network_graph" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.network_graph.</code><code class="sig-name descname">NetworkGraph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph_struct</span><span class="p">:</span> <span class="n"><a class="reference internal" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure" title="PyCTBN.PyCTBN.structure_graph.structure.Structure">PyCTBN.PyCTBN.structure_graph.structure.Structure</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.structure_graph.network_graph.</span></span><span class="sig-name descname"><span class="pre">NetworkGraph</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph_struct</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure" title="PyCTBN.PyCTBN.structure_graph.structure.Structure"><span class="pre">PyCTBN.PyCTBN.structure_graph.structure.Structure</span></a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Abstracts the infos contained in the Structure class in the form of a directed graph. <p>Abstracts the infos contained in the Structure class in the form of a directed graph.
Has the task of creating all the necessary filtering and indexing structures for parameters estimation</p> Has the task of creating all the necessary filtering and indexing structures for parameters estimation</p>
@ -201,8 +282,8 @@ from one state to another</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_edges"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_edges">
<code class="sig-name descname">add_edges</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_edges" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">add_edges</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">list_of_edges</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_edges" title="Permalink to this definition"></a></dt>
<dd><p>Add the edges to the <code class="docutils literal notranslate"><span class="pre">_graph</span></code> contained in the list <code class="docutils literal notranslate"><span class="pre">list_of_edges</span></code>.</p> <dd><p>Add the edges to the <code class="docutils literal notranslate"><span class="pre">_graph</span></code> contained in the list <code class="docutils literal notranslate"><span class="pre">list_of_edges</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -212,8 +293,8 @@ from one state to another</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes">
<code class="sig-name descname">add_nodes</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_nodes</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">add_nodes</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">list_of_nodes</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes" title="Permalink to this definition"></a></dt>
<dd><p>Adds the nodes to the <code class="docutils literal notranslate"><span class="pre">_graph</span></code> contained in the list of nodes <code class="docutils literal notranslate"><span class="pre">list_of_nodes</span></code>. <dd><p>Adds the nodes to the <code class="docutils literal notranslate"><span class="pre">_graph</span></code> contained in the list of nodes <code class="docutils literal notranslate"><span class="pre">list_of_nodes</span></code>.
Sets all the properties that identify a nodes (index, positional index, cardinality)</p> Sets all the properties that identify a nodes (index, positional index, cardinality)</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -224,8 +305,8 @@ Sets all the properties that identify a nodes (index, positional index, cardinal
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_p_comb_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_p_comb_structure_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_p_comb_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_values</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_p_comb_structure_for_a_node" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">build_p_comb_structure_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">parents_values</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">numpy.ndarray</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_p_comb_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd><p>Builds the combinatorial structure that contains the combinations of all the values contained in <dd><p>Builds the combinatorial structure that contains the combinations of all the values contained in
<code class="docutils literal notranslate"><span class="pre">parents_values</span></code>.</p> <code class="docutils literal notranslate"><span class="pre">parents_values</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -242,8 +323,8 @@ Sets all the properties that identify a nodes (index, positional index, cardinal
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_columns_filtering_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_columns_filtering_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_time_columns_filtering_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_indxs</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_columns_filtering_for_a_node" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">build_time_columns_filtering_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_indx</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_indxs</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">numpy.ndarray</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_columns_filtering_for_a_node" title="Permalink to this definition"></a></dt>
<dd><p>Builds the necessary structure to filter the desired columns indicated by <code class="docutils literal notranslate"><span class="pre">node_indx</span></code> and <code class="docutils literal notranslate"><span class="pre">p_indxs</span></code> <dd><p>Builds the necessary structure to filter the desired columns indicated by <code class="docutils literal notranslate"><span class="pre">node_indx</span></code> and <code class="docutils literal notranslate"><span class="pre">p_indxs</span></code>
in the dataset. in the dataset.
This structute will be used in the computation of the state res times. This structute will be used in the computation of the state res times.
@ -256,8 +337,8 @@ This structute will be used in the computation of the state res times.
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_scalar_indexing_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_scalar_indexing_structure_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_time_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_states</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parents_vals</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">build_time_scalar_indexing_structure_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_states</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_vals</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">numpy.ndarray</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd><p>Builds an indexing structure for the computation of state residence times values.</p> <dd><p>Builds an indexing structure for the computation of state residence times values.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -276,8 +357,8 @@ This structute will be used in the computation of the state res times.
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_filtering_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_filtering_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_transition_filtering_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_indxs</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">nodes_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_filtering_for_a_node" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">build_transition_filtering_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_indx</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_indxs</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">nodes_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">numpy.ndarray</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_filtering_for_a_node" title="Permalink to this definition"></a></dt>
<dd><p>Builds the necessary structure to filter the desired columns indicated by <code class="docutils literal notranslate"><span class="pre">node_indx</span></code> and <code class="docutils literal notranslate"><span class="pre">p_indxs</span></code> <dd><p>Builds the necessary structure to filter the desired columns indicated by <code class="docutils literal notranslate"><span class="pre">node_indx</span></code> and <code class="docutils literal notranslate"><span class="pre">p_indxs</span></code>
in the dataset. in the dataset.
This structure will be used in the computation of the state transitions values. This structure will be used in the computation of the state transitions values.
@ -292,8 +373,8 @@ This structure will be used in the computation of the state transitions values.
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_scalar_indexing_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_scalar_indexing_structure_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_transition_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_states_number</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parents_vals</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">static</span> </em><span class="sig-name descname"><span class="pre">build_transition_scalar_indexing_structure_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_states_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_vals</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">numpy.ndarray</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd><p>Builds an indexing structure for the computation of state transitions values.</p> <dd><p>Builds an indexing structure for the computation of state transitions values.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -312,19 +393,19 @@ This structure will be used in the computation of the state transitions values.
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.clear_indexing_filtering_structures"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.clear_indexing_filtering_structures">
<code class="sig-name descname">clear_indexing_filtering_structures</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.clear_indexing_filtering_structures" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">clear_indexing_filtering_structures</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.clear_indexing_filtering_structures" title="Permalink to this definition"></a></dt>
<dd><p>Initialize all the filtering/indexing structures.</p> <dd><p>Initialize all the filtering/indexing structures.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges">
<em class="property">property </em><code class="sig-name descname">edges</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">edges</span></span><em class="property"><span class="pre">:</span> <span class="pre">List</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.fast_init"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.fast_init">
<code class="sig-name descname">fast_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.fast_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">fast_init</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.fast_init" title="Permalink to this definition"></a></dt>
<dd><p>Initializes all the necessary structures for parameters estimation of the node identified by the label <dd><p>Initializes all the necessary structures for parameters estimation of the node identified by the label
node_id</p> node_id</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -335,13 +416,13 @@ node_id</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_node_indx"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_node_indx">
<code class="sig-name descname">get_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_node_indx" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_node_indx</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">int</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_ordered_by_indx_set_of_parents"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_ordered_by_indx_set_of_parents">
<code class="sig-name descname">get_ordered_by_indx_set_of_parents</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; Tuple<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_ordered_by_indx_set_of_parents" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_ordered_by_indx_set_of_parents</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">Tuple</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_ordered_by_indx_set_of_parents" title="Permalink to this definition"></a></dt>
<dd><p>Builds the aggregated structure that holds all the infos relative to the parent set of the node, namely <dd><p>Builds the aggregated structure that holds all the infos relative to the parent set of the node, namely
(parents_labels, parents_indexes, parents_cardinalities).</p> (parents_labels, parents_indexes, parents_cardinalities).</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -358,8 +439,8 @@ node_id</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_parents_by_id"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_parents_by_id">
<code class="sig-name descname">get_parents_by_id</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_parents_by_id" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_parents_by_id</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_parents_by_id" title="Permalink to this definition"></a></dt>
<dd><p>Returns a list of labels of the parents of the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code></p> <dd><p>Returns a list of labels of the parents of the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code></p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -375,18 +456,18 @@ node_id</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_positional_node_indx"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_positional_node_indx">
<code class="sig-name descname">get_positional_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_positional_node_indx" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_positional_node_indx</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">int</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_positional_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_states_number"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_states_number">
<code class="sig-name descname">get_states_number</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_states_number" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_states_number</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">int</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_states_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.has_edge"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.has_edge">
<code class="sig-name descname">has_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.has_edge" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">has_edge</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">edge</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">tuple</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">bool</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.has_edge" title="Permalink to this definition"></a></dt>
<dd><p>Check if the graph contains a specific edge</p> <dd><p>Check if the graph contains a specific edge</p>
<dl class="simple"> <dl class="simple">
<dt>Parameters:</dt><dd><p>edge: a tuple that rappresents the edge</p> <dt>Parameters:</dt><dd><p>edge: a tuple that rappresents the edge</p>
@ -396,29 +477,29 @@ node_id</p>
</dl> </dl>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes">
<em class="property">property </em><code class="sig-name descname">nodes</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">nodes</span></span><em class="property"><span class="pre">:</span> <span class="pre">List</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes">
<em class="property">property </em><code class="sig-name descname">nodes_indexes</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">nodes_indexes</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values">
<em class="property">property </em><code class="sig-name descname">nodes_values</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">nodes_values</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs">
<em class="property">property </em><code class="sig-name descname">p_combs</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">p_combs</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_edges"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_edges">
<code class="sig-name descname">remove_edges</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_edges" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">remove_edges</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">list_of_edges</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_edges" title="Permalink to this definition"></a></dt>
<dd><p>Remove the edges to the graph contained in the list list_of_edges.</p> <dd><p>Remove the edges to the graph contained in the list list_of_edges.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -428,30 +509,30 @@ node_id</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_node">
<code class="sig-name descname">remove_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">remove_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_node" title="Permalink to this definition"></a></dt>
<dd><p>Remove the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code> from all the class members. <dd><p>Remove the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code> from all the class members.
Initialize all the filtering/indexing structures.</p> Initialize all the filtering/indexing structures.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering">
<em class="property">property </em><code class="sig-name descname">time_filtering</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">time_filtering</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure">
<em class="property">property </em><code class="sig-name descname">time_scalar_indexing_strucure</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">time_scalar_indexing_strucure</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering">
<em class="property">property </em><code class="sig-name descname">transition_filtering</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">transition_filtering</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure">
<em class="property">property </em><code class="sig-name descname">transition_scalar_indexing_structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">transition_scalar_indexing_structure</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -460,8 +541,8 @@ Initialize all the filtering/indexing structures.</p>
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph.sample_path"> <div class="section" id="module-PyCTBN.PyCTBN.structure_graph.sample_path">
<span id="pyctbn-pyctbn-structure-graph-sample-path-module"></span><h2>PyCTBN.PyCTBN.structure_graph.sample_path module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.sample_path" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-structure-graph-sample-path-module"></span><h2>PyCTBN.PyCTBN.structure_graph.sample_path module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.sample_path" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.sample_path.</code><code class="sig-name descname">SamplePath</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">importer</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.structure_graph.sample_path.</span></span><span class="sig-name descname"><span class="pre">SamplePath</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">importer</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Aggregates all the informations about the trajectories, the real structure of the sampled net and variables <p>Aggregates all the informations about the trajectories, the real structure of the sampled net and variables
cardinalites. Has the task of creating the objects <code class="docutils literal notranslate"><span class="pre">Trajectory</span></code> and <code class="docutils literal notranslate"><span class="pre">Structure</span></code> that will cardinalites. Has the task of creating the objects <code class="docutils literal notranslate"><span class="pre">Trajectory</span></code> and <code class="docutils literal notranslate"><span class="pre">Structure</span></code> that will
@ -481,41 +562,41 @@ contain the mentioned data.</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_structure">
<code class="sig-name descname">build_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_structure" title="Permalink to this definition"></a></dt>
<dd><p>Builds the <code class="docutils literal notranslate"><span class="pre">Structure</span></code> object that aggregates all the infos about the net.</p> <dd><p>Builds the <code class="docutils literal notranslate"><span class="pre">Structure</span></code> object that aggregates all the infos about the net.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_trajectories"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_trajectories">
<code class="sig-name descname">build_trajectories</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_trajectories" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_trajectories</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_trajectories" title="Permalink to this definition"></a></dt>
<dd><p>Builds the Trajectory object that will contain all the trajectories. <dd><p>Builds the Trajectory object that will contain all the trajectories.
Clears all the unused dataframes in <code class="docutils literal notranslate"><span class="pre">_importer</span></code> Object</p> Clears all the unused dataframes in <code class="docutils literal notranslate"><span class="pre">_importer</span></code> Object</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.clear_memory"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.clear_memory">
<code class="sig-name descname">clear_memory</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.clear_memory" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">clear_memory</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.clear_memory" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure">
<em class="property">property </em><code class="sig-name descname">has_prior_net_structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">has_prior_net_structure</span></span><em class="property"><span class="pre">:</span> <span class="pre">bool</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure">
<em class="property">property </em><code class="sig-name descname">structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">structure</span></span><em class="property"><span class="pre">:</span> <span class="pre">PyCTBN.PyCTBN.structure_graph.structure.Structure</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count">
<em class="property">property </em><code class="sig-name descname">total_variables_count</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">total_variables_count</span></span><em class="property"><span class="pre">:</span> <span class="pre">int</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories">
<em class="property">property </em><code class="sig-name descname">trajectories</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">trajectories</span></span><em class="property"><span class="pre">:</span> <span class="pre">PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -524,8 +605,8 @@ Clears all the unused dataframes in <code class="docutils literal notranslate"><
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph.set_of_cims"> <div class="section" id="module-PyCTBN.PyCTBN.structure_graph.set_of_cims">
<span id="pyctbn-pyctbn-structure-graph-set-of-cims-module"></span><h2>PyCTBN.PyCTBN.structure_graph.set_of_cims module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.set_of_cims" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-structure-graph-set-of-cims-module"></span><h2>PyCTBN.PyCTBN.structure_graph.set_of_cims module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.set_of_cims" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.set_of_cims.</code><code class="sig-name descname">SetOfCims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">parents_states_number</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">node_states_number</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_combs</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.structure_graph.set_of_cims.</span></span><span class="sig-name descname"><span class="pre">SetOfCims</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_states_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">node_states_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_combs</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cims</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">numpy.ndarray</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Aggregates all the CIMS of the node identified by the label _node_id.</p> <p>Aggregates all the CIMS of the node identified by the label _node_id.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -547,14 +628,14 @@ Clears all the unused dataframes in <code class="docutils literal notranslate"><
<dd class="field-even"><p>the cims of the node</p> <dd class="field-even"><p>the cims of the node</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims">
<em class="property">property </em><code class="sig-name descname">actual_cims</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">actual_cims</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_cims"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_cims">
<code class="sig-name descname">build_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">state_res_times</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">transition_matrices</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_cims" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_cims</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">state_res_times</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">transition_matrices</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_cims" title="Permalink to this definition"></a></dt>
<dd><p>Build the <code class="docutils literal notranslate"><span class="pre">ConditionalIntensityMatrix</span></code> objects given the state residence times and transitions matrices. <dd><p>Build the <code class="docutils literal notranslate"><span class="pre">ConditionalIntensityMatrix</span></code> objects given the state residence times and transitions matrices.
Compute the cim coefficients.The class member <code class="docutils literal notranslate"><span class="pre">_actual_cims</span></code> will contain the computed cims.</p> Compute the cim coefficients.The class member <code class="docutils literal notranslate"><span class="pre">_actual_cims</span></code> will contain the computed cims.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -568,14 +649,14 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_times_and_transitions_structures"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_times_and_transitions_structures">
<code class="sig-name descname">build_times_and_transitions_structures</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_times_and_transitions_structures" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_times_and_transitions_structures</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_times_and_transitions_structures" title="Permalink to this definition"></a></dt>
<dd><p>Initializes at the correct dimensions the state residence times matrix and the state transition matrices.</p> <dd><p>Initializes at the correct dimensions the state residence times matrix and the state transition matrices.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask">
<code class="sig-name descname">filter_cims_with_mask</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">mask_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">comb</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">filter_cims_with_mask</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">mask_arr</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">comb</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">numpy.ndarray</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask" title="Permalink to this definition"></a></dt>
<dd><p>Filter the cims contained in the array <code class="docutils literal notranslate"><span class="pre">_actual_cims</span></code> given the boolean mask <code class="docutils literal notranslate"><span class="pre">mask_arr</span></code> and the index <dd><p>Filter the cims contained in the array <code class="docutils literal notranslate"><span class="pre">_actual_cims</span></code> given the boolean mask <code class="docutils literal notranslate"><span class="pre">mask_arr</span></code> and the index
<code class="docutils literal notranslate"><span class="pre">comb</span></code>.</p> <code class="docutils literal notranslate"><span class="pre">comb</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -595,13 +676,13 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number">
<code class="sig-name descname">get_cims_number</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_cims_number</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs">
<em class="property">property </em><code class="sig-name descname">p_combs</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">p_combs</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -610,8 +691,8 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph.structure"> <div class="section" id="module-PyCTBN.PyCTBN.structure_graph.structure">
<span id="pyctbn-pyctbn-structure-graph-structure-module"></span><h2>PyCTBN.PyCTBN.structure_graph.structure module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.structure" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-structure-graph-structure-module"></span><h2>PyCTBN.PyCTBN.structure_graph.structure module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.structure" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.structure.</code><code class="sig-name descname">Structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">nodes_labels_list</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">nodes_indexes_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">nodes_vals_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">edges_list</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">total_variables_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.structure_graph.structure.</span></span><span class="sig-name descname"><span class="pre">Structure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">nodes_labels_list</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">nodes_indexes_arr</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">nodes_vals_arr</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">numpy.ndarray</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">edges_list</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">total_variables_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Contains all the infos about the network structure(nodes labels, nodes caridinalites, edges, indexes)</p> <p>Contains all the infos about the network structure(nodes labels, nodes caridinalites, edges, indexes)</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -626,28 +707,28 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge">
<code class="sig-name descname">add_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">add_edge</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">edge</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">tuple</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges">
<code class="sig-name descname">clean_structure_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">clean_structure_edges</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge">
<code class="sig-name descname">contains_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">contains_edge</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">edge</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">tuple</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">bool</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.edges"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.edges">
<em class="property">property </em><code class="sig-name descname">edges</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.edges" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">edges</span></span><em class="property"><span class="pre">:</span> <span class="pre">List</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.edges" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_id"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_id">
<code class="sig-name descname">get_node_id</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_id" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_node_id</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_indx</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">str</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_id" title="Permalink to this definition"></a></dt>
<dd><p>Given the <code class="docutils literal notranslate"><span class="pre">node_index</span></code> returns the node label.</p> <dd><p>Given the <code class="docutils literal notranslate"><span class="pre">node_index</span></code> returns the node label.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -663,8 +744,8 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_indx"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_indx">
<code class="sig-name descname">get_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_indx" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_node_indx</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">int</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_indx" title="Permalink to this definition"></a></dt>
<dd><p>Given the <code class="docutils literal notranslate"><span class="pre">node_index</span></code> returns the node label.</p> <dd><p>Given the <code class="docutils literal notranslate"><span class="pre">node_index</span></code> returns the node label.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -680,13 +761,13 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_positional_node_indx"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_positional_node_indx">
<code class="sig-name descname">get_positional_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_positional_node_indx" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_positional_node_indx</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">int</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_positional_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number">
<code class="sig-name descname">get_states_number</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">get_states_number</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">int</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number" title="Permalink to this definition"></a></dt>
<dd><p>Given the node label <code class="docutils literal notranslate"><span class="pre">node</span></code> returns the cardinality of the node.</p> <dd><p>Given the node label <code class="docutils literal notranslate"><span class="pre">node</span></code> returns the cardinality of the node.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -701,36 +782,36 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dl> </dl>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes">
<em class="property">property </em><code class="sig-name descname">nodes_indexes</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">nodes_indexes</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels">
<em class="property">property </em><code class="sig-name descname">nodes_labels</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">nodes_labels</span></span><em class="property"><span class="pre">:</span> <span class="pre">List</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values">
<em class="property">property </em><code class="sig-name descname">nodes_values</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">nodes_values</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_edge"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_edge">
<code class="sig-name descname">remove_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_edge" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">remove_edge</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">edge</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">tuple</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_edge" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_node"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_node">
<code class="sig-name descname">remove_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">remove_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_node" title="Permalink to this definition"></a></dt>
<dd><p>Remove the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code> from all the class members. <dd><p>Remove the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code> from all the class members.
The class member <code class="docutils literal notranslate"><span class="pre">_total_variables_number</span></code> since it refers to the total number of variables in the dataset.</p> The class member <code class="docutils literal notranslate"><span class="pre">_total_variables_number</span></code> since it refers to the total number of variables in the dataset.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number">
<em class="property">property </em><code class="sig-name descname">total_variables_number</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">total_variables_number</span></span><em class="property"><span class="pre">:</span> <span class="pre">int</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -739,8 +820,8 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph.trajectory"> <div class="section" id="module-PyCTBN.PyCTBN.structure_graph.trajectory">
<span id="pyctbn-pyctbn-structure-graph-trajectory-module"></span><h2>PyCTBN.PyCTBN.structure_graph.trajectory module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.trajectory" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-structure-graph-trajectory-module"></span><h2>PyCTBN.PyCTBN.structure_graph.trajectory module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.trajectory" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.trajectory.</code><code class="sig-name descname">Trajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_columns</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">original_cols_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.structure_graph.trajectory.</span></span><span class="sig-name descname"><span class="pre">Trajectory</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">list_of_columns</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">original_cols_number</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Abstracts the infos about a complete set of trajectories, represented as a numpy array of doubles <p>Abstracts the infos about a complete set of trajectories, represented as a numpy array of doubles
(the time deltas) and a numpy matrix of ints (the changes of states).</p> (the time deltas) and a numpy matrix of ints (the changes of states).</p>
@ -758,28 +839,99 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
<dd class="field-odd"><p>the array containing the time deltas</p> <dd class="field-odd"><p>the array containing the time deltas</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory">
<em class="property">property </em><code class="sig-name descname">complete_trajectory</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">complete_trajectory</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size">
<code class="sig-name descname">size</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">size</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times">
<em class="property">property </em><code class="sig-name descname">times</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">times</span></span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory">
<em class="property">property </em><code class="sig-name descname">trajectory</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">trajectory</span></span><em class="property"><span class="pre">:</span> <span class="pre">numpy.ndarray</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
</div>
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">
<span id="pyctbn-pyctbn-structure-graph-trajectory-generator-module"></span><h2>PyCTBN.PyCTBN.structure_graph.trajectory_generator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator">
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.structure_graph.trajectory_generator.</span></span><span class="sig-name descname"><span class="pre">TrajectoryGenerator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">importer</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></a><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">variables</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dyn_str</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dyn_cims</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">dict</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Provides the methods to generate a trajectory basing on the network defined
in the importer.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>_importer</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><em>AbstractImporter</em></a>) – the Importer object which contains the imported and processed data</p></li>
<li><p><strong>_vnames</strong> (<em>List</em>) – List of the variables labels that belong to the network</p></li>
<li><p><strong>_parents</strong> (<em>Dict</em>) – It contains, for each variable label (the key), the list of related parents labels</p></li>
<li><p><strong>_cims</strong> (<em>Dict</em>) – It contains, for each variable label (the key), the SetOfCims object related to it</p></li>
<li><p><strong>_generated_trajectory</strong> (<em>pandas.DataFrame</em>) – Result of the execution of CTBN_Sample, contains the output trajectory</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample">
<span class="sig-name descname"><span class="pre">CTBN_Sample</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">t_end</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">-</span> <span class="pre">1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_tr</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">-</span> <span class="pre">1</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample" title="Permalink to this definition"></a></dt>
<dd><dl class="simple">
<dt>This method implements the generation of a trajectory, basing on the network structure and</dt><dd><p>on the coefficients defined in the CIMs.
The variables are initialized with value 0, and the method takes care of adding the
conventional last row made up of -1.</p>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>t_end</strong> (<em>float</em>) – If defined, the sampling ends when end time is reached</p></li>
<li><p><strong>max_tr</strong> (<em>int</em>) – Parameter taken in consideration in case that t_end isn’t defined. It specifies the number of transitions to execute</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.multi_trajectory">
<span class="sig-name descname"><span class="pre">multi_trajectory</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">t_ends</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">list</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_trs</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">list</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.multi_trajectory" title="Permalink to this definition"></a></dt>
<dd><p>Generate n trajectories in parallel, where n is the number of items in
t_ends, if defined, or the number of items in max_trs otherwise</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>t_ends</strong> (<em>list</em>) – List of t_end values for the trajectories that will be generated</p></li>
<li><p><strong>max_trs</strong> (<em>list</em>) – List of max_tr values for the trajectories that will be generated</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.worker">
<span class="sig-name descname"><span class="pre">worker</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">t_end</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">max_tr</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">trajectories</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.worker" title="Permalink to this definition"></a></dt>
<dd><p>Single process that will be executed in parallel in order to generate one trajectory.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>t_end</strong> (<em>float</em>) – If defined, the sampling ends when end time is reached</p></li>
<li><p><strong>max_tr</strong> (<em>int</em>) – Parameter taken in consideration in case that t_end isn’t defined. It specifies the number of transitions to execute</p></li>
<li><p><strong>trajectories</strong> (<em>list</em>) – Shared list that contains to which the generated trajectory is added</p></li>
</ul>
</dd>
</dl>
</dd></dl>
</dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.PyCTBN.structure_graph"> <div class="section" id="module-PyCTBN.PyCTBN.structure_graph">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph" title="Permalink to this headline"></a></h2> <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph" title="Permalink to this headline"></a></h2>
@ -823,6 +975,9 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -833,9 +988,6 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -119,12 +123,58 @@
<h1>PyCTBN.PyCTBN.utility package<a class="headerlink" href="#pyctbn-pyctbn-utility-package" title="Permalink to this headline"></a></h1> <h1>PyCTBN.PyCTBN.utility package<a class="headerlink" href="#pyctbn-pyctbn-utility-package" title="Permalink to this headline"></a></h1>
<div class="section" id="submodules"> <div class="section" id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2> <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2>
</div>
<div class="section" id="module-PyCTBN.PyCTBN.utility.abstract_exporter">
<span id="pyctbn-pyctbn-utility-abstract-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_exporter module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.abstract_exporter" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter">
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.utility.abstract_exporter.</span></span><span class="sig-name descname"><span class="pre">AbstractExporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">variables</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dyn_str</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dyn_cims</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">dict</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Abstract class that exposes the methods to save in json format a network information
along with one or more trajectories generated basing on it</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>_variables</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the nodes labels and cardinalities</p></li>
<li><p><strong>_dyn_str</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the structure of the network (edges)</p></li>
<li><p><strong>_dyn_cims</strong> (<em>dict</em>) – It contains, for every variable (label is the key), the SetOfCims object related to it</p></li>
<li><p><strong>_trajectories</strong> (<em>List</em>) – List of trajectories, that can be added subsequently</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.add_trajectory">
<span class="sig-name descname"><span class="pre">add_trajectory</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">trajectory</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">list</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.add_trajectory" title="Permalink to this definition"></a></dt>
<dd><p>Add a new trajectory to the current list</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>trajectory</strong> (<em>pandas.DataFrame</em>) – The trajectory to add</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file">
<em class="property"><span class="pre">abstract</span> </em><span class="sig-name descname"><span class="pre">out_file</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file" title="Permalink to this definition"></a></dt>
<dd><dl class="simple">
<dt>Create a file in current directory and write on it the previously added data </dt><dd><p>(variables, dyn_str, dyn_cims and trajectories)</p>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>filename</strong> (<em>string</em>) – Name of the output file (it must include json extension)</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.PyCTBN.utility.abstract_importer"> <div class="section" id="module-PyCTBN.PyCTBN.utility.abstract_importer">
<span id="pyctbn-pyctbn-utility-abstract-importer-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.abstract_importer" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-utility-abstract-importer-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.abstract_importer" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.abstract_importer.</code><code class="sig-name descname">AbstractImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">trajectory_list</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">prior_net_structure</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.</span></span><span class="sig-name descname"><span class="pre">AbstractImporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">file_path</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">trajectory_list</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">,</span> </span><span class="pre">numpy.ndarray</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">variables</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">prior_net_structure</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Abstract class that exposes all the necessary methods to process the trajectories and the net structure.</p> <p>Abstract class that exposes all the necessary methods to process the trajectories and the net structure.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -155,8 +205,8 @@ See the tutorial on how to construct a correct <code class="docutils literal not
<p>See :class:<code class="docutils literal notranslate"><span class="pre">JsonImporter</span></code> for an example implementation</p> <p>See :class:<code class="docutils literal notranslate"><span class="pre">JsonImporter</span></code> for an example implementation</p>
</div> </div>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_list_of_samples_array"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_list_of_samples_array">
<code class="sig-name descname">build_list_of_samples_array</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">concatenated_sample</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_list_of_samples_array" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_list_of_samples_array</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">concatenated_sample</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">pandas.core.frame.DataFrame</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_list_of_samples_array" title="Permalink to this definition"></a></dt>
<dd><p>Builds a List containing the the delta times numpy array, and the complete transitions matrix</p> <dd><p>Builds a List containing the the delta times numpy array, and the complete transitions matrix</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -173,8 +223,8 @@ and converted</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter">
<em class="property">abstract </em><code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajecory_header</span><span class="p">:</span> <span class="n">object</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">abstract</span> </em><span class="sig-name descname"><span class="pre">build_sorter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">trajecory_header</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">object</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dd><p>Initializes the <code class="docutils literal notranslate"><span class="pre">_sorter</span></code> class member from a trajectory dataframe, exctracting the header of the frame <dd><p>Initializes the <code class="docutils literal notranslate"><span class="pre">_sorter</span></code> class member from a trajectory dataframe, exctracting the header of the frame
and keeping ONLY the variables symbolic labels, cutting out the time label in the header.</p> and keeping ONLY the variables symbolic labels, cutting out the time label in the header.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -191,14 +241,14 @@ and keeping ONLY the variables symbolic labels, cutting out the time label in th
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.clear_concatenated_frame"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.clear_concatenated_frame">
<code class="sig-name descname">clear_concatenated_frame</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.clear_concatenated_frame" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">clear_concatenated_frame</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.clear_concatenated_frame" title="Permalink to this definition"></a></dt>
<dd><p>Removes all values in the dataframe concatenated_samples.</p> <dd><p>Removes all values in the dataframe concatenated_samples.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames">
<code class="sig-name descname">compute_row_delta_in_all_samples_frames</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">df_samples_list</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">compute_row_delta_in_all_samples_frames</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">df_samples_list</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames" title="Permalink to this definition"></a></dt>
<dd><p>Calls the method <code class="docutils literal notranslate"><span class="pre">compute_row_delta_sigle_samples_frame</span></code> on every dataframe present in the list <dd><p>Calls the method <code class="docutils literal notranslate"><span class="pre">compute_row_delta_sigle_samples_frame</span></code> on every dataframe present in the list
<code class="docutils literal notranslate"><span class="pre">df_samples_list</span></code>. <code class="docutils literal notranslate"><span class="pre">df_samples_list</span></code>.
Concatenates the result in the dataframe <code class="docutils literal notranslate"><span class="pre">concatanated_samples</span></code></p> Concatenates the result in the dataframe <code class="docutils literal notranslate"><span class="pre">concatanated_samples</span></code></p>
@ -221,8 +271,8 @@ and merged trajectories</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame">
<code class="sig-name descname">compute_row_delta_sigle_samples_frame</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em>, <em class="sig-param"><span class="n">columns_header</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">shifted_cols_header</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">compute_row_delta_sigle_samples_frame</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sample_frame</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">pandas.core.frame.DataFrame</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">columns_header</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">shifted_cols_header</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">pandas.core.frame.DataFrame</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame" title="Permalink to this definition"></a></dt>
<dd><p>Computes the difference between each value present in th time column. <dd><p>Computes the difference between each value present in th time column.
Copies and shift by one position up all the values present in the remaining columns.</p> Copies and shift by one position up all the values present in the remaining columns.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -247,36 +297,36 @@ Header of sample_frame = [Time | Variable values]</p>
</div> </div>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples">
<em class="property">property </em><code class="sig-name descname">concatenated_samples</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">concatenated_samples</span></span><em class="property"><span class="pre">:</span> <span class="pre">pandas.core.frame.DataFrame</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.dataset_id"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.dataset_id">
<em class="property">abstract </em><code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; object<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.dataset_id" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">abstract</span> </em><span class="sig-name descname"><span class="pre">dataset_id</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">object</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.dataset_id" title="Permalink to this definition"></a></dt>
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current <dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
dataset</p> dataset</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path">
<em class="property">property </em><code class="sig-name descname">file_path</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">file_path</span></span><em class="property"><span class="pre">:</span> <span class="pre">str</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter">
<em class="property">property </em><code class="sig-name descname">sorter</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">sorter</span></span><em class="property"><span class="pre">:</span> <span class="pre">List</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure">
<em class="property">property </em><code class="sig-name descname">structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">structure</span></span><em class="property"><span class="pre">:</span> <span class="pre">pandas.core.frame.DataFrame</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py property">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables">
<em class="property">property </em><code class="sig-name descname">variables</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">property</span> </em><span class="sig-name descname"><span class="pre">variables</span></span><em class="property"><span class="pre">:</span> <span class="pre">pandas.core.frame.DataFrame</span></em><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -285,8 +335,8 @@ dataset</p>
<div class="section" id="module-PyCTBN.PyCTBN.utility.cache"> <div class="section" id="module-PyCTBN.PyCTBN.utility.cache">
<span id="pyctbn-pyctbn-utility-cache-module"></span><h2>PyCTBN.PyCTBN.utility.cache module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.cache" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-utility-cache-module"></span><h2>PyCTBN.PyCTBN.utility.cache module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.cache" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.cache.Cache">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.cache.</code><code class="sig-name descname">Cache</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.utility.cache.</span></span><span class="sig-name descname"><span class="pre">Cache</span></span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>This class acts as a cache of <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> objects for a node.</p> <p>This class acts as a cache of <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> objects for a node.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -299,14 +349,14 @@ index is related</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.clear"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.cache.Cache.clear">
<code class="sig-name descname">clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.clear" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">clear</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.clear" title="Permalink to this definition"></a></dt>
<dd><p>Clear the contents both of <code class="docutils literal notranslate"><span class="pre">__actual_cache</span></code> and <code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.</p> <dd><p>Clear the contents both of <code class="docutils literal notranslate"><span class="pre">__actual_cache</span></code> and <code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.find"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.cache.Cache.find">
<code class="sig-name descname">find</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_comb</span><span class="p">:</span> <span class="n">Set</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.find" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">find</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">parents_comb</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Set</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.find" title="Permalink to this definition"></a></dt>
<dd><p>Tries to find in cache given the symbolic parents combination <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> the <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> <dd><p>Tries to find in cache given the symbolic parents combination <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> the <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code>
related to that <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code>.</p> related to that <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -324,8 +374,8 @@ None otherwise.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.put"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.cache.Cache.put">
<code class="sig-name descname">put</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_comb</span><span class="p">:</span> <span class="n">Set</span></em>, <em class="sig-param"><span class="n">socim</span><span class="p">:</span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims" title="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims">PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.put" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">put</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">parents_comb</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Set</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">socim</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims" title="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims"><span class="pre">PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims</span></a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.put" title="Permalink to this definition"></a></dt>
<dd><p>Place in cache the <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> object, and the related symbolic index <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> in <dd><p>Place in cache the <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> object, and the related symbolic index <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> in
<code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.</p> <code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -340,12 +390,52 @@ None otherwise.</p>
</dd></dl> </dd></dl>
</div>
<div class="section" id="module-PyCTBN.PyCTBN.utility.json_exporter">
<span id="pyctbn-pyctbn-utility-json-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.json_exporter module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.json_exporter" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter">
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.utility.json_exporter.</span></span><span class="sig-name descname"><span class="pre">JsonExporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">variables</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dyn_str</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">dyn_cims</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">dict</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter" title="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter</span></code></a></p>
<p>Provides the methods to save in json format a network information
along with one or more trajectories generated basing on it</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>_variables</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the nodes labels and cardinalities</p></li>
<li><p><strong>_dyn_str</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the structure of the network (edges)</p></li>
<li><p><strong>_dyn_cims</strong> (<em>dict</em>) – It contains, for every variable (label is the key), the SetOfCims object related to it</p></li>
<li><p><strong>_trajectories</strong> (<em>List</em>) – List of trajectories, that can be added subsequently</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json">
<span class="sig-name descname"><span class="pre">cims_to_json</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">dict</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file">
<span class="sig-name descname"><span class="pre">out_file</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">filename</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file" title="Permalink to this definition"></a></dt>
<dd><dl class="simple">
<dt>Create a file in current directory and write on it the previously added data </dt><dd><p>(variables, dyn_str, dyn_cims and trajectories)</p>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>filename</strong> (<em>string</em>) – Name of the output file (it must include json extension)</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.PyCTBN.utility.json_importer"> <div class="section" id="module-PyCTBN.PyCTBN.utility.json_importer">
<span id="pyctbn-pyctbn-utility-json-importer-module"></span><h2>PyCTBN.PyCTBN.utility.json_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.json_importer" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-utility-json-importer-module"></span><h2>PyCTBN.PyCTBN.utility.json_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.json_importer" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.json_importer.</code><code class="sig-name descname">JsonImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">samples_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">variables_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">time_key</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">variables_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.utility.json_importer.</span></span><span class="sig-name descname"><span class="pre">JsonImporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">file_path</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">samples_label</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">structure_label</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">variables_label</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">time_key</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">variables_key</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cims_label</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">str</span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></code></a></p> <dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></code></a></p>
<p>Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare <p>Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare
the data in json extension.</p> the data in json extension.</p>
@ -371,27 +461,27 @@ the data in json extension.</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.build_sorter"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.build_sorter">
<code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.build_sorter" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_sorter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sample_frame</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">pandas.core.frame.DataFrame</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dd><p>Implements the abstract method build_sorter of the <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code> for this dataset.</p> <dd><p>Implements the abstract method build_sorter of the <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code> for this dataset.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.clear_data_frame_list"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.clear_data_frame_list">
<code class="sig-name descname">clear_data_frame_list</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.clear_data_frame_list" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">clear_data_frame_list</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.clear_data_frame_list" title="Permalink to this definition"></a></dt>
<dd><p>Removes all values present in the dataframes in the list <code class="docutils literal notranslate"><span class="pre">_df_samples_list</span></code>.</p> <dd><p>Removes all values present in the dataframes in the list <code class="docutils literal notranslate"><span class="pre">_df_samples_list</span></code>.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.dataset_id"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.dataset_id">
<code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; object<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.dataset_id" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">dataset_id</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">object</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.dataset_id" title="Permalink to this definition"></a></dt>
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current <dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
dataset</p> dataset</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data">
<code class="sig-name descname">import_data</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">import_data</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">indx</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data" title="Permalink to this definition"></a></dt>
<dd><p>Implements the abstract method of <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code>.</p> <dd><p>Implements the abstract method of <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -401,8 +491,8 @@ dataset</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims">
<code class="sig-name descname">import_sampled_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cims_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; Dict<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">import_sampled_cims</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">raw_data</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">indx</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cims_key</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">Dict</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims" title="Permalink to this definition"></a></dt>
<dd><p>Imports the synthetic CIMS in the dataset in a dictionary, using variables labels <dd><p>Imports the synthetic CIMS in the dataset in a dictionary, using variables labels
as keys for the set of CIMS of a particular node.</p> as keys for the set of CIMS of a particular node.</p>
<dl class="field-list simple"> <dl class="field-list simple">
@ -423,8 +513,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_structure"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_structure">
<code class="sig-name descname">import_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">import_structure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">raw_data</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">pandas.core.frame.DataFrame</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_structure" title="Permalink to this definition"></a></dt>
<dd><p>Imports in a dataframe the data in the list raw_data at the key <code class="docutils literal notranslate"><span class="pre">_structure_label</span></code></p> <dd><p>Imports in a dataframe the data in the list raw_data at the key <code class="docutils literal notranslate"><span class="pre">_structure_label</span></code></p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -440,8 +530,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_trajectories"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_trajectories">
<code class="sig-name descname">import_trajectories</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_trajectories" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">import_trajectories</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">raw_data</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_trajectories" title="Permalink to this definition"></a></dt>
<dd><p>Imports the trajectories from the list of dicts <code class="docutils literal notranslate"><span class="pre">raw_data</span></code>.</p> <dd><p>Imports the trajectories from the list of dicts <code class="docutils literal notranslate"><span class="pre">raw_data</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -457,8 +547,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables">
<code class="sig-name descname">import_variables</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">import_variables</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">raw_data</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">pandas.core.frame.DataFrame</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables" title="Permalink to this definition"></a></dt>
<dd><p>Imports the data in <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the key <code class="docutils literal notranslate"><span class="pre">_variables_label</span></code>.</p> <dd><p>Imports the data in <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the key <code class="docutils literal notranslate"><span class="pre">_variables_label</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -474,8 +564,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories">
<code class="sig-name descname">normalize_trajectories</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">trajectories_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">normalize_trajectories</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">raw_data</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">indx</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">trajectories_key</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories" title="Permalink to this definition"></a></dt>
<dd><p>Extracts the trajectories in <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the index <code class="docutils literal notranslate"><span class="pre">index</span></code> at the key <code class="docutils literal notranslate"><span class="pre">trajectories</span> <span class="pre">key</span></code>.</p> <dd><p>Extracts the trajectories in <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the index <code class="docutils literal notranslate"><span class="pre">index</span></code> at the key <code class="docutils literal notranslate"><span class="pre">trajectories</span> <span class="pre">key</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -495,8 +585,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.one_level_normalizing"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.one_level_normalizing">
<code class="sig-name descname">one_level_normalizing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.one_level_normalizing" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">one_level_normalizing</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">raw_data</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">List</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">indx</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">int</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">key</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">str</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">pandas.core.frame.DataFrame</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.one_level_normalizing" title="Permalink to this definition"></a></dt>
<dd><p>Extracts the one-level nested data in the list <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the index <code class="docutils literal notranslate"><span class="pre">indx</span></code> at the key <code class="docutils literal notranslate"><span class="pre">key</span></code>.</p> <dd><p>Extracts the one-level nested data in the list <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the index <code class="docutils literal notranslate"><span class="pre">indx</span></code> at the key <code class="docutils literal notranslate"><span class="pre">key</span></code>.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Parameters</dt> <dt class="field-odd">Parameters</dt>
@ -516,8 +606,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.read_json_file"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.read_json_file">
<code class="sig-name descname">read_json_file</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.read_json_file" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">read_json_file</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.read_json_file" title="Permalink to this definition"></a></dt>
<dd><p>Reads the JSON file in the path self.filePath.</p> <dd><p>Reads the JSON file in the path self.filePath.</p>
<dl class="field-list simple"> <dl class="field-list simple">
<dt class="field-odd">Returns</dt> <dt class="field-odd">Returns</dt>
@ -535,8 +625,8 @@ as keys for the set of CIMS of a particular node.</p>
<div class="section" id="module-PyCTBN.PyCTBN.utility.sample_importer"> <div class="section" id="module-PyCTBN.PyCTBN.utility.sample_importer">
<span id="pyctbn-pyctbn-utility-sample-importer-module"></span><h2>PyCTBN.PyCTBN.utility.sample_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.sample_importer" title="Permalink to this headline"></a></h2> <span id="pyctbn-pyctbn-utility-sample-importer-module"></span><h2>PyCTBN.PyCTBN.utility.sample_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.sample_importer" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.sample_importer.</code><code class="sig-name descname">SampleImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectory_list</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">prior_net_structure</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.PyCTBN.utility.sample_importer.</span></span><span class="sig-name descname"><span class="pre">SampleImporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">trajectory_list</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">,</span> </span><span class="pre">numpy.ndarray</span><span class="p"><span class="pre">,</span> </span><span class="pre">List</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">variables</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">,</span> </span><span class="pre">numpy.ndarray</span><span class="p"><span class="pre">,</span> </span><span class="pre">List</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">prior_net_structure</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">Optional</span><span class="p"><span class="pre">[</span></span><span class="pre">Union</span><span class="p"><span class="pre">[</span></span><span class="pre">pandas.core.frame.DataFrame</span><span class="p"><span class="pre">,</span> </span><span class="pre">numpy.ndarray</span><span class="p"><span class="pre">,</span> </span><span class="pre">List</span><span class="p"><span class="pre">]</span></span><span class="p"><span class="pre">]</span></span></span> <span class="o"><span class="pre">=</span></span> <span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></code></a></p> <dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></code></a></p>
<p>Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare <p>Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare
the data loaded directly by using DataFrame</p> the data loaded directly by using DataFrame</p>
@ -556,21 +646,21 @@ the data loaded directly by using DataFrame</p>
</dd> </dd>
</dl> </dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.build_sorter"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.build_sorter">
<code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.build_sorter" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_sorter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sample_frame</span></span><span class="p"><span class="pre">:</span></span> <span class="n"><span class="pre">pandas.core.frame.DataFrame</span></span></em><span class="sig-paren">)</span> &#x2192; <span class="pre">List</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dd><p>Implements the abstract method build_sorter of the <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code> in order to get the ordered variables list.</p> <dd><p>Implements the abstract method build_sorter of the <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code> in order to get the ordered variables list.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.dataset_id"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.dataset_id">
<code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.dataset_id" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">dataset_id</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">str</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.dataset_id" title="Permalink to this definition"></a></dt>
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current <dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
dataset</p> dataset</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data"> <dt class="sig sig-object py" id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data">
<code class="sig-name descname">import_data</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">header_column</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">import_data</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">header_column</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -618,6 +708,9 @@ dataset</p>
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -628,9 +721,6 @@ dataset</p>
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -142,18 +146,22 @@
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul> <li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul> <li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
@ -164,12 +172,62 @@
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.html">PyCTBN.tests package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.html#subpackages">Subpackages</a><ul>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.estimators.html">PyCTBN.tests.estimators package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">PyCTBN.tests.estimators.test_parameters_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#pyctbn-tests-estimators-test-structure-constraint-based-estimator-module">PyCTBN.tests.estimators.test_structure_constraint_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">PyCTBN.tests.estimators.test_structure_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#pyctbn-tests-estimators-test-structure-score-based-estimator-module">PyCTBN.tests.estimators.test_structure_score_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.optimizers.html">PyCTBN.tests.optimizers package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.optimizers.html#pyctbn-tests-optimizers-test-hill-climbing-search-module">PyCTBN.tests.optimizers.test_hill_climbing_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.optimizers.html#pyctbn-tests-optimizers-test-tabu-search-module">PyCTBN.tests.optimizers.test_tabu_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.structure_graph.html">PyCTBN.tests.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_cim">PyCTBN.tests.structure_graph.test_cim module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#pyctbn-tests-structure-graph-test-networkgenerator-module">PyCTBN.tests.structure_graph.test_networkgenerator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_networkgraph">PyCTBN.tests.structure_graph.test_networkgraph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_sample_path">PyCTBN.tests.structure_graph.test_sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_setofcims">PyCTBN.tests.structure_graph.test_setofcims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_structure">PyCTBN.tests.structure_graph.test_structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_trajectory">PyCTBN.tests.structure_graph.test_trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#pyctbn-tests-structure-graph-test-trajectorygenerator-module">PyCTBN.tests.structure_graph.test_trajectorygenerator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.utility.html">PyCTBN.tests.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_cache">PyCTBN.tests.utility.test_cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_json_importer">PyCTBN.tests.utility.test_json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_sample_importer">PyCTBN.tests.utility.test_sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility">Module contents</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.html#module-PyCTBN.tests">Module contents</a></li>
</ul>
</li>
</ul> </ul>
</div> </div>
</div> </div>
<div class="section" id="submodules"> <div class="section" id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2> <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2>
</div> </div>
<div class="section" id="pyctbn-basic-main-module">
<h2>PyCTBN.basic_main module<a class="headerlink" href="#pyctbn-basic-main-module" title="Permalink to this headline"></a></h2>
</div>
<div class="section" id="pyctbn-setup-module">
<h2>PyCTBN.setup module<a class="headerlink" href="#pyctbn-setup-module" title="Permalink to this headline"></a></h2>
</div>
<div class="section" id="module-PyCTBN"> <div class="section" id="module-PyCTBN">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN" title="Permalink to this headline"></a></h2> <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN" title="Permalink to this headline"></a></h2>
</div> </div>
@ -203,6 +261,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -213,9 +274,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -120,162 +124,103 @@
<div class="section" id="module-PyCTBN.tests.estimators.test_parameters_estimator"> <div class="section" id="module-PyCTBN.tests.estimators.test_parameters_estimator">
<span id="pyctbn-tests-estimators-test-parameters-estimator-module"></span><h2>PyCTBN.tests.estimators.test_parameters_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_parameters_estimator" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-estimators-test-parameters-estimator-module"></span><h2>PyCTBN.tests.estimators.test_parameters_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_parameters_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.estimators.test_parameters_estimator.</code><code class="sig-name descname">TestParametersEstimatior</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.estimators.test_parameters_estimator.</span></span><span class="sig-name descname"><span class="pre">TestParametersEstimatior</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims">
<code class="sig-name descname">aux_import_sampled_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims_label</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">aux_import_sampled_cims</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cims_label</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test">
<code class="sig-name descname">cim_equality_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim1</span></em>, <em class="sig-param"><span class="n">cim2</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">cim_equality_test</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cim1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cim2</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node">
<code class="sig-name descname">equality_of_cims_of_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sampled_cims</span></em>, <em class="sig-param"><span class="n">estimated_cims</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">equality_of_cims_of_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sampled_cims</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">estimated_cims</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node">
<code class="sig-name descname">test_compute_parameters_for_node</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_compute_parameters_for_node</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init">
<code class="sig-name descname">test_fast_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_fast_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator"> <div class="section" id="pyctbn-tests-estimators-test-structure-constraint-based-estimator-module">
<span id="pyctbn-tests-estimators-test-structure-constraint-based-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_constraint_based_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator" title="Permalink to this headline"></a></h2> <h2>PyCTBN.tests.estimators.test_structure_constraint_based_estimator module<a class="headerlink" href="#pyctbn-tests-estimators-test-structure-constraint-based-estimator-module" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_constraint_based_estimator.</code><code class="sig-name descname">TestStructureConstraintBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_1">
<code class="sig-name descname">test_structure_1</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_1" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_2">
<code class="sig-name descname">test_structure_2</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_2" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_3">
<code class="sig-name descname">test_structure_3</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_3" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.tests.estimators.test_structure_estimator"> <div class="section" id="module-PyCTBN.tests.estimators.test_structure_estimator">
<span id="pyctbn-tests-estimators-test-structure-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_structure_estimator" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-estimators-test-structure-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_structure_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_estimator.</code><code class="sig-name descname">TestStructureEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.estimators.test_structure_estimator.</span></span><span class="sig-name descname"><span class="pre">TestStructureEstimator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix">
<code class="sig-name descname">test_adjacency_matrix</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_adjacency_matrix</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph">
<code class="sig-name descname">test_build_complete_graph</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_complete_graph</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix">
<code class="sig-name descname">test_build_removable_edges_matrix</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_removable_edges_matrix</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size">
<code class="sig-name descname">test_generate_possible_sub_sets_of_size</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_generate_possible_sub_sets_of_size</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph">
<code class="sig-name descname">test_save_plot_estimated_graph</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_save_plot_estimated_graph</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results">
<code class="sig-name descname">test_save_results</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_save_results</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time"> <dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time">
<code class="sig-name descname">test_time</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_time</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.tests.estimators.test_structure_score_based_estimator"> <div class="section" id="pyctbn-tests-estimators-test-structure-score-based-estimator-module">
<span id="pyctbn-tests-estimators-test-structure-score-based-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_score_based_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_structure_score_based_estimator" title="Permalink to this headline"></a></h2> <h2>PyCTBN.tests.estimators.test_structure_score_based_estimator module<a class="headerlink" href="#pyctbn-tests-estimators-test-structure-score-based-estimator-module" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_score_based_estimator.</code><code class="sig-name descname">TestStructureScoreBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_1">
<code class="sig-name descname">test_structure_1</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_1" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_2">
<code class="sig-name descname">test_structure_2</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_2" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_3">
<code class="sig-name descname">test_structure_3</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_3" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_monoprocesso">
<code class="sig-name descname">test_structure_monoprocesso</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_monoprocesso" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.tests.estimators"> <div class="section" id="module-PyCTBN.tests.estimators">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.estimators" title="Permalink to this headline"></a></h2> <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.estimators" title="Permalink to this headline"></a></h2>
@ -310,6 +255,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -320,9 +268,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -121,27 +125,29 @@
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.estimators.html">PyCTBN.tests.estimators package</a><ul> <li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.estimators.html">PyCTBN.tests.estimators package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#submodules">Submodules</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">PyCTBN.tests.estimators.test_parameters_estimator module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">PyCTBN.tests.estimators.test_parameters_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator">PyCTBN.tests.estimators.test_structure_constraint_based_estimator module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#pyctbn-tests-estimators-test-structure-constraint-based-estimator-module">PyCTBN.tests.estimators.test_structure_constraint_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">PyCTBN.tests.estimators.test_structure_estimator module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">PyCTBN.tests.estimators.test_structure_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_score_based_estimator">PyCTBN.tests.estimators.test_structure_score_based_estimator module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#pyctbn-tests-estimators-test-structure-score-based-estimator-module">PyCTBN.tests.estimators.test_structure_score_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators">Module contents</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.optimizers.html">PyCTBN.tests.optimizers package</a><ul> <li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.optimizers.html">PyCTBN.tests.optimizers package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#submodules">Submodules</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_hill_climbing_search">PyCTBN.tests.optimizers.test_hill_climbing_search module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#pyctbn-tests-optimizers-test-hill-climbing-search-module">PyCTBN.tests.optimizers.test_hill_climbing_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_tabu_search">PyCTBN.tests.optimizers.test_tabu_search module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#pyctbn-tests-optimizers-test-tabu-search-module">PyCTBN.tests.optimizers.test_tabu_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">Module contents</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.structure_graph.html">PyCTBN.tests.structure_graph package</a><ul> <li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.structure_graph.html">PyCTBN.tests.structure_graph package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#submodules">Submodules</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_cim">PyCTBN.tests.structure_graph.test_cim module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_cim">PyCTBN.tests.structure_graph.test_cim module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#pyctbn-tests-structure-graph-test-networkgenerator-module">PyCTBN.tests.structure_graph.test_networkgenerator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_networkgraph">PyCTBN.tests.structure_graph.test_networkgraph module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_networkgraph">PyCTBN.tests.structure_graph.test_networkgraph module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_sample_path">PyCTBN.tests.structure_graph.test_sample_path module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_sample_path">PyCTBN.tests.structure_graph.test_sample_path module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_setofcims">PyCTBN.tests.structure_graph.test_setofcims module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_setofcims">PyCTBN.tests.structure_graph.test_setofcims module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_structure">PyCTBN.tests.structure_graph.test_structure module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_structure">PyCTBN.tests.structure_graph.test_structure module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_trajectory">PyCTBN.tests.structure_graph.test_trajectory module</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_trajectory">PyCTBN.tests.structure_graph.test_trajectory module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#pyctbn-tests-structure-graph-test-trajectorygenerator-module">PyCTBN.tests.structure_graph.test_trajectorygenerator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph">Module contents</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph">Module contents</a></li>
</ul> </ul>
</li> </li>
@ -189,6 +195,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -199,9 +208,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -117,55 +121,11 @@
<div class="section" id="submodules"> <div class="section" id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2> <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2>
</div> </div>
<div class="section" id="module-PyCTBN.tests.optimizers.test_hill_climbing_search"> <div class="section" id="pyctbn-tests-optimizers-test-hill-climbing-search-module">
<span id="pyctbn-tests-optimizers-test-hill-climbing-search-module"></span><h2>PyCTBN.tests.optimizers.test_hill_climbing_search module<a class="headerlink" href="#module-PyCTBN.tests.optimizers.test_hill_climbing_search" title="Permalink to this headline"></a></h2> <h2>PyCTBN.tests.optimizers.test_hill_climbing_search module<a class="headerlink" href="#pyctbn-tests-optimizers-test-hill-climbing-search-module" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.optimizers.test_hill_climbing_search.</code><code class="sig-name descname">TestHillClimbingSearch</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure">
<code class="sig-name descname">test_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure_3">
<code class="sig-name descname">test_structure_3</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure_3" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.tests.optimizers.test_tabu_search"> <div class="section" id="pyctbn-tests-optimizers-test-tabu-search-module">
<span id="pyctbn-tests-optimizers-test-tabu-search-module"></span><h2>PyCTBN.tests.optimizers.test_tabu_search module<a class="headerlink" href="#module-PyCTBN.tests.optimizers.test_tabu_search" title="Permalink to this headline"></a></h2> <h2>PyCTBN.tests.optimizers.test_tabu_search module<a class="headerlink" href="#pyctbn-tests-optimizers-test-tabu-search-module" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.optimizers.test_tabu_search.</code><code class="sig-name descname">TestTabuSearch</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure">
<code class="sig-name descname">test_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure_3">
<code class="sig-name descname">test_structure_3</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure_3" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div> </div>
<div class="section" id="module-PyCTBN.tests.optimizers"> <div class="section" id="module-PyCTBN.tests.optimizers">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.optimizers" title="Permalink to this headline"></a></h2> <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.optimizers" title="Permalink to this headline"></a></h2>
@ -200,6 +160,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -210,9 +173,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -120,133 +124,136 @@
<div class="section" id="module-PyCTBN.tests.structure_graph.test_cim"> <div class="section" id="module-PyCTBN.tests.structure_graph.test_cim">
<span id="pyctbn-tests-structure-graph-test-cim-module"></span><h2>PyCTBN.tests.structure_graph.test_cim module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_cim" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-structure-graph-test-cim-module"></span><h2>PyCTBN.tests.structure_graph.test_cim module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_cim" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_cim.</code><code class="sig-name descname">TestConditionalIntensityMatrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.structure_graph.test_cim.</span></span><span class="sig-name descname"><span class="pre">TestConditionalIntensityMatrix</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_compute_cim_coefficients"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_compute_cim_coefficients">
<code class="sig-name descname">test_compute_cim_coefficients</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_compute_cim_coefficients" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_compute_cim_coefficients</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_compute_cim_coefficients" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_repr"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_repr">
<code class="sig-name descname">test_repr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_repr" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_repr</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_repr" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
</div>
<div class="section" id="pyctbn-tests-structure-graph-test-networkgenerator-module">
<h2>PyCTBN.tests.structure_graph.test_networkgenerator module<a class="headerlink" href="#pyctbn-tests-structure-graph-test-networkgenerator-module" title="Permalink to this headline"></a></h2>
</div> </div>
<div class="section" id="module-PyCTBN.tests.structure_graph.test_networkgraph"> <div class="section" id="module-PyCTBN.tests.structure_graph.test_networkgraph">
<span id="pyctbn-tests-structure-graph-test-networkgraph-module"></span><h2>PyCTBN.tests.structure_graph.test_networkgraph module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_networkgraph" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-structure-graph-test-networkgraph-module"></span><h2>PyCTBN.tests.structure_graph.test_networkgraph module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_networkgraph" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_networkgraph.</code><code class="sig-name descname">TestNetworkGraph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.structure_graph.test_networkgraph.</span></span><span class="sig-name descname"><span class="pre">TestNetworkGraph</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure">
<code class="sig-name descname">aux_build_p_combs_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">p_vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">aux_build_p_combs_structure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_vals</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_columns_filtering_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_columns_filtering_structure_for_a_node">
<code class="sig-name descname">aux_build_time_columns_filtering_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">p_indxs</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_columns_filtering_structure_for_a_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">aux_build_time_columns_filtering_structure_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_indxs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_columns_filtering_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_scalar_indexing_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_scalar_indexing_structure_for_a_node">
<code class="sig-name descname">aux_build_time_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">parents_indxs</span></em>, <em class="sig-param"><span class="n">parents_labels</span></em>, <em class="sig-param"><span class="n">parents_vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">aux_build_time_scalar_indexing_structure_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_indxs</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_labels</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_vals</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_columns_filtering_structure"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_columns_filtering_structure">
<code class="sig-name descname">aux_build_transition_columns_filtering_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">p_indxs</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_columns_filtering_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">aux_build_transition_columns_filtering_structure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_indxs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_columns_filtering_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_scalar_indexing_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_scalar_indexing_structure_for_a_node">
<code class="sig-name descname">aux_build_transition_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">parents_indxs</span></em>, <em class="sig-param"><span class="n">parents_labels</span></em>, <em class="sig-param"><span class="n">parents_values</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">aux_build_transition_scalar_indexing_structure_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">graph</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_indxs</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_labels</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_values</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_edges"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_edges">
<code class="sig-name descname">test_add_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_edges" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_add_edges</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_edges" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_nodes"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_nodes">
<code class="sig-name descname">test_add_nodes</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_nodes" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_add_nodes</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_nodes" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_p_combs_structure"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_p_combs_structure">
<code class="sig-name descname">test_build_p_combs_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_p_combs_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_p_combs_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_p_combs_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_columns_filtering_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_columns_filtering_structure_for_a_node">
<code class="sig-name descname">test_build_time_columns_filtering_structure_for_a_node</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_columns_filtering_structure_for_a_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_time_columns_filtering_structure_for_a_node</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_columns_filtering_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_scalar_indexing_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_scalar_indexing_structure_for_a_node">
<code class="sig-name descname">test_build_time_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_time_scalar_indexing_structure_for_a_node</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_columns_filtering_structure"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_columns_filtering_structure">
<code class="sig-name descname">test_build_transition_columns_filtering_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_columns_filtering_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_transition_columns_filtering_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_columns_filtering_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_scalar_indexing_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_scalar_indexing_structure_for_a_node">
<code class="sig-name descname">test_build_transition_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_transition_scalar_indexing_structure_for_a_node</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_fast_init"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_fast_init">
<code class="sig-name descname">test_fast_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_fast_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_fast_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_fast_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_node_indx"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_node_indx">
<code class="sig-name descname">test_get_node_indx</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_node_indx" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_get_node_indx</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_ordered_by_indx_set_of_parents"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_ordered_by_indx_set_of_parents">
<code class="sig-name descname">test_get_ordered_by_indx_set_of_parents</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_ordered_by_indx_set_of_parents" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_get_ordered_by_indx_set_of_parents</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_ordered_by_indx_set_of_parents" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_parents_by_id"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_parents_by_id">
<code class="sig-name descname">test_get_parents_by_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_parents_by_id" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_get_parents_by_id</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_parents_by_id" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_states_number"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_states_number">
<code class="sig-name descname">test_get_states_number</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_states_number" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_get_states_number</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_states_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -255,58 +262,58 @@
<div class="section" id="module-PyCTBN.tests.structure_graph.test_sample_path"> <div class="section" id="module-PyCTBN.tests.structure_graph.test_sample_path">
<span id="pyctbn-tests-structure-graph-test-sample-path-module"></span><h2>PyCTBN.tests.structure_graph.test_sample_path module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_sample_path" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-structure-graph-test-sample-path-module"></span><h2>PyCTBN.tests.structure_graph.test_sample_path module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_sample_path" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_sample_path.</code><code class="sig-name descname">TestSamplePath</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.structure_graph.test_sample_path.</span></span><span class="sig-name descname"><span class="pre">TestSamplePath</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_concatenated_samples"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_concatenated_samples">
<code class="sig-name descname">test_buid_samplepath_no_concatenated_samples</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_concatenated_samples" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_buid_samplepath_no_concatenated_samples</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_concatenated_samples" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_variables"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_variables">
<code class="sig-name descname">test_buid_samplepath_no_variables</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_variables" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_buid_samplepath_no_variables</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_saplepath_no_prior_net_structure"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_saplepath_no_prior_net_structure">
<code class="sig-name descname">test_build_saplepath_no_prior_net_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_saplepath_no_prior_net_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_saplepath_no_prior_net_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_saplepath_no_prior_net_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure">
<code class="sig-name descname">test_build_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure_bad_sorter"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure_bad_sorter">
<code class="sig-name descname">test_build_structure_bad_sorter</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure_bad_sorter" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_structure_bad_sorter</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure_bad_sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_trajectories"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_trajectories">
<code class="sig-name descname">test_build_trajectories</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_trajectories" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_trajectories</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_trajectories" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse">
<code class="sig-name descname">test_init_not_filled_dataframse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init_not_filled_dataframse</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer">
<code class="sig-name descname">test_init_not_initialized_importer</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init_not_initialized_importer</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -315,27 +322,27 @@
<div class="section" id="module-PyCTBN.tests.structure_graph.test_setofcims"> <div class="section" id="module-PyCTBN.tests.structure_graph.test_setofcims">
<span id="pyctbn-tests-structure-graph-test-setofcims-module"></span><h2>PyCTBN.tests.structure_graph.test_setofcims module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_setofcims" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-structure-graph-test-setofcims-module"></span><h2>PyCTBN.tests.structure_graph.test_setofcims module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_setofcims" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_setofcims.</code><code class="sig-name descname">TestSetOfCims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.structure_graph.test_setofcims.</span></span><span class="sig-name descname"><span class="pre">TestSetOfCims</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method">
<code class="sig-name descname">another_filtering_method</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">p_combs</span></em>, <em class="sig-param"><span class="n">mask</span></em>, <em class="sig-param"><span class="n">parent_value</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">another_filtering_method</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">p_combs</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">mask</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parent_value</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_build_cims"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_build_cims">
<code class="sig-name descname">aux_test_build_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">p_values</span></em>, <em class="sig-param"><span class="n">node_states</span></em>, <em class="sig-param"><span class="n">p_combs</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_build_cims" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">aux_test_build_cims</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_values</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">node_states</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_combs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_build_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_init">
<code class="sig-name descname">aux_test_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">parents_states_number</span></em>, <em class="sig-param"><span class="n">node_states_number</span></em>, <em class="sig-param"><span class="n">p_combs</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">aux_test_init</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">node_id</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">parents_states_number</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">node_states_number</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">p_combs</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.build_p_comb_structure_for_a_node"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.build_p_comb_structure_for_a_node">
<code class="sig-name descname">build_p_comb_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_values</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.build_p_comb_structure_for_a_node" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">build_p_comb_structure_for_a_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">parents_values</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.build_p_comb_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd><p>Builds the combinatory structure that contains the combinations of all the values contained in parents_values.</p> <dd><p>Builds the combinatory structure that contains the combinations of all the values contained in parents_values.</p>
<dl class="simple"> <dl class="simple">
<dt>Parameters:</dt><dd><p>parents_values: the cardinalities of the nodes</p> <dt>Parameters:</dt><dd><p>parents_values: the cardinalities of the nodes</p>
@ -346,24 +353,24 @@
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_build_cims"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_build_cims">
<code class="sig-name descname">test_build_cims</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_build_cims" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_cims</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_build_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_filter_cims_with_mask"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_filter_cims_with_mask">
<code class="sig-name descname">test_filter_cims_with_mask</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_filter_cims_with_mask" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_filter_cims_with_mask</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_filter_cims_with_mask" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -372,53 +379,53 @@
<div class="section" id="module-PyCTBN.tests.structure_graph.test_structure"> <div class="section" id="module-PyCTBN.tests.structure_graph.test_structure">
<span id="pyctbn-tests-structure-graph-test-structure-module"></span><h2>PyCTBN.tests.structure_graph.test_structure module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_structure" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-structure-graph-test-structure-module"></span><h2>PyCTBN.tests.structure_graph.test_structure module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_structure" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_structure.</code><code class="sig-name descname">TestStructure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.structure_graph.test_structure.</span></span><span class="sig-name descname"><span class="pre">TestStructure</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_edges_operations"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_edges_operations">
<code class="sig-name descname">test_edges_operations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_edges_operations" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_edges_operations</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_edges_operations" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_equality"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_equality">
<code class="sig-name descname">test_equality</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_equality" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_equality</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_equality" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_id"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_id">
<code class="sig-name descname">test_get_node_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_id" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_get_node_id</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_id" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_indx"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_indx">
<code class="sig-name descname">test_get_node_indx</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_indx" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_get_node_indx</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_positional_node_indx"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_positional_node_indx">
<code class="sig-name descname">test_get_positional_node_indx</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_positional_node_indx" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_get_positional_node_indx</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_positional_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_states_number"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_states_number">
<code class="sig-name descname">test_get_states_number</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_states_number" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_get_states_number</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_states_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_repr"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_repr">
<code class="sig-name descname">test_repr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_repr" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_repr</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_repr" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -427,22 +434,25 @@
<div class="section" id="module-PyCTBN.tests.structure_graph.test_trajectory"> <div class="section" id="module-PyCTBN.tests.structure_graph.test_trajectory">
<span id="pyctbn-tests-structure-graph-test-trajectory-module"></span><h2>PyCTBN.tests.structure_graph.test_trajectory module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_trajectory" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-structure-graph-test-trajectory-module"></span><h2>PyCTBN.tests.structure_graph.test_trajectory module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_trajectory" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_trajectory.</code><code class="sig-name descname">TestTrajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.structure_graph.test_trajectory.</span></span><span class="sig-name descname"><span class="pre">TestTrajectory</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
</div>
<div class="section" id="pyctbn-tests-structure-graph-test-trajectorygenerator-module">
<h2>PyCTBN.tests.structure_graph.test_trajectorygenerator module<a class="headerlink" href="#pyctbn-tests-structure-graph-test-trajectorygenerator-module" title="Permalink to this headline"></a></h2>
</div> </div>
<div class="section" id="module-PyCTBN.tests.structure_graph"> <div class="section" id="module-PyCTBN.tests.structure_graph">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.structure_graph" title="Permalink to this headline"></a></h2> <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.structure_graph" title="Permalink to this headline"></a></h2>
@ -477,6 +487,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -487,9 +500,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -120,27 +124,27 @@
<div class="section" id="module-PyCTBN.tests.utility.test_cache"> <div class="section" id="module-PyCTBN.tests.utility.test_cache">
<span id="pyctbn-tests-utility-test-cache-module"></span><h2>PyCTBN.tests.utility.test_cache module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_cache" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-utility-test-cache-module"></span><h2>PyCTBN.tests.utility.test_cache module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_cache" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.utility.test_cache.TestCache"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.utility.test_cache.</code><code class="sig-name descname">TestCache</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.utility.test_cache.</span></span><span class="sig-name descname"><span class="pre">TestCache</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_cache.TestCache.test_clear"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache.test_clear">
<code class="sig-name descname">test_clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_clear" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_clear</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_clear" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_cache.TestCache.test_find"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache.test_find">
<code class="sig-name descname">test_find</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_find" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_find</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_find" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_cache.TestCache.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_cache.TestCache.test_put"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache.test_put">
<code class="sig-name descname">test_put</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_put" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_put</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_put" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -149,108 +153,108 @@
<div class="section" id="module-PyCTBN.tests.utility.test_json_importer"> <div class="section" id="module-PyCTBN.tests.utility.test_json_importer">
<span id="pyctbn-tests-utility-test-json-importer-module"></span><h2>PyCTBN.tests.utility.test_json_importer module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_json_importer" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-utility-test-json-importer-module"></span><h2>PyCTBN.tests.utility.test_json_importer module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_json_importer" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.utility.test_json_importer.</code><code class="sig-name descname">TestJsonImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.utility.test_json_importer.</span></span><span class="sig-name descname"><span class="pre">TestJsonImporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered">
<code class="sig-name descname">ordered</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">obj</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">ordered</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">obj</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter">
<code class="sig-name descname">test_build_sorter</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_build_sorter</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame">
<code class="sig-name descname">test_clear_concatenated_frame</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_clear_concatenated_frame</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list">
<code class="sig-name descname">test_clear_data_frame_list</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_clear_data_frame_list</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames">
<code class="sig-name descname">test_compute_row_delta_in_all_frames</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_compute_row_delta_in_all_frames</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames_not_init_sorter"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames_not_init_sorter">
<code class="sig-name descname">test_compute_row_delta_in_all_frames_not_init_sorter</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames_not_init_sorter" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_compute_row_delta_in_all_frames_not_init_sorter</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames_not_init_sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame">
<code class="sig-name descname">test_compute_row_delta_single_samples_frame</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_compute_row_delta_single_samples_frame</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id">
<code class="sig-name descname">test_dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_dataset_id</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path">
<code class="sig-name descname">test_file_path</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_file_path</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data">
<code class="sig-name descname">test_import_data</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_import_data</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims">
<code class="sig-name descname">test_import_sampled_cims</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_import_sampled_cims</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure">
<code class="sig-name descname">test_import_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_import_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables">
<code class="sig-name descname">test_import_variables</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_import_variables</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories">
<code class="sig-name descname">test_normalize_trajectories</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_normalize_trajectories</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx">
<code class="sig-name descname">test_normalize_trajectories_wrong_indx</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_normalize_trajectories_wrong_indx</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key">
<code class="sig-name descname">test_normalize_trajectories_wrong_key</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_normalize_trajectories_wrong_key</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found">
<code class="sig-name descname">test_read_json_file_found</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_read_json_file_found</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found">
<code class="sig-name descname">test_read_json_file_not_found</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_read_json_file_not_found</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -259,28 +263,28 @@
<div class="section" id="module-PyCTBN.tests.utility.test_sample_importer"> <div class="section" id="module-PyCTBN.tests.utility.test_sample_importer">
<span id="pyctbn-tests-utility-test-sample-importer-module"></span><h2>PyCTBN.tests.utility.test_sample_importer module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_sample_importer" title="Permalink to this headline"></a></h2> <span id="pyctbn-tests-utility-test-sample-importer-module"></span><h2>PyCTBN.tests.utility.test_sample_importer module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_sample_importer" title="Permalink to this headline"></a></h2>
<dl class="py class"> <dl class="py class">
<dt id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.utility.test_sample_importer.</code><code class="sig-name descname">TestSampleImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.utility.test_sample_importer.</span></span><span class="sig-name descname"><span class="pre">TestSampleImporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p> <dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered">
<code class="sig-name descname">ordered</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">obj</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">ordered</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">obj</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.setUpClass"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.setUpClass" title="Permalink to this definition"></a></dt> <em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p> <dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl> </dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_init"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_init" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
<dl class="py method"> <dl class="py method">
<dt id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_order"> <dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_order">
<code class="sig-name descname">test_order</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_order" title="Permalink to this definition"></a></dt> <span class="sig-name descname"><span class="pre">test_order</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_order" title="Permalink to this definition"></a></dt>
<dd></dd></dl> <dd></dd></dl>
</dd></dl> </dd></dl>
@ -319,6 +323,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -329,9 +336,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -12,6 +12,14 @@ PyCTBN.PyCTBN.structure\_graph.conditional\_intensity\_matrix module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.PyCTBN.structure\_graph.network\_generator module
--------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.network_generator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.network\_graph module PyCTBN.PyCTBN.structure\_graph.network\_graph module
---------------------------------------------------- ----------------------------------------------------
@ -52,6 +60,14 @@ PyCTBN.PyCTBN.structure\_graph.trajectory module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.PyCTBN.structure\_graph.trajectory\_generator module
-----------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.trajectory_generator
:members:
:undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------

@ -4,6 +4,14 @@ PyCTBN.PyCTBN.utility package
Submodules Submodules
---------- ----------
PyCTBN.PyCTBN.utility.abstract\_exporter module
-----------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.abstract_exporter
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.abstract\_importer module PyCTBN.PyCTBN.utility.abstract\_importer module
----------------------------------------------- -----------------------------------------------
@ -20,6 +28,14 @@ PyCTBN.PyCTBN.utility.cache module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.PyCTBN.utility.json\_exporter module
-------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.json_exporter
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.json\_importer module PyCTBN.PyCTBN.utility.json\_importer module
------------------------------------------- -------------------------------------------

@ -8,10 +8,27 @@ Subpackages
:maxdepth: 4 :maxdepth: 4
PyCTBN.PyCTBN PyCTBN.PyCTBN
PyCTBN.tests
Submodules Submodules
---------- ----------
PyCTBN.basic\_main module
-------------------------
.. automodule:: PyCTBN.basic_main
:members:
:undoc-members:
:show-inheritance:
PyCTBN.setup module
-------------------
.. automodule:: PyCTBN.setup
:members:
:undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------

@ -12,6 +12,14 @@ PyCTBN.tests.structure\_graph.test\_cim module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.tests.structure\_graph.test\_networkgenerator module
-----------------------------------------------------------
.. automodule:: PyCTBN.tests.structure_graph.test_networkgenerator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.tests.structure\_graph.test\_networkgraph module PyCTBN.tests.structure\_graph.test\_networkgraph module
------------------------------------------------------- -------------------------------------------------------
@ -52,6 +60,14 @@ PyCTBN.tests.structure\_graph.test\_trajectory module
:undoc-members: :undoc-members:
:show-inheritance: :show-inheritance:
PyCTBN.tests.structure\_graph.test\_trajectorygenerator module
--------------------------------------------------------------
.. automodule:: PyCTBN.tests.structure_graph.test_trajectorygenerator
:members:
:undoc-members:
:show-inheritance:
Module contents Module contents
--------------- ---------------

@ -0,0 +1,7 @@
example module
==============
.. automodule:: example
:members:
:undoc-members:
:show-inheritance:

@ -4,5 +4,6 @@ PyCTBN
.. toctree:: .. toctree::
:maxdepth: 4 :maxdepth: 4
PyCTBN.PyCTBN PyCTBN
examples example
setup

@ -4,7 +4,7 @@
* *
* Sphinx stylesheet -- basic theme. * Sphinx stylesheet -- basic theme.
* *
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details. * :license: BSD, see LICENSE for details.
* *
*/ */
@ -130,7 +130,7 @@ ul.search li a {
font-weight: bold; font-weight: bold;
} }
ul.search li div.context { ul.search li p.context {
color: #888; color: #888;
margin: 2px 0 0 30px; margin: 2px 0 0 30px;
text-align: left; text-align: left;
@ -277,25 +277,25 @@ p.rubric {
font-weight: bold; font-weight: bold;
} }
img.align-left, .figure.align-left, object.align-left { img.align-left, figure.align-left, .figure.align-left, object.align-left {
clear: left; clear: left;
float: left; float: left;
margin-right: 1em; margin-right: 1em;
} }
img.align-right, .figure.align-right, object.align-right { img.align-right, figure.align-right, .figure.align-right, object.align-right {
clear: right; clear: right;
float: right; float: right;
margin-left: 1em; margin-left: 1em;
} }
img.align-center, .figure.align-center, object.align-center { img.align-center, figure.align-center, .figure.align-center, object.align-center {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }
img.align-default, .figure.align-default { img.align-default, figure.align-default, .figure.align-default {
display: block; display: block;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
@ -319,7 +319,8 @@ img.align-default, .figure.align-default {
/* -- sidebars -------------------------------------------------------------- */ /* -- sidebars -------------------------------------------------------------- */
div.sidebar { div.sidebar,
aside.sidebar {
margin: 0 0 0.5em 1em; margin: 0 0 0.5em 1em;
border: 1px solid #ddb; border: 1px solid #ddb;
padding: 7px; padding: 7px;
@ -377,12 +378,14 @@ div.body p.centered {
/* -- content of sidebars/topics/admonitions -------------------------------- */ /* -- content of sidebars/topics/admonitions -------------------------------- */
div.sidebar > :last-child, div.sidebar > :last-child,
aside.sidebar > :last-child,
div.topic > :last-child, div.topic > :last-child,
div.admonition > :last-child { div.admonition > :last-child {
margin-bottom: 0; margin-bottom: 0;
} }
div.sidebar::after, div.sidebar::after,
aside.sidebar::after,
div.topic::after, div.topic::after,
div.admonition::after, div.admonition::after,
blockquote::after { blockquote::after {
@ -455,20 +458,22 @@ td > :last-child {
/* -- figures --------------------------------------------------------------- */ /* -- figures --------------------------------------------------------------- */
div.figure { div.figure, figure {
margin: 0.5em; margin: 0.5em;
padding: 0.5em; padding: 0.5em;
} }
div.figure p.caption { div.figure p.caption, figcaption {
padding: 0.3em; padding: 0.3em;
} }
div.figure p.caption span.caption-number { div.figure p.caption span.caption-number,
figcaption span.caption-number {
font-style: italic; font-style: italic;
} }
div.figure p.caption span.caption-text { div.figure p.caption span.caption-text,
figcaption span.caption-text {
} }
/* -- field list styles ----------------------------------------------------- */ /* -- field list styles ----------------------------------------------------- */
@ -503,6 +508,63 @@ table.hlist td {
vertical-align: top; vertical-align: top;
} }
/* -- object description styles --------------------------------------------- */
.sig {
font-family: 'Consolas', 'Menlo', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', monospace;
}
.sig-name, code.descname {
background-color: transparent;
font-weight: bold;
}
.sig-name {
font-size: 1.1em;
}
code.descname {
font-size: 1.2em;
}
.sig-prename, code.descclassname {
background-color: transparent;
}
.optional {
font-size: 1.3em;
}
.sig-paren {
font-size: larger;
}
.sig-param.n {
font-style: italic;
}
/* C++ specific styling */
.sig-inline.c-texpr,
.sig-inline.cpp-texpr {
font-family: unset;
}
.sig.c .k, .sig.c .kt,
.sig.cpp .k, .sig.cpp .kt {
color: #0033B3;
}
.sig.c .m,
.sig.cpp .m {
color: #1750EB;
}
.sig.c .s, .sig.c .sc,
.sig.cpp .s, .sig.cpp .sc {
color: #067D17;
}
/* -- other body styles ----------------------------------------------------- */ /* -- other body styles ----------------------------------------------------- */
@ -629,14 +691,6 @@ dl.glossary dt {
font-size: 1.1em; font-size: 1.1em;
} }
.optional {
font-size: 1.3em;
}
.sig-paren {
font-size: larger;
}
.versionmodified { .versionmodified {
font-style: italic; font-style: italic;
} }
@ -767,6 +821,10 @@ table.highlighttable td.linenos,
span.linenos, span.linenos,
div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */ div.doctest > div.highlight span.gp { /* gp: Generic.Prompt */
user-select: none; user-select: none;
-webkit-user-select: text; /* Safari fallback only */
-webkit-user-select: none; /* Chrome/Safari */
-moz-user-select: none; /* Firefox */
-ms-user-select: none; /* IE10+ */
} }
div.code-block-caption span.caption-number { div.code-block-caption span.caption-number {
@ -781,16 +839,6 @@ div.literal-block-wrapper {
margin: 1em 0; margin: 1em 0;
} }
code.descname {
background-color: transparent;
font-weight: bold;
font-size: 1.2em;
}
code.descclassname {
background-color: transparent;
}
code.xref, a code { code.xref, a code {
background-color: transparent; background-color: transparent;
font-weight: bold; font-weight: bold;

@ -4,7 +4,7 @@
* *
* Sphinx JavaScript utilities for all documentation. * Sphinx JavaScript utilities for all documentation.
* *
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details. * :license: BSD, see LICENSE for details.
* *
*/ */
@ -29,9 +29,14 @@ if (!window.console || !console.firebug) {
/** /**
* small helper function to urldecode strings * small helper function to urldecode strings
*
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
*/ */
jQuery.urldecode = function(x) { jQuery.urldecode = function(x) {
return decodeURIComponent(x).replace(/\+/g, ' '); if (!x) {
return x
}
return decodeURIComponent(x.replace(/\+/g, ' '));
}; };
/** /**

@ -5,7 +5,7 @@
* This script contains the language-specific data used by searchtools.js, * This script contains the language-specific data used by searchtools.js,
* namely the list of stopwords, stemmer, scorer and splitter. * namely the list of stopwords, stemmer, scorer and splitter.
* *
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details. * :license: BSD, see LICENSE for details.
* *
*/ */
@ -13,7 +13,8 @@
var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"]; var stopwords = ["a","and","are","as","at","be","but","by","for","if","in","into","is","it","near","no","not","of","on","or","such","that","the","their","then","there","these","they","this","to","was","will","with"];
/* Non-minified version JS is _stemmer.js if file is provided */ /* Non-minified version is copied as a separate JS file, is available */
/** /**
* Porter Stemmer * Porter Stemmer
*/ */
@ -199,7 +200,6 @@ var Stemmer = function() {
var splitChars = (function() { var splitChars = (function() {
var result = {}; var result = {};
var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648, var singles = [96, 180, 187, 191, 215, 247, 749, 885, 903, 907, 909, 930, 1014, 1648,

@ -1,7 +1,7 @@
pre { line-height: 125%; } pre { line-height: 125%; margin: 0; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } td.linenos pre { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; } span.linenos { color: #000000; background-color: #f0f0f0; padding: 0 5px 0 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } td.linenos pre.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; } span.linenos.special { color: #000000; background-color: #ffffc0; padding: 0 5px 0 5px; }
.highlight .hll { background-color: #ffffcc } .highlight .hll { background-color: #ffffcc }
.highlight { background: #ffffff; } .highlight { background: #ffffff; }

@ -4,7 +4,7 @@
* *
* Sphinx JavaScript utilities for the full-text search. * Sphinx JavaScript utilities for the full-text search.
* *
* :copyright: Copyright 2007-2020 by the Sphinx team, see AUTHORS. * :copyright: Copyright 2007-2021 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details. * :license: BSD, see LICENSE for details.
* *
*/ */
@ -248,7 +248,7 @@ var Search = {
// results left, load the summary and display it // results left, load the summary and display it
if (results.length) { if (results.length) {
var item = results.pop(); var item = results.pop();
var listItem = $('<li style="display:none"></li>'); var listItem = $('<li></li>');
var requestUrl = ""; var requestUrl = "";
var linkUrl = ""; var linkUrl = "";
if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') { if (DOCUMENTATION_OPTIONS.BUILDER === 'dirhtml') {
@ -273,9 +273,9 @@ var Search = {
if (item[3]) { if (item[3]) {
listItem.append($('<span> (' + item[3] + ')</span>')); listItem.append($('<span> (' + item[3] + ')</span>'));
Search.output.append(listItem); Search.output.append(listItem);
listItem.slideDown(5, function() { setTimeout(function() {
displayNextItem(); displayNextItem();
}); }, 5);
} else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) { } else if (DOCUMENTATION_OPTIONS.HAS_SOURCE) {
$.ajax({url: requestUrl, $.ajax({url: requestUrl,
dataType: "text", dataType: "text",
@ -285,16 +285,16 @@ var Search = {
listItem.append(Search.makeSearchSummary(data, searchterms, hlterms)); listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
} }
Search.output.append(listItem); Search.output.append(listItem);
listItem.slideDown(5, function() { setTimeout(function() {
displayNextItem(); displayNextItem();
}); }, 5);
}}); }});
} else { } else {
// no source available, just display title // no source available, just display title
Search.output.append(listItem); Search.output.append(listItem);
listItem.slideDown(5, function() { setTimeout(function() {
displayNextItem(); displayNextItem();
}); }, 5);
} }
} }
// search finished, update title and status message // search finished, update title and status message
@ -379,6 +379,13 @@ var Search = {
return results; return results;
}, },
/**
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_Expressions
*/
escapeRegExp : function(string) {
return string.replace(/[.*+\-?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
},
/** /**
* search for full-text terms in the index * search for full-text terms in the index
*/ */
@ -402,13 +409,14 @@ var Search = {
]; ];
// add support for partial matches // add support for partial matches
if (word.length > 2) { if (word.length > 2) {
var word_regex = this.escapeRegExp(word);
for (var w in terms) { for (var w in terms) {
if (w.match(word) && !terms[word]) { if (w.match(word_regex) && !terms[word]) {
_o.push({files: terms[w], score: Scorer.partialTerm}) _o.push({files: terms[w], score: Scorer.partialTerm})
} }
} }
for (var w in titleterms) { for (var w in titleterms) {
if (w.match(word) && !titleterms[word]) { if (w.match(word_regex) && !titleterms[word]) {
_o.push({files: titleterms[w], score: Scorer.partialTitle}) _o.push({files: titleterms[w], score: Scorer.partialTitle})
} }
} }
@ -501,7 +509,7 @@ var Search = {
var excerpt = ((start > 0) ? '...' : '') + var excerpt = ((start > 0) ? '...' : '') +
$.trim(text.substr(start, 240)) + $.trim(text.substr(start, 240)) +
((start + 240 - text.length) ? '...' : ''); ((start + 240 - text.length) ? '...' : '');
var rv = $('<div class="context"></div>').text(excerpt); var rv = $('<p class="context"></p>').text(excerpt);
$.each(hlwords, function() { $.each(hlwords, function() {
rv = rv.highlightText(this, 'highlighted'); rv = rv.highlightText(this, 'highlighted');
}); });

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -144,6 +148,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -154,9 +161,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -0,0 +1,188 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="" lang="" version="-//W3C//DTD XHTML 1.1//EN" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>example module &mdash; PyCTBN 2.0 documentation</title>
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'/>
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="public" />
<meta name="robots" content="follow, all" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Add jQuery library -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-nav-search">
<a href="index.html" class="fa fa-home"> PyCTBN </a>
<div role="search">
<form id ="rtd-search-form" class="wy-form"
action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<p class="caption"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#subpackages">Subpackages</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a><ul>
<li class="toctree-l2"><a class="reference internal" href="examples.html#installation-usage">Installation/Usage</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#implementing-your-own-data-importer">Implementing your own data importer</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#parameters-estimation-example">Parameters Estimation Example</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#structure-estimation-example">Structure Estimation Example</a></li>
</ul>
</li>
</ul>
</div>
&nbsp;
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" id="barra-mobile" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="#">Porão do Juca</a>
</nav>
<div class="wy-nav-content">
<div class="fundo-claro">
</div>
<div class="fundo-escuro">
</div>
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<!-- <ul class="wy-breadcrumbs"> -->
<!-- <li><a href="#">Docs</a> &raquo;</li> -->
<!-- <li>Features</li> -->
<!-- <li class="wy-breadcrumbs-aside"> -->
<!-- <a href="_sources/index.txt" rel="nofollow"> View page source</a> -->
<!-- </li> -->
<!-- </ul> -->
<!-- <hr/> -->
</div>
<div role="main" class="">
<div id="content" class="hfeed entry-container hentry">
<div class="section" id="module-example">
<span id="example-module"></span><h1>example module<a class="headerlink" href="#module-example" title="Permalink to this headline"></a></h1>
<dl class="py function">
<dt class="sig sig-object py" id="example.main">
<span class="sig-prename descclassname"><span class="pre">example.</span></span><span class="sig-name descname"><span class="pre">main</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#example.main" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</div>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2021, Bregoli Alessandro, Martini Filippo, Moretti Luca.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/jucacrispim/sphinx_pdj_theme">theme</a> provided by <a href="http://poraodojuca.net">Porão do Juca</a>.
</footer>
</div>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'2.0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script>
<script type="text/javascript" src="_static/jquery.js">
</script>
<script type="text/javascript" src="_static/underscore.js">
</script>
<script type="text/javascript" src="_static/doctools.js">
</script>
<script type="text/javascript"
src="_static/js/theme.js"></script>
<script type="text/javascript"
src="_static/js/pdj.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -268,6 +272,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -278,9 +285,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -134,14 +138,17 @@
| <a href="#S"><strong>S</strong></a> | <a href="#S"><strong>S</strong></a>
| <a href="#T"><strong>T</strong></a> | <a href="#T"><strong>T</strong></a>
| <a href="#V"><strong>V</strong></a> | <a href="#V"><strong>V</strong></a>
| <a href="#W"><strong>W</strong></a>
</div> </div>
<h2 id="A">A</h2> <h2 id="A">A</h2>
<table style="width: 100%" class="indextable genindextable"><tr> <table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter">AbstractExporter (class in PyCTBN.PyCTBN.utility.abstract_exporter)</a>
</li>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter">AbstractImporter (class in PyCTBN.PyCTBN.utility.abstract_importer)</a> <li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter">AbstractImporter (class in PyCTBN.PyCTBN.utility.abstract_importer)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims">actual_cims() (PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims">actual_cims (PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge">add_edge() (PyCTBN.PyCTBN.structure_graph.structure.Structure method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge">add_edge() (PyCTBN.PyCTBN.structure_graph.structure.Structure method)</a>
</li> </li>
@ -149,12 +156,14 @@
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes">add_nodes() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes">add_nodes() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix">adjacency_matrix() (PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator method)</a> <li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.add_trajectory">add_trajectory() (PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter method)</a>
</li> </li>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method">another_filtering_method() (PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix">adjacency_matrix() (PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator method)</a>
</li> </li>
</ul></td> </ul></td>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method">another_filtering_method() (PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims method)</a>
</li>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure">aux_build_p_combs_structure() (PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph method)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure">aux_build_p_combs_structure() (PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph method)</a>
</li> </li>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_columns_filtering_structure_for_a_node">aux_build_time_columns_filtering_structure_for_a_node() (PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph method)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_columns_filtering_structure_for_a_node">aux_build_time_columns_filtering_structure_for_a_node() (PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph method)</a>
@ -223,9 +232,13 @@
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.cache.Cache">Cache (class in PyCTBN.PyCTBN.utility.cache)</a> <li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.cache.Cache">Cache (class in PyCTBN.PyCTBN.utility.cache)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim">cim() (PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim">cim (PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix property)</a>
</li> </li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test">cim_equality_test() (PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior method)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test">cim_equality_test() (PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior method)</a>
</li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.cims">cims (PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator property)</a>
</li>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json">cims_to_json() (PyCTBN.PyCTBN.utility.json_exporter.JsonExporter method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges">clean_structure_edges() (PyCTBN.PyCTBN.structure_graph.structure.Structure method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges">clean_structure_edges() (PyCTBN.PyCTBN.structure_graph.structure.Structure method)</a>
</li> </li>
@ -241,7 +254,7 @@
</li> </li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test">complete_test() (PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test">complete_test() (PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory">complete_trajectory() (PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory">complete_trajectory (PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory property)</a>
</li> </li>
</ul></td> </ul></td>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
@ -259,13 +272,15 @@
</li> </li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value">compute_thumb_value() (PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value">compute_thumb_value() (PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples">concatenated_samples() (PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a> <li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples">concatenated_samples (PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">ConditionalIntensityMatrix (class in PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">ConditionalIntensityMatrix (class in PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.optimizers.html#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer">ConstraintBasedOptimizer (class in PyCTBN.PyCTBN.optimizers.constraint_based_optimizer)</a> <li><a href="PyCTBN.PyCTBN.optimizers.html#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer">ConstraintBasedOptimizer (class in PyCTBN.PyCTBN.optimizers.constraint_based_optimizer)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge">contains_edge() (PyCTBN.PyCTBN.structure_graph.structure.Structure method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge">contains_edge() (PyCTBN.PyCTBN.structure_graph.structure.Structure method)</a>
</li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample">CTBN_Sample() (PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm">ctpc_algorithm() (PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm">ctpc_algorithm() (PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator method)</a>
</li> </li>
@ -284,12 +299,16 @@
</li> </li>
</ul></li> </ul></li>
</ul></td> </ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.dyn_str">dyn_str (PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator property)</a>
</li>
</ul></td>
</tr></table> </tr></table>
<h2 id="E">E</h2> <h2 id="E">E</h2>
<table style="width: 100%" class="indextable genindextable"><tr> <table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges">edges() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges">edges (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.edges">(PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.edges">(PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a>
@ -297,16 +316,23 @@
</ul></li> </ul></li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node">equality_of_cims_of_node() (PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior method)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node">equality_of_cims_of_node() (PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior method)</a>
</li> </li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents">estimate_parents() (PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents">estimate_parents() (PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator method)</a>
</li> </li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure">estimate_structure() (PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure">estimate_structure() (PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator method)</a>
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure">(PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure">(PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure">(PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure">(PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator method)</a>
</li>
</ul></li>
<li>
example
<ul>
<li><a href="example.html#module-example">module</a>
</li> </li>
</ul></li> </ul></li>
</ul></td> </ul></td>
@ -325,7 +351,7 @@
</ul></li> </ul></li>
</ul></td> </ul></td>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path">file_path() (PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a> <li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path">file_path (PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask">filter_cims_with_mask() (PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask">filter_cims_with_mask() (PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims method)</a>
</li> </li>
@ -337,6 +363,10 @@
<h2 id="G">G</h2> <h2 id="G">G</h2>
<table style="width: 100%" class="indextable genindextable"><tr> <table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_cims">generate_cims() (PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator method)</a>
</li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_graph">generate_graph() (PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator method)</a>
</li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size">generate_possible_sub_sets_of_size() (PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator static method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size">generate_possible_sub_sets_of_size() (PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator static method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number">get_cims_number() (PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number">get_cims_number() (PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims method)</a>
@ -371,6 +401,8 @@
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number">(PyCTBN.PyCTBN.structure_graph.structure.Structure method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number">(PyCTBN.PyCTBN.structure_graph.structure.Structure method)</a>
</li> </li>
</ul></li> </ul></li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.graph">graph (PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator property)</a>
</li>
</ul></td> </ul></td>
</tr></table> </tr></table>
@ -381,7 +413,7 @@
</li> </li>
</ul></td> </ul></td>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure">has_prior_net_structure() (PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure">has_prior_net_structure (PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.optimizers.html#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing">HillClimbing (class in PyCTBN.PyCTBN.optimizers.hill_climbing_search)</a> <li><a href="PyCTBN.PyCTBN.optimizers.html#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing">HillClimbing (class in PyCTBN.PyCTBN.optimizers.hill_climbing_search)</a>
</li> </li>
@ -414,6 +446,10 @@
<h2 id="J">J</h2> <h2 id="J">J</h2>
<table style="width: 100%" class="indextable genindextable"><tr> <table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter">JsonExporter (class in PyCTBN.PyCTBN.utility.json_exporter)</a>
</li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.json_importer.JsonImporter">JsonImporter (class in PyCTBN.PyCTBN.utility.json_importer)</a> <li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.json_importer.JsonImporter">JsonImporter (class in PyCTBN.PyCTBN.utility.json_importer)</a>
</li> </li>
@ -423,6 +459,8 @@
<h2 id="M">M</h2> <h2 id="M">M</h2>
<table style="width: 100%" class="indextable genindextable"><tr> <table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="example.html#example.main">main() (in module example)</a>
</li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q">marginal_likelihood_q() (PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q">marginal_likelihood_q() (PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta">marginal_likelihood_theta() (PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta">marginal_likelihood_theta() (PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator method)</a>
@ -431,6 +469,8 @@
module module
<ul> <ul>
<li><a href="example.html#module-example">example</a>
</li>
<li><a href="PyCTBN.html#module-PyCTBN">PyCTBN</a> <li><a href="PyCTBN.html#module-PyCTBN">PyCTBN</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">PyCTBN.PyCTBN</a> <li><a href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">PyCTBN.PyCTBN</a>
@ -460,6 +500,8 @@
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">PyCTBN.PyCTBN.structure_graph</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">PyCTBN.PyCTBN.structure_graph</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix</a>
</li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph</a>
</li> </li>
@ -470,12 +512,18 @@
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory</a>
</li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">PyCTBN.PyCTBN.utility</a> <li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">PyCTBN.PyCTBN.utility</a>
</li>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer</a> <li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache</a> <li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache</a>
</li>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer</a> <li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer</a>
</li> </li>
@ -486,18 +534,10 @@
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators">PyCTBN.tests.estimators</a> <li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators">PyCTBN.tests.estimators</a>
</li> </li>
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">PyCTBN.tests.estimators.test_parameters_estimator</a> <li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">PyCTBN.tests.estimators.test_parameters_estimator</a>
</li>
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator">PyCTBN.tests.estimators.test_structure_constraint_based_estimator</a>
</li> </li>
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">PyCTBN.tests.estimators.test_structure_estimator</a> <li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">PyCTBN.tests.estimators.test_structure_estimator</a>
</li>
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_score_based_estimator">PyCTBN.tests.estimators.test_structure_score_based_estimator</a>
</li> </li>
<li><a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">PyCTBN.tests.optimizers</a> <li><a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">PyCTBN.tests.optimizers</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_hill_climbing_search">PyCTBN.tests.optimizers.test_hill_climbing_search</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_tabu_search">PyCTBN.tests.optimizers.test_tabu_search</a>
</li> </li>
<li><a href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph">PyCTBN.tests.structure_graph</a> <li><a href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph">PyCTBN.tests.structure_graph</a>
</li> </li>
@ -523,16 +563,22 @@
</li> </li>
</ul></li> </ul></li>
</ul></td> </ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.multi_trajectory">multi_trajectory() (PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator method)</a>
</li>
</ul></td>
</tr></table> </tr></table>
<h2 id="N">N</h2> <h2 id="N">N</h2>
<table style="width: 100%" class="indextable genindextable"><tr> <table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator">NetworkGenerator (class in PyCTBN.PyCTBN.structure_graph.network_generator)</a>
</li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph">NetworkGraph (class in PyCTBN.PyCTBN.structure_graph.network_graph)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph">NetworkGraph (class in PyCTBN.PyCTBN.structure_graph.network_graph)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes">nodes() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes">nodes (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes">nodes_indexes() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes">nodes_indexes (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes">(PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes">(PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a>
@ -540,9 +586,9 @@
</ul></li> </ul></li>
</ul></td> </ul></td>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels">nodes_labels() (PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels">nodes_labels (PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values">nodes_values() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values">nodes_values (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values">(PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values">(PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a>
@ -578,6 +624,12 @@
<ul> <ul>
<li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered">(PyCTBN.tests.utility.test_sample_importer.TestSampleImporter method)</a> <li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered">(PyCTBN.tests.utility.test_sample_importer.TestSampleImporter method)</a>
</li>
</ul></li>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file">out_file() (PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter method)</a>
<ul>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file">(PyCTBN.PyCTBN.utility.json_exporter.JsonExporter method)</a>
</li> </li>
</ul></li> </ul></li>
</ul></td> </ul></td>
@ -586,7 +638,7 @@
<h2 id="P">P</h2> <h2 id="P">P</h2>
<table style="width: 100%" class="indextable genindextable"><tr> <table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs">p_combs() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs">p_combs (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs">(PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs">(PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims property)</a>
@ -699,6 +751,13 @@
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">module</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">module</a>
</li>
</ul></li>
<li>
PyCTBN.PyCTBN.structure_graph.network_generator
<ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">module</a>
</li> </li>
</ul></li> </ul></li>
<li> <li>
@ -737,10 +796,26 @@
</li> </li>
</ul></li> </ul></li>
<li> <li>
PyCTBN.PyCTBN.structure_graph.trajectory_generator
<ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">module</a>
</li>
</ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li>
PyCTBN.PyCTBN.utility PyCTBN.PyCTBN.utility
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">module</a> <li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">module</a>
</li>
</ul></li>
<li>
PyCTBN.PyCTBN.utility.abstract_exporter
<ul>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">module</a>
</li> </li>
</ul></li> </ul></li>
<li> <li>
@ -750,13 +825,18 @@
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">module</a> <li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">module</a>
</li> </li>
</ul></li> </ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li> <li>
PyCTBN.PyCTBN.utility.cache PyCTBN.PyCTBN.utility.cache
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">module</a> <li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">module</a>
</li>
</ul></li>
<li>
PyCTBN.PyCTBN.utility.json_exporter
<ul>
<li><a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">module</a>
</li> </li>
</ul></li> </ul></li>
<li> <li>
@ -792,13 +872,6 @@
<ul> <ul>
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">module</a> <li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">module</a>
</li>
</ul></li>
<li>
PyCTBN.tests.estimators.test_structure_constraint_based_estimator
<ul>
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator">module</a>
</li> </li>
</ul></li> </ul></li>
<li> <li>
@ -806,13 +879,6 @@
<ul> <ul>
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">module</a> <li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">module</a>
</li>
</ul></li>
<li>
PyCTBN.tests.estimators.test_structure_score_based_estimator
<ul>
<li><a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_score_based_estimator">module</a>
</li> </li>
</ul></li> </ul></li>
<li> <li>
@ -820,20 +886,6 @@
<ul> <ul>
<li><a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">module</a> <li><a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">module</a>
</li>
</ul></li>
<li>
PyCTBN.tests.optimizers.test_hill_climbing_search
<ul>
<li><a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_hill_climbing_search">module</a>
</li>
</ul></li>
<li>
PyCTBN.tests.optimizers.test_tabu_search
<ul>
<li><a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_tabu_search">module</a>
</li> </li>
</ul></li> </ul></li>
<li> <li>
@ -952,15 +1004,7 @@
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass">setUpClass() (PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior class method)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass">setUpClass() (PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior class method)</a>
<ul> <ul>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.setUpClass">(PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator class method)</a>
</li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass">(PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator class method)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass">(PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator class method)</a>
</li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.setUpClass">(PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator class method)</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.setUpClass">(PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch class method)</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.setUpClass">(PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch class method)</a>
</li> </li>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass">(PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix class method)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass">(PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix class method)</a>
</li> </li>
@ -989,17 +1033,17 @@
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size">size() (PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size">size() (PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter">sorter() (PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a> <li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter">sorter (PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges">spurious_edges() (PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges">spurious_edges() (PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator method)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times">state_residence_times() (PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times">state_residence_times (PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix">state_transition_matrix() (PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix">state_transition_matrix (PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure">Structure (class in PyCTBN.PyCTBN.structure_graph.structure)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure">Structure (class in PyCTBN.PyCTBN.structure_graph.structure)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure">structure() (PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure">structure (PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath property)</a>
<ul> <ul>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure">(PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a> <li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure">(PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a>
@ -1117,6 +1161,8 @@
</li> </li>
<li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure">test_import_structure() (PyCTBN.tests.utility.test_json_importer.TestJsonImporter method)</a> <li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure">test_import_structure() (PyCTBN.tests.utility.test_json_importer.TestJsonImporter method)</a>
</li> </li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables">test_import_variables() (PyCTBN.tests.utility.test_json_importer.TestJsonImporter method)</a> <li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables">test_import_variables() (PyCTBN.tests.utility.test_json_importer.TestJsonImporter method)</a>
</li> </li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init">test_init() (PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator method)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init">test_init() (PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator method)</a>
@ -1141,8 +1187,6 @@
<li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_init">(PyCTBN.tests.utility.test_sample_importer.TestSampleImporter method)</a> <li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_init">(PyCTBN.tests.utility.test_sample_importer.TestSampleImporter method)</a>
</li> </li>
</ul></li> </ul></li>
</ul></td>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse">test_init_not_filled_dataframse() (PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath method)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse">test_init_not_filled_dataframse() (PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath method)</a>
</li> </li>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer">test_init_not_initialized_importer() (PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath method)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer">test_init_not_initialized_importer() (PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath method)</a>
@ -1170,44 +1214,12 @@
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph">test_save_plot_estimated_graph() (PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator method)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph">test_save_plot_estimated_graph() (PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator method)</a>
</li> </li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results">test_save_results() (PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator method)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results">test_save_results() (PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator method)</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure">test_structure() (PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch method)</a>
<ul>
<li><a href="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure">(PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch method)</a>
</li>
</ul></li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_1">test_structure_1() (PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator method)</a>
<ul>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_1">(PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator method)</a>
</li>
</ul></li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_2">test_structure_2() (PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator method)</a>
<ul>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_2">(PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator method)</a>
</li>
</ul></li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_3">test_structure_3() (PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator method)</a>
<ul>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_3">(PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator method)</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure_3">(PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch method)</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure_3">(PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch method)</a>
</li>
</ul></li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_monoprocesso">test_structure_monoprocesso() (PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator method)</a>
</li> </li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time">test_time() (PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator method)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time">test_time() (PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator method)</a>
</li> </li>
<li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_cache.TestCache">TestCache (class in PyCTBN.tests.utility.test_cache)</a> <li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_cache.TestCache">TestCache (class in PyCTBN.tests.utility.test_cache)</a>
</li> </li>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix">TestConditionalIntensityMatrix (class in PyCTBN.tests.structure_graph.test_cim)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix">TestConditionalIntensityMatrix (class in PyCTBN.tests.structure_graph.test_cim)</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch">TestHillClimbingSearch (class in PyCTBN.tests.optimizers.test_hill_climbing_search)</a>
</li> </li>
<li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter">TestJsonImporter (class in PyCTBN.tests.utility.test_json_importer)</a> <li><a href="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter">TestJsonImporter (class in PyCTBN.tests.utility.test_json_importer)</a>
</li> </li>
@ -1222,36 +1234,32 @@
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims">TestSetOfCims (class in PyCTBN.tests.structure_graph.test_setofcims)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims">TestSetOfCims (class in PyCTBN.tests.structure_graph.test_setofcims)</a>
</li> </li>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_structure.TestStructure">TestStructure (class in PyCTBN.tests.structure_graph.test_structure)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_structure.TestStructure">TestStructure (class in PyCTBN.tests.structure_graph.test_structure)</a>
</li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator">TestStructureConstraintBasedEstimator (class in PyCTBN.tests.estimators.test_structure_constraint_based_estimator)</a>
</li> </li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator">TestStructureEstimator (class in PyCTBN.tests.estimators.test_structure_estimator)</a> <li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator">TestStructureEstimator (class in PyCTBN.tests.estimators.test_structure_estimator)</a>
</li>
<li><a href="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator">TestStructureScoreBasedEstimator (class in PyCTBN.tests.estimators.test_structure_score_based_estimator)</a>
</li>
<li><a href="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch">TestTabuSearch (class in PyCTBN.tests.optimizers.test_tabu_search)</a>
</li> </li>
<li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory">TestTrajectory (class in PyCTBN.tests.structure_graph.test_trajectory)</a> <li><a href="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory">TestTrajectory (class in PyCTBN.tests.structure_graph.test_trajectory)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering">time_filtering() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering">time_filtering (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure">time_scalar_indexing_strucure() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure">time_scalar_indexing_strucure (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times">times() (PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times">times (PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count">total_variables_count() (PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count">total_variables_count (PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number">total_variables_number() (PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number">total_variables_number (PyCTBN.PyCTBN.structure_graph.structure.Structure property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories">trajectories() (PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories">trajectories (PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory">Trajectory (class in PyCTBN.PyCTBN.structure_graph.trajectory)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory">Trajectory (class in PyCTBN.PyCTBN.structure_graph.trajectory)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory">trajectory() (PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory">trajectory (PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory property)</a>
</li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator">TrajectoryGenerator (class in PyCTBN.PyCTBN.structure_graph.trajectory_generator)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering">transition_filtering() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering">transition_filtering (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure">transition_scalar_indexing_structure() (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure">transition_scalar_indexing_structure (PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph property)</a>
</li> </li>
</ul></td> </ul></td>
</tr></table> </tr></table>
@ -1260,12 +1268,24 @@
<table style="width: 100%" class="indextable genindextable"><tr> <table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q">variable_cim_xu_marginal_likelihood_q() (PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator method)</a> <li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q">variable_cim_xu_marginal_likelihood_q() (PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator method)</a>
</li>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta">variable_cim_xu_marginal_likelihood_theta() (PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator method)</a>
</li> </li>
</ul></td> </ul></td>
<td style="width: 33%; vertical-align: top;"><ul> <td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta">variable_cim_xu_marginal_likelihood_theta() (PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator method)</a> <li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.variables">variables (PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator property)</a>
<ul>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables">(PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a>
</li> </li>
<li><a href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables">variables() (PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter property)</a> </ul></li>
</ul></td>
</tr></table>
<h2 id="W">W</h2>
<table style="width: 100%" class="indextable genindextable"><tr>
<td style="width: 33%; vertical-align: top;"><ul>
<li><a href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.worker">worker() (PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator method)</a>
</li> </li>
</ul></td> </ul></td>
</tr></table> </tr></table>
@ -1299,6 +1319,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -1309,9 +1332,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -142,18 +146,22 @@
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul> <li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul> <li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
@ -218,6 +226,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -228,9 +239,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -116,59 +120,28 @@
<h1>PyCTBN<a class="headerlink" href="#pyctbn" title="Permalink to this headline"></a></h1> <h1>PyCTBN<a class="headerlink" href="#pyctbn" title="Permalink to this headline"></a></h1>
<div class="toctree-wrapper compound"> <div class="toctree-wrapper compound">
<ul> <ul>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul> <li class="toctree-l1"><a class="reference internal" href="PyCTBN.html">PyCTBN package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#subpackages">Subpackages</a><ul> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#subpackages">Subpackages</a><ul>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html">PyCTBN.PyCTBN.estimators package</a><ul> <li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#submodules">Submodules</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.html#subpackages">Subpackages</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.fam_score_calculator">PyCTBN.PyCTBN.estimators.fam_score_calculator module</a></li> <li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.parameters_estimator">PyCTBN.PyCTBN.estimators.parameters_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_estimator">PyCTBN.PyCTBN.estimators.structure_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">PyCTBN.PyCTBN.estimators.structure_score_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html">PyCTBN.PyCTBN.optimizers package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">PyCTBN.PyCTBN.optimizers.hill_climbing_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.optimizer">PyCTBN.PyCTBN.optimizers.optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.tabu_search">PyCTBN.PyCTBN.optimizers.tabu_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.html">PyCTBN.tests package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.html#subpackages">Subpackages</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.html#module-PyCTBN.tests">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a><ul> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#installation-usage">Installation/Usage</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#pyctbn-basic-main-module">PyCTBN.basic_main module</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#implementing-your-own-data-importer">Implementing your own data importer</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#pyctbn-setup-module">PyCTBN.setup module</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#parameters-estimation-example">Parameters Estimation Example</a></li> <li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#module-PyCTBN">Module contents</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#structure-estimation-example">Structure Estimation Example</a></li>
</ul> </ul>
</li> </li>
<li class="toctree-l1"><a class="reference internal" href="example.html">example module</a></li>
<li class="toctree-l1"><a class="reference internal" href="setup.html">setup module</a></li>
</ul> </ul>
</div> </div>
</div> </div>
@ -201,6 +174,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -211,9 +187,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

Binary file not shown.

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -119,11 +123,20 @@
<h1>Python Module Index</h1> <h1>Python Module Index</h1>
<div class="modindex-jumpbox"> <div class="modindex-jumpbox">
<a href="#cap-e"><strong>e</strong></a> |
<a href="#cap-p"><strong>p</strong></a> <a href="#cap-p"><strong>p</strong></a>
</div> </div>
<table class="indextable modindextable"> <table class="indextable modindextable">
<tr class="pcap"><td></td><td>&#160;</td><td></td></tr> <tr class="pcap"><td></td><td>&#160;</td><td></td></tr>
<tr class="cap" id="cap-e"><td></td><td>
<strong>e</strong></td><td></td></tr>
<tr>
<td></td>
<td>
<a href="example.html#module-example"><code class="xref">example</code></a></td><td>
<em></em></td></tr>
<tr class="pcap"><td></td><td>&#160;</td><td></td></tr>
<tr class="cap" id="cap-p"><td></td><td> <tr class="cap" id="cap-p"><td></td><td>
<strong>p</strong></td><td></td></tr> <strong>p</strong></td><td></td></tr>
<tr> <tr>
@ -202,6 +215,11 @@
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix"><code class="xref">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix</code></a></td><td> <a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix"><code class="xref">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator"><code class="xref">PyCTBN.PyCTBN.structure_graph.network_generator</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
@ -230,72 +248,67 @@
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility"><code class="xref">PyCTBN.PyCTBN.utility</code></a></td><td> <a href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator"><code class="xref">PyCTBN.PyCTBN.structure_graph.trajectory_generator</code></a></td><td>
<em></em></td></tr>
<tr class="cg-1">
<td></td>
<td>&#160;&#160;&#160;
<a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer"><code class="xref">PyCTBN.PyCTBN.utility.abstract_importer</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache"><code class="xref">PyCTBN.PyCTBN.utility.cache</code></a></td><td> <a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility"><code class="xref">PyCTBN.PyCTBN.utility</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer"><code class="xref">PyCTBN.PyCTBN.utility.json_importer</code></a></td><td> <a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter"><code class="xref">PyCTBN.PyCTBN.utility.abstract_exporter</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer"><code class="xref">PyCTBN.PyCTBN.utility.sample_importer</code></a></td><td> <a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer"><code class="xref">PyCTBN.PyCTBN.utility.abstract_importer</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.html#module-PyCTBN.tests"><code class="xref">PyCTBN.tests</code></a></td><td> <a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache"><code class="xref">PyCTBN.PyCTBN.utility.cache</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators"><code class="xref">PyCTBN.tests.estimators</code></a></td><td> <a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter"><code class="xref">PyCTBN.PyCTBN.utility.json_exporter</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator"><code class="xref">PyCTBN.tests.estimators.test_parameters_estimator</code></a></td><td> <a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer"><code class="xref">PyCTBN.PyCTBN.utility.json_importer</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator"><code class="xref">PyCTBN.tests.estimators.test_structure_constraint_based_estimator</code></a></td><td> <a href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer"><code class="xref">PyCTBN.PyCTBN.utility.sample_importer</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator"><code class="xref">PyCTBN.tests.estimators.test_structure_estimator</code></a></td><td> <a href="PyCTBN.tests.html#module-PyCTBN.tests"><code class="xref">PyCTBN.tests</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_score_based_estimator"><code class="xref">PyCTBN.tests.estimators.test_structure_score_based_estimator</code></a></td><td> <a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators"><code class="xref">PyCTBN.tests.estimators</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers"><code class="xref">PyCTBN.tests.optimizers</code></a></td><td> <a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator"><code class="xref">PyCTBN.tests.estimators.test_parameters_estimator</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_hill_climbing_search"><code class="xref">PyCTBN.tests.optimizers.test_hill_climbing_search</code></a></td><td> <a href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator"><code class="xref">PyCTBN.tests.estimators.test_structure_estimator</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
<td>&#160;&#160;&#160; <td>&#160;&#160;&#160;
<a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_tabu_search"><code class="xref">PyCTBN.tests.optimizers.test_tabu_search</code></a></td><td> <a href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers"><code class="xref">PyCTBN.tests.optimizers</code></a></td><td>
<em></em></td></tr> <em></em></td></tr>
<tr class="cg-1"> <tr class="cg-1">
<td></td> <td></td>
@ -382,6 +395,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -392,9 +408,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -153,6 +157,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -163,9 +170,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>

File diff suppressed because one or more lines are too long

@ -19,6 +19,10 @@
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" /> <link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
@ -144,6 +148,9 @@
FILE_SUFFIX:'.html', FILE_SUFFIX:'.html',
HAS_SOURCE: true HAS_SOURCE: true
}; };
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script> </script>
<script type="text/javascript" src="_static/jquery.js"> <script type="text/javascript" src="_static/jquery.js">
@ -154,9 +161,6 @@
<script type="text/javascript" src="_static/doctools.js"> <script type="text/javascript" src="_static/doctools.js">
</script> </script>
<script type="text/javascript" src="_static/language_data.js">
</script>