<spanid="pyctbn-pyctbn-structure-graph-conditional-intensity-matrix-module"></span><h2>PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.</code><codeclass="sig-name descname">ConditionalIntensityMatrix</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">state_residence_times</span><spanclass="p">:</span><spanclass="n">numpy.array</span></em>, <emclass="sig-param"><spanclass="n">state_transition_matrix</span><spanclass="p">:</span><spanclass="n">numpy.array</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.</code><codeclass="sig-name descname">ConditionalIntensityMatrix</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">state_residence_times</span><spanclass="p">:</span><spanclass="n">numpy.array</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">state_transition_matrix</span><spanclass="p">:</span><spanclass="n">numpy.array</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">cim</span><spanclass="p">:</span><spanclass="n">numpy.array</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-pyctbn-structure-graph-network-generator-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_generator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.network_generator"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.network_generator.</code><codeclass="sig-name descname">NetworkGenerator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">labels</span></em>, <emclass="sig-param"><spanclass="n">vals</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">cims</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.cims"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">dyn_str</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.dyn_str"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">generate_cims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">min_val</span></em>, <emclass="sig-param"><spanclass="n">max_val</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_cims"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="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>
<codeclass="sig-name descname">generate_graph</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">density</span></em>, <emclass="sig-param"><spanclass="n">fixed</span><spanclass="p">:</span><spanclass="n">bool</span><spanclass="o">=</span><spanclass="default_value">False</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_graph"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="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>
<emclass="property">property </em><codeclass="sig-name descname">graph</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.graph"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">variables</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.variables"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-pyctbn-structure-graph-network-graph-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_graph module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.network_graph"title="Permalink to this headline">¶</a></h2>
@ -525,7 +602,7 @@ Clears all the unused dataframes in <code class="docutils literal notranslate"><
<spanid="pyctbn-pyctbn-structure-graph-set-of-cims-module"></span><h2>PyCTBN.PyCTBN.structure_graph.set_of_cims module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.set_of_cims"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.set_of_cims.</code><codeclass="sig-name descname">SetOfCims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em>, <emclass="sig-param"><spanclass="n">parents_states_number</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">node_states_number</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">p_combs</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.set_of_cims.</code><codeclass="sig-name descname">SetOfCims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em>, <emclass="sig-param"><spanclass="n">parents_states_number</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">node_states_number</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">p_combs</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">cims</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-pyctbn-structure-graph-trajectory-generator-module"></span><h2>PyCTBN.PyCTBN.structure_graph.trajectory_generator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator"title="Permalink to this headline">¶</a></h2>
<p>Provides the methods to generate a trajectory basing on the network defined
in the importer.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>_importer</strong> (<aclass="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>
<codeclass="sig-name descname">CTBN_Sample</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">t_end</span><spanclass="o">=</span><spanclass="default_value">- 1</span></em>, <emclass="sig-param"><spanclass="n">max_tr</span><spanclass="o">=</span><spanclass="default_value">- 1</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="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>
<codeclass="sig-name descname">multi_trajectory</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">t_ends</span><spanclass="p">:</span><spanclass="n">list</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">max_trs</span><spanclass="p">:</span><spanclass="n">list</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="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>
<codeclass="sig-name descname">worker</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">t_end</span></em>, <emclass="sig-param"><spanclass="n">max_tr</span></em>, <emclass="sig-param"><spanclass="n">trajectories</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="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>
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph"title="Permalink to this headline">¶</a></h2>
<spanid="pyctbn-pyctbn-utility-abstract-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_exporter module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.abstract_exporter"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.utility.abstract_exporter.</code><codeclass="sig-name descname">AbstractExporter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">variables</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">dyn_str</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">dyn_cims</span><spanclass="p">:</span><spanclass="n">dict</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">add_trajectory</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">trajectory</span><spanclass="p">:</span><spanclass="n">list</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>trajectory</strong> (<em>pandas.DataFrame</em>) – The trajectory to add</p>
<emclass="property">abstract </em><codeclass="sig-name descname">out_file</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">filename</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>filename</strong> (<em>string</em>) – Name of the output file (it must include json extension)</p>
<spanid="pyctbn-pyctbn-utility-abstract-importer-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_importer module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.abstract_importer"title="Permalink to this headline">¶</a></h2>
<spanid="pyctbn-pyctbn-utility-json-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.json_exporter module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.json_exporter"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.utility.json_exporter.</code><codeclass="sig-name descname">JsonExporter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">variables</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">dyn_str</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">dyn_cims</span><spanclass="p">:</span><spanclass="n">dict</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">cims_to_json</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ dict<aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">out_file</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">filename</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>filename</strong> (<em>string</em>) – Name of the output file (it must include json extension)</p>
<spanid="pyctbn-pyctbn-utility-json-importer-module"></span><h2>PyCTBN.PyCTBN.utility.json_importer module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.json_importer"title="Permalink to this headline">¶</a></h2>
<spanid="pyctbn-tests-structure-graph-test-networkgenerator-module"></span><h2>PyCTBN.tests.structure_graph.test_networkgenerator module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_networkgenerator"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_networkgenerator.</code><codeclass="sig-name descname">TestNetworkGenerator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_generate_cims</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator.test_generate_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_generate_graph</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator.test_generate_graph"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-structure-graph-test-networkgraph-module"></span><h2>PyCTBN.tests.structure_graph.test_networkgraph module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_networkgraph"title="Permalink to this headline">¶</a></h2>
<spanid="pyctbn-tests-structure-graph-test-trajectorygenerator-module"></span><h2>PyCTBN.tests.structure_graph.test_trajectorygenerator module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_trajectorygenerator"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_trajectorygenerator.</code><codeclass="sig-name descname">TestTrajectoryGenerator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.setUpClass"title="Permalink to this definition">¶</a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<codeclass="sig-name descname">test_generated_trajectory</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_generated_trajectory"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_generated_trajectory_max_tr</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_generated_trajectory_max_tr"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_multi_trajectory</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_multi_trajectory"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<sectionid="module-PyCTBN.tests.structure_graph">
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph"title="Permalink to this headline">¶</a></h2>
<liclass="toctree-l2"><aclass="reference internal"href="examples.html#implementing-your-own-data-importer">Implementing your own data importer</a></li>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/jucacrispim/sphinx_pdj_theme">theme</a> provided by <ahref="http://poraodojuca.net">Porão do Juca</a>.
<li><ahref="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter">AbstractExporter (class in PyCTBN.PyCTBN.utility.abstract_exporter)</a>
</li>
<li><ahref="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter">AbstractImporter (class in PyCTBN.PyCTBN.utility.abstract_importer)</a>
<li><ahref="PyCTBN.PyCTBN.optimizers.html#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer">ConstraintBasedOptimizer (class in PyCTBN.PyCTBN.optimizers.constraint_based_optimizer)</a>
<li><ahref="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter">JsonExporter (class in PyCTBN.PyCTBN.utility.json_exporter)</a>
</li>
</ul></td>
<tdstyle="width: 33%; vertical-align: top;"><ul>
<li><ahref="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.json_importer.JsonImporter">JsonImporter (class in PyCTBN.PyCTBN.utility.json_importer)</a>
<li><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator">NetworkGenerator (class in PyCTBN.PyCTBN.structure_graph.network_generator)</a>
</li>
<li><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph">NetworkGraph (class in PyCTBN.PyCTBN.structure_graph.network_graph)</a>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass">(PyCTBN.tests.structure_graph.test_structure.TestStructure class method)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass">(PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory class method)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.setUpClass">(PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator class method)</a>
</li>
<li><ahref="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.setUpClass">(PyCTBN.tests.utility.test_json_importer.TestJsonImporter class method)</a>
<li><ahref="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><ahref="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter">TestJsonImporter (class in PyCTBN.tests.utility.test_json_importer)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator">TestNetworkGenerator (class in PyCTBN.tests.structure_graph.test_networkgenerator)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph">TestNetworkGraph (class in PyCTBN.tests.structure_graph.test_networkgraph)</a>
</li>
@ -1232,6 +1339,8 @@
<li><ahref="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch">TestTabuSearch (class in PyCTBN.tests.optimizers.test_tabu_search)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory">TestTrajectory (class in PyCTBN.tests.structure_graph.test_trajectory)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator">TestTrajectoryGenerator (class in PyCTBN.tests.structure_graph.test_trajectorygenerator)</a>
<li><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory">Trajectory (class in PyCTBN.PyCTBN.structure_graph.trajectory)</a>
<li><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator">TrajectoryGenerator (class in PyCTBN.PyCTBN.structure_graph.trajectory_generator)</a>
<liclass="toctree-l2"><aclass="reference internal"href="examples.html#implementing-your-own-data-importer">Implementing your own data importer</a></li>
<spanid="pyctbn-pyctbn-estimators-fam-score-calculator-module"></span><h2>PyCTBN.PyCTBN.estimators.fam_score_calculator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.estimators.fam_score_calculator"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.estimators.fam_score_calculator.</span></span><spanclass="sig-name descname"><spanclass="pre">FamScoreCalculator</span></span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.estimators.fam_score_calculator.</code><codeclass="sig-name descname">FamScoreCalculator</code><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">get_fam_score</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">cims</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.array</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">tau_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0.1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_fam_score</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">cims</span><spanclass="p">:</span><spanclass="n">numpy.array</span></em>, <emclass="sig-param"><spanclass="n">tau_xu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">0.1</span></em>, <emclass="sig-param"><spanclass="n">alpha_xu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">marginal_likelihood_q</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">cims</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.array</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">tau_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0.1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">marginal_likelihood_q</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">cims</span><spanclass="p">:</span><spanclass="n">numpy.array</span></em>, <emclass="sig-param"><spanclass="n">tau_xu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">0.1</span></em>, <emclass="sig-param"><spanclass="n">alpha_xu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">marginal_likelihood_theta</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">cims</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="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"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xxu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">marginal_likelihood_theta</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">cims</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">alpha_xu</span><spanclass="p">:</span><spanclass="n">float</span></em>, <emclass="sig-param"><spanclass="n">alpha_xxu</span><spanclass="p">:</span><spanclass="n">float</span></em><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">single_cim_xu_marginal_likelihood_q</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">M_xu_suff_stats</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">T_xu_suff_stats</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">tau_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0.1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">single_cim_xu_marginal_likelihood_q</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">M_xu_suff_stats</span><spanclass="p">:</span><spanclass="n">float</span></em>, <emclass="sig-param"><spanclass="n">T_xu_suff_stats</span><spanclass="p">:</span><spanclass="n">float</span></em>, <emclass="sig-param"><spanclass="n">tau_xu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">0.1</span></em>, <emclass="sig-param"><spanclass="n">alpha_xu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="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
and a specif parents’s assignment</p>
<dlclass="field-list simple">
@ -219,8 +215,8 @@ and a specif parents’s assignment</p>
<spanclass="sig-name descname"><spanclass="pre">single_cim_xu_marginal_likelihood_theta</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">index</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cim</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="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"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xxu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">single_cim_xu_marginal_likelihood_theta</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">index</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">cim</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">alpha_xu</span><spanclass="p">:</span><spanclass="n">float</span></em>, <emclass="sig-param"><spanclass="n">alpha_xxu</span><spanclass="p">:</span><spanclass="n">float</span></em><spanclass="sig-paren">)</span><aclass="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
and a specif parents’s assignment</p>
<dlclass="field-list simple">
@ -241,8 +237,8 @@ and a specif parents’s assignment</p>
<spanclass="sig-name descname"><spanclass="pre">single_internal_cim_xxu_marginal_likelihood_theta</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">M_xxu_suff_stats</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xxu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">single_internal_cim_xxu_marginal_likelihood_theta</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">M_xxu_suff_stats</span><spanclass="p">:</span><spanclass="n">float</span></em>, <emclass="sig-param"><spanclass="n">alpha_xxu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -261,8 +257,8 @@ and a specif parents’s assignment</p>
<spanclass="sig-name descname"><spanclass="pre">variable_cim_xu_marginal_likelihood_q</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">cim</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="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"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">tau_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0.1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">variable_cim_xu_marginal_likelihood_q</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">cim</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">tau_xu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">0.1</span></em>, <emclass="sig-param"><spanclass="n">alpha_xu</span><spanclass="p">:</span><spanclass="n">float</span><spanclass="o">=</span><spanclass="default_value">1</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -282,8 +278,8 @@ and a specif parents’s assignment</p>
<spanclass="sig-name descname"><spanclass="pre">variable_cim_xu_marginal_likelihood_theta</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">cim</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="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"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xxu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">float</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">variable_cim_xu_marginal_likelihood_theta</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">cim</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">alpha_xu</span><spanclass="p">:</span><spanclass="n">float</span></em>, <emclass="sig-param"><spanclass="n">alpha_xxu</span><spanclass="p">:</span><spanclass="n">float</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -308,8 +304,8 @@ and a specif parents’s assignment</p>
<spanid="pyctbn-pyctbn-estimators-parameters-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.parameters_estimator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.estimators.parameters_estimator"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.estimators.parameters_estimator.</span></span><spanclass="sig-name descname"><spanclass="pre">ParametersEstimator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">trajectories</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory"title="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">net_graph</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph</span></a></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.estimators.parameters_estimator.</code><codeclass="sig-name descname">ParametersEstimator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">trajectories</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">net_graph</span><spanclass="p">:</span><spanclass="n"><aclass="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><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">compute_parameters_for_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<aclass="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"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims</span></a><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">compute_parameters_for_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→<aclass="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><aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -342,8 +338,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">compute_state_res_time_for_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">times</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">trajectory</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cols_filter</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">scalar_indexes_struct</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">T</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">compute_state_res_time_for_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">times</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">trajectory</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">cols_filter</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">scalar_indexes_struct</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">T</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em><spanclass="sig-paren">)</span>→ None<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">T</span></code> with the results</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -360,8 +356,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">compute_state_transitions_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_indx</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">trajectory</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cols_filter</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">scalar_indexing</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">M</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">compute_state_transitions_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_indx</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">trajectory</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">cols_filter</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">scalar_indexing</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">M</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em><spanclass="sig-paren">)</span>→ None<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">M</span></code> with the results.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -377,8 +373,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<spanclass="sig-name descname"><spanclass="pre">fast_init</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.fast_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">fast_init</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ None<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -393,8 +389,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<spanid="pyctbn-pyctbn-estimators-structure-constraint-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator"title="Permalink to this headline">¶</a></h2>
<spanclass="sig-name descname"><spanclass="pre">compute_thumb_value</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">parent_val</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">child_val</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parent_set_vals</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">compute_thumb_value</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">parent_val</span></em>, <emclass="sig-param"><spanclass="n">child_val</span></em>, <emclass="sig-param"><spanclass="n">parent_set_vals</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -470,10 +466,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
<codeclass="sig-name descname">ctpc_algorithm</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">disable_multiprocessing</span><spanclass="p">:</span><spanclass="n">bool</span><spanclass="o">=</span><spanclass="default_value">False</span></em>, <emclass="sig-param"><spanclass="n">processes_number</span><spanclass="p">:</span><spanclass="n">int</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -488,11 +482,9 @@ Generates all the necessary structures and datas to perform the tests.</p>
<codeclass="sig-name descname">estimate_structure</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">disable_multiprocessing</span><spanclass="p">:</span><spanclass="n">bool</span><spanclass="o">=</span><spanclass="default_value">False</span></em>, <emclass="sig-param"><spanclass="n">processes_number</span><spanclass="p">:</span><spanclass="n">int</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure"title="Permalink to this definition">¶</a></dt>
<dd><p>Compute the constraint-based algorithm to find the optimal structure</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
@ -506,8 +498,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
<spanclass="sig-name descname"><spanclass="pre">one_iteration_of_CTPC_algorithm</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">var_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">tot_vars_count</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">one_iteration_of_CTPC_algorithm</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">var_id</span><spanclass="p">:</span><spanclass="n">str</span></em>, <emclass="sig-param"><spanclass="n">tot_vars_count</span><spanclass="p">:</span><spanclass="n">int</span></em><spanclass="sig-paren">)</span>→ List<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">var_id</span></code> as <codeclass="docutils literal notranslate"><spanclass="pre">test_child</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -545,8 +537,8 @@ it is performed also the chi_test.</p>
<spanid="pyctbn-pyctbn-estimators-structure-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_estimator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.estimators.structure_estimator"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.estimators.structure_estimator.</span></span><spanclass="sig-name descname"><spanclass="pre">StructureEstimator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">sample_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">known_edges</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_estimator.</code><codeclass="sig-name descname">StructureEstimator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sample_path</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">known_edges</span><spanclass="p">:</span><spanclass="n">List</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"title="Permalink to this definition">¶</a></dt>
<p>Has the task of estimating the network structure given the trajectories in <codeclass="docutils literal notranslate"><spanclass="pre">samplepath</span></code>.</p>
<dlclass="field-list simple">
@ -570,8 +562,8 @@ it is performed also the chi_test.</p>
<spanclass="sig-name descname"><spanclass="pre">adjacency_matrix</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">numpy.ndarray</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">adjacency_matrix</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ numpy.ndarray<aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix"title="Permalink to this definition">¶</a></dt>
<dd><p>Converts the estimated structure <codeclass="docutils literal notranslate"><spanclass="pre">_complete_graph</span></code> to a boolean adjacency matrix representation.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
@ -584,8 +576,8 @@ it is performed also the chi_test.</p>
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">build_complete_graph</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_ids</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">networkx.classes.digraph.DiGraph</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_complete_graph"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">build_complete_graph</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_ids</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ networkx.classes.digraph.DiGraph<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">node_ids</span></code>:</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -601,8 +593,8 @@ it is performed also the chi_test.</p>
<spanclass="sig-name descname"><spanclass="pre">build_removable_edges_matrix</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">known_edges</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_removable_edges_matrix</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">known_edges</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -618,8 +610,8 @@ it is performed also the chi_test.</p>
<emclass="property"><spanclass="pre">abstract</span></em><spanclass="sig-name descname"><spanclass="pre">estimate_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure"title="Permalink to this definition">¶</a></dt>
<emclass="property">abstract </em><codeclass="sig-name descname">estimate_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ List<aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
@ -632,8 +624,8 @@ it is performed also the chi_test.</p>
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">generate_possible_sub_sets_of_size</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">u</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">size</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parent_label</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">generate_possible_sub_sets_of_size</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">u</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">size</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">parent_label</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span><aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">u</span></code> of size <codeclass="docutils literal notranslate"><spanclass="pre">size</span></code>,
that do not contains a the node identified by <codeclass="docutils literal notranslate"><spanclass="pre">parent_label</span></code>.</p>
<dlclass="field-list simple">
@ -654,11 +646,9 @@ that do not contains a the node identified by <code class="docutils literal notr
<codeclass="sig-name descname">save_plot_estimated_structure_graph</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">file_path</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ None<aclass="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.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>file_path</strong> – path to save the file to</p>
@ -670,8 +660,8 @@ that do not contains a the node identified by <code class="docutils literal notr
<spanclass="sig-name descname"><spanclass="pre">save_results</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">file_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_results"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">save_results</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">file_path</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ None<aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -681,8 +671,8 @@ that do not contains a the node identified by <code class="docutils literal notr
<spanclass="sig-name descname"><spanclass="pre">spurious_edges</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">spurious_edges</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ List<aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="simple">
<dt>Return the spurious edges present in the estimated structure, if a prior net structure is present in</dt><dd><p><codeclass="docutils literal notranslate"><spanclass="pre">_sample_path.structure</span></code>.</p>
</dd>
@ -703,8 +693,8 @@ that do not contains a the node identified by <code class="docutils literal notr
<spanid="pyctbn-pyctbn-estimators-structure-score-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_score_based_estimator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.estimators.structure_score_based_estimator.</span></span><spanclass="sig-name descname"><spanclass="pre">StructureScoreBasedEstimator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">sample_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">tau_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">0.1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">alpha_xu</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">known_edges</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">[]</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_score_based_estimator.</code><codeclass="sig-name descname">StructureScoreBasedEstimator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sample_path</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">tau_xu</span><spanclass="p">:</span><spanclass="n">int</span><spanclass="o">=</span><spanclass="default_value">0.1</span></em>, <emclass="sig-param"><spanclass="n">alpha_xu</span><spanclass="p">:</span><spanclass="n">int</span><spanclass="o">=</span><spanclass="default_value">1</span></em>, <emclass="sig-param"><spanclass="n">known_edges</span><spanclass="p">:</span><spanclass="n">List</span><spanclass="o">=</span><spanclass="default_value">[]</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">get_score_from_graph</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">graph</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_score_from_graph</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">graph</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -832,9 +820,6 @@ using a score based approach and differt kinds of optimization algorithms.</p>
<spanid="pyctbn-pyctbn-optimizers-constraint-based-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.</span></span><spanclass="sig-name descname"><spanclass="pre">ConstraintBasedOptimizer</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">structure_estimator</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><spanclass="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></a></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">tot_vars_count</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.</code><codeclass="sig-name descname">ConstraintBasedOptimizer</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em>, <emclass="sig-param"><spanclass="n">structure_estimator</span><spanclass="p">:</span><spanclass="n"><aclass="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>, <emclass="sig-param"><spanclass="n">tot_vars_count</span><spanclass="p">:</span><spanclass="n">int</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">optimize_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">optimize_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<spanid="pyctbn-pyctbn-optimizers-hill-climbing-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.hill_climbing_search module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search"title="Permalink to this headline">¶</a></h2>
<spanclass="sig-name descname"><spanclass="pre">optimize_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing.optimize_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">optimize_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ List<aclass="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>
<spanid="pyctbn-pyctbn-optimizers-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.optimizer module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.optimizers.optimizer"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.optimizers.optimizer.</span></span><spanclass="sig-name descname"><spanclass="pre">Optimizer</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">structure_estimator</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="PyCTBN.PyCTBN.estimators.html#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><spanclass="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></a></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.optimizer.</code><codeclass="sig-name descname">Optimizer</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em>, <emclass="sig-param"><spanclass="n">structure_estimator</span><spanclass="p">:</span><spanclass="n"><aclass="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><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><spanclass="sig-name descname"><spanclass="pre">optimize_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer.optimize_structure"title="Permalink to this definition">¶</a></dt>
<emclass="property">abstract </em><codeclass="sig-name descname">optimize_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ List<aclass="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>
<spanid="pyctbn-pyctbn-optimizers-tabu-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.tabu_search module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.optimizers.tabu_search"title="Permalink to this headline">¶</a></h2>
<spanclass="sig-name descname"><spanclass="pre">optimize_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch.optimize_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">optimize_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ List<aclass="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>
<spanid="pyctbn-pyctbn-structure-graph-conditional-intensity-matrix-module"></span><h2>PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.</span></span><spanclass="sig-name descname"><spanclass="pre">ConditionalIntensityMatrix</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">state_residence_times</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">numpy.array</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">state_transition_matrix</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">numpy.array</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cim</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">numpy.array</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.</code><codeclass="sig-name descname">ConditionalIntensityMatrix</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">state_residence_times</span><spanclass="p">:</span><spanclass="n">numpy.array</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">state_transition_matrix</span><spanclass="p">:</span><spanclass="n">numpy.array</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">cim</span><spanclass="p">:</span><spanclass="n">numpy.array</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">cim</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">cim</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">compute_cim_coefficients</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">compute_cim_coefficients</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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].
The class member <codeclass="docutils literal notranslate"><spanclass="pre">_cim</span></code> will contain the computed cim</p>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">state_residence_times</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">state_residence_times</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">state_transition_matrix</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">state_transition_matrix</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-pyctbn-structure-graph-network-generator-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_generator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.network_generator"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.network_generator.</span></span><spanclass="sig-name descname"><spanclass="pre">NetworkGenerator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">labels</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">vals</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.network_generator.</code><codeclass="sig-name descname">NetworkGenerator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">labels</span></em>, <emclass="sig-param"><spanclass="n">vals</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">cims</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">dict</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.cims"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">cims</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.cims"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">dyn_str</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">list</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.dyn_str"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">dyn_str</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.dyn_str"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">generate_cims</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">min_val</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">max_val</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">generate_cims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">min_val</span></em>, <emclass="sig-param"><spanclass="n">max_val</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_cims"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
@ -216,8 +212,8 @@ This method must obviously be executed after the graph has been generated.</p>
<spanclass="sig-name descname"><spanclass="pre">generate_graph</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">density</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">fixed</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">bool</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">False</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_graph"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">generate_graph</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">density</span></em>, <emclass="sig-param"><spanclass="n">fixed</span><spanclass="p">:</span><spanclass="n">bool</span><spanclass="o">=</span><spanclass="default_value">False</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_graph"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="simple">
<dt>Generate the edges according to specified density, and then instantiate the NetworkGraph object</dt><dd><p>to represent the network</p>
</dd>
@ -232,14 +228,14 @@ This method must obviously be executed after the graph has been generated.</p>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">graph</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.graph"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">graph</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.graph"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">variables</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">list</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.variables"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">variables</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.variables"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
@ -248,8 +244,8 @@ This method must obviously be executed after the graph has been generated.</p>
<spanid="pyctbn-pyctbn-structure-graph-network-graph-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_graph module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.network_graph"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.network_graph.</span></span><spanclass="sig-name descname"><spanclass="pre">NetworkGraph</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">graph_struct</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure"title="PyCTBN.PyCTBN.structure_graph.structure.Structure"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.structure.Structure</span></a></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.network_graph.</code><codeclass="sig-name descname">NetworkGraph</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">graph_struct</span><spanclass="p">:</span><spanclass="n"><aclass="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><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">add_edges</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">list_of_edges</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_edges"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">add_edges</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">list_of_edges</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ None<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">_graph</span></code> contained in the list <codeclass="docutils literal notranslate"><spanclass="pre">list_of_edges</span></code>.</p>
<spanclass="sig-name descname"><spanclass="pre">add_nodes</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">list_of_nodes</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">add_nodes</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">list_of_nodes</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ None<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">_graph</span></code> contained in the list of nodes <codeclass="docutils literal notranslate"><spanclass="pre">list_of_nodes</span></code>.
Sets all the properties that identify a nodes (index, positional index, cardinality)</p>
<dlclass="field-list simple">
@ -305,8 +301,8 @@ Sets all the properties that identify a nodes (index, positional index, cardinal
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">build_p_comb_structure_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">parents_values</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">numpy.ndarray</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_p_comb_structure_for_a_node"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">build_p_comb_structure_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">parents_values</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ numpy.ndarray<aclass="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
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">build_time_columns_filtering_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_indx</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_indxs</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">numpy.ndarray</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_columns_filtering_for_a_node"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">build_time_columns_filtering_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_indx</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">p_indxs</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ numpy.ndarray<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">node_indx</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">p_indxs</span></code>
in the dataset.
This structute will be used in the computation of the state res times.
@ -337,8 +333,8 @@ This structute will be used in the computation of the state res times.
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">build_time_scalar_indexing_structure_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_states</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_vals</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">numpy.ndarray</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_scalar_indexing_structure_for_a_node"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">build_time_scalar_indexing_structure_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_states</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">parents_vals</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ numpy.ndarray<aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -357,8 +353,8 @@ This structute will be used in the computation of the state res times.
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">build_transition_filtering_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_indx</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_indxs</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">nodes_number</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">numpy.ndarray</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_filtering_for_a_node"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">build_transition_filtering_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_indx</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">p_indxs</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">nodes_number</span><spanclass="p">:</span><spanclass="n">int</span></em><spanclass="sig-paren">)</span>→ numpy.ndarray<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">node_indx</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">p_indxs</span></code>
in the dataset.
This structure will be used in the computation of the state transitions values.
@ -373,8 +369,8 @@ This structure will be used in the computation of the state transitions values.
<emclass="property"><spanclass="pre">static</span></em><spanclass="sig-name descname"><spanclass="pre">build_transition_scalar_indexing_structure_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_states_number</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_vals</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">numpy.ndarray</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_scalar_indexing_structure_for_a_node"title="Permalink to this definition">¶</a></dt>
<emclass="property">static </em><codeclass="sig-name descname">build_transition_scalar_indexing_structure_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_states_number</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">parents_vals</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ numpy.ndarray<aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -393,19 +389,19 @@ This structure will be used in the computation of the state transitions values.
<spanclass="sig-name descname"><spanclass="pre">clear_indexing_filtering_structures</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.clear_indexing_filtering_structures"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">clear_indexing_filtering_structures</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">edges</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">List</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">edges</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">fast_init</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.fast_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">fast_init</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ None<aclass="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
<spanclass="sig-name descname"><spanclass="pre">get_node_indx</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">int</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_node_indx"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_node_indx</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span></em><spanclass="sig-paren">)</span>→ int<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_node_indx"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">get_ordered_by_indx_set_of_parents</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Tuple</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_ordered_by_indx_set_of_parents"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_ordered_by_indx_set_of_parents</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ Tuple<aclass="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
<spanclass="sig-name descname"><spanclass="pre">get_parents_by_id</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_parents_by_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_parents_by_id</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span></em><spanclass="sig-paren">)</span>→ List<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code></p>
<spanclass="sig-name descname"><spanclass="pre">get_positional_node_indx</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">int</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_positional_node_indx"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_positional_node_indx</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span></em><spanclass="sig-paren">)</span>→ int<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_positional_node_indx"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">get_states_number</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">int</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_states_number"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_states_number</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span></em><spanclass="sig-paren">)</span>→ int<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_states_number"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">has_edge</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">edge</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">tuple</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">bool</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.has_edge"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">has_edge</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">edge</span><spanclass="p">:</span><spanclass="n">tuple</span></em><spanclass="sig-paren">)</span>→ bool<aclass="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>
<dlclass="simple">
<dt>Parameters:</dt><dd><p>edge: a tuple that rappresents the edge</p>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">nodes</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">List</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">nodes</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">nodes_indexes</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">nodes_indexes</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">nodes_values</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">nodes_values</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">p_combs</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">p_combs</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">remove_edges</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">list_of_edges</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_edges"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">remove_edges</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">list_of_edges</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">remove_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_node"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">remove_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_node"title="Permalink to this definition">¶</a></dt>
<dd><p>Remove the node <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code> from all the class members.
Initialize all the filtering/indexing structures.</p>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">time_filtering</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">time_filtering</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">time_scalar_indexing_strucure</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">time_scalar_indexing_strucure</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">transition_filtering</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">transition_filtering</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">transition_scalar_indexing_structure</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">transition_scalar_indexing_structure</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
@ -541,8 +537,8 @@ Initialize all the filtering/indexing structures.</p>
<spanid="pyctbn-pyctbn-structure-graph-sample-path-module"></span><h2>PyCTBN.PyCTBN.structure_graph.sample_path module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.sample_path"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.sample_path.</span></span><spanclass="sig-name descname"><spanclass="pre">SamplePath</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">importer</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="reference internal"href="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><spanclass="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></a></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.sample_path.</code><codeclass="sig-name descname">SamplePath</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">importer</span><spanclass="p">:</span><spanclass="n"><aclass="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><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"title="Permalink to this definition">¶</a></dt>
<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 <codeclass="docutils literal notranslate"><spanclass="pre">Trajectory</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">Structure</span></code> that will
@ -562,41 +558,41 @@ contain the mentioned data.</p>
<spanclass="sig-name descname"><spanclass="pre">build_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_structure"title="Permalink to this definition">¶</a></dt>
<dd><p>Builds the <codeclass="docutils literal notranslate"><spanclass="pre">Structure</span></code> object that aggregates all the infos about the net.</p>
<spanclass="sig-name descname"><spanclass="pre">build_trajectories</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_trajectories"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_trajectories</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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.
Clears all the unused dataframes in <codeclass="docutils literal notranslate"><spanclass="pre">_importer</span></code> Object</p>
<spanclass="sig-name descname"><spanclass="pre">clear_memory</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.clear_memory"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">clear_memory</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.clear_memory"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">has_prior_net_structure</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">bool</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">has_prior_net_structure</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">structure</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">PyCTBN.PyCTBN.structure_graph.structure.Structure</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">structure</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">total_variables_count</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">int</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">total_variables_count</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">trajectories</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">trajectories</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
@ -605,8 +601,8 @@ Clears all the unused dataframes in <code class="docutils literal notranslate"><
<spanid="pyctbn-pyctbn-structure-graph-set-of-cims-module"></span><h2>PyCTBN.PyCTBN.structure_graph.set_of_cims module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.set_of_cims"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.set_of_cims.</span></span><spanclass="sig-name descname"><spanclass="pre">SetOfCims</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_states_number</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">node_states_number</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_combs</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cims</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">numpy.ndarray</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.set_of_cims.</code><codeclass="sig-name descname">SetOfCims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em>, <emclass="sig-param"><spanclass="n">parents_states_number</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">node_states_number</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">p_combs</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">cims</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">actual_cims</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">actual_cims</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">build_cims</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">state_res_times</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">transition_matrices</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_cims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">state_res_times</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">transition_matrices</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_cims"title="Permalink to this definition">¶</a></dt>
<dd><p>Build the <codeclass="docutils literal notranslate"><spanclass="pre">ConditionalIntensityMatrix</span></code> objects given the state residence times and transitions matrices.
Compute the cim coefficients.The class member <codeclass="docutils literal notranslate"><spanclass="pre">_actual_cims</span></code> will contain the computed cims.</p>
<dlclass="field-list simple">
@ -649,14 +645,14 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<spanclass="sig-name descname"><spanclass="pre">build_times_and_transitions_structures</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_times_and_transitions_structures"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_times_and_transitions_structures</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">filter_cims_with_mask</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">mask_arr</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">comb</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">numpy.ndarray</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">filter_cims_with_mask</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">mask_arr</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">comb</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ numpy.ndarray<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">_actual_cims</span></code> given the boolean mask <codeclass="docutils literal notranslate"><spanclass="pre">mask_arr</span></code> and the index
<spanclass="sig-name descname"><spanclass="pre">get_cims_number</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_cims_number</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">p_combs</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">p_combs</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
@ -691,8 +687,8 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<spanid="pyctbn-pyctbn-structure-graph-structure-module"></span><h2>PyCTBN.PyCTBN.structure_graph.structure module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.structure"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.structure.</span></span><spanclass="sig-name descname"><spanclass="pre">Structure</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">nodes_labels_list</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">nodes_indexes_arr</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">nodes_vals_arr</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">numpy.ndarray</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">edges_list</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">total_variables_number</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.structure.</code><codeclass="sig-name descname">Structure</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">nodes_labels_list</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">nodes_indexes_arr</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">nodes_vals_arr</span><spanclass="p">:</span><spanclass="n">numpy.ndarray</span></em>, <emclass="sig-param"><spanclass="n">edges_list</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">total_variables_number</span><spanclass="p">:</span><spanclass="n">int</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">add_edge</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">edge</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">tuple</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">add_edge</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">edge</span><spanclass="p">:</span><spanclass="n">tuple</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">clean_structure_edges</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">clean_structure_edges</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">contains_edge</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">edge</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">tuple</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">bool</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">contains_edge</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">edge</span><spanclass="p">:</span><spanclass="n">tuple</span></em><spanclass="sig-paren">)</span>→ bool<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">edges</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">List</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.edges"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">edges</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.edges"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">get_node_id</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_indx</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_node_id</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_indx</span><spanclass="p">:</span><spanclass="n">int</span></em><spanclass="sig-paren">)</span>→ str<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_id"title="Permalink to this definition">¶</a></dt>
<dd><p>Given the <codeclass="docutils literal notranslate"><spanclass="pre">node_index</span></code> returns the node label.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -744,8 +740,8 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<spanclass="sig-name descname"><spanclass="pre">get_node_indx</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">int</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_indx"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_node_indx</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ int<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_indx"title="Permalink to this definition">¶</a></dt>
<dd><p>Given the <codeclass="docutils literal notranslate"><spanclass="pre">node_index</span></code> returns the node label.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -761,13 +757,13 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<spanclass="sig-name descname"><spanclass="pre">get_positional_node_indx</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">int</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_positional_node_indx"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_positional_node_indx</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ int<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_positional_node_indx"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">get_states_number</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">int</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">get_states_number</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ int<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number"title="Permalink to this definition">¶</a></dt>
<dd><p>Given the node label <codeclass="docutils literal notranslate"><spanclass="pre">node</span></code> returns the cardinality of the node.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -782,36 +778,36 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">nodes_indexes</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">nodes_indexes</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">nodes_labels</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">List</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">nodes_labels</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">nodes_values</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">nodes_values</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">remove_edge</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">edge</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">tuple</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_edge"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">remove_edge</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">edge</span><spanclass="p">:</span><spanclass="n">tuple</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_edge"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">remove_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_node"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">remove_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_node"title="Permalink to this definition">¶</a></dt>
<dd><p>Remove the node <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code> from all the class members.
The class member <codeclass="docutils literal notranslate"><spanclass="pre">_total_variables_number</span></code> since it refers to the total number of variables in the dataset.</p>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">total_variables_number</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">int</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">total_variables_number</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
@ -820,8 +816,8 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
<spanid="pyctbn-pyctbn-structure-graph-trajectory-module"></span><h2>PyCTBN.PyCTBN.structure_graph.trajectory module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.trajectory"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.trajectory.</span></span><spanclass="sig-name descname"><spanclass="pre">Trajectory</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">list_of_columns</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">original_cols_number</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.trajectory.</code><codeclass="sig-name descname">Trajectory</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">list_of_columns</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">original_cols_number</span><spanclass="p">:</span><spanclass="n">int</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">complete_trajectory</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">complete_trajectory</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">size</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">size</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">times</span></span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">times</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">trajectory</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">numpy.ndarray</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">trajectory</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-pyctbn-structure-graph-trajectory-generator-module"></span><h2>PyCTBN.PyCTBN.structure_graph.trajectory_generator module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator"title="Permalink to this headline">¶</a></h2>
<p>Provides the methods to generate a trajectory basing on the network defined
in the importer.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="simple">
<li><p><strong>_importer</strong> (<aclass="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>
<codeclass="sig-name descname">CTBN_Sample</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">t_end</span><spanclass="o">=</span><spanclass="default_value">- 1</span></em>, <emclass="sig-param"><spanclass="n">max_tr</span><spanclass="o">=</span><spanclass="default_value">- 1</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="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>
<codeclass="sig-name descname">multi_trajectory</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">t_ends</span><spanclass="p">:</span><spanclass="n">list</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">max_trs</span><spanclass="p">:</span><spanclass="n">list</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="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>
<codeclass="sig-name descname">worker</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">t_end</span></em>, <emclass="sig-param"><spanclass="n">max_tr</span></em>, <emclass="sig-param"><spanclass="n">trajectories</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><ulclass="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>
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph"title="Permalink to this headline">¶</a></h2>
</section>
</section>
@ -906,9 +971,6 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
<spanid="pyctbn-pyctbn-utility-abstract-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_exporter module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.abstract_exporter"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.utility.abstract_exporter.</code><codeclass="sig-name descname">AbstractExporter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">variables</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">dyn_str</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">dyn_cims</span><spanclass="p">:</span><spanclass="n">dict</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">add_trajectory</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">trajectory</span><spanclass="p">:</span><spanclass="n">list</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>trajectory</strong> (<em>pandas.DataFrame</em>) – The trajectory to add</p>
<emclass="property">abstract </em><codeclass="sig-name descname">out_file</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">filename</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>filename</strong> (<em>string</em>) – Name of the output file (it must include json extension)</p>
<spanid="pyctbn-pyctbn-utility-abstract-importer-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_importer module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.abstract_importer"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.utility.abstract_importer.</span></span><spanclass="sig-name descname"><spanclass="pre">AbstractImporter</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">file_path</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">str</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">trajectory_list</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">pandas.core.frame.DataFrame</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">numpy.ndarray</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">variables</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">pandas.core.frame.DataFrame</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">prior_net_structure</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">pandas.core.frame.DataFrame</span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.utility.abstract_importer.</code><codeclass="sig-name descname">AbstractImporter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">file_path</span><spanclass="p">:</span><spanclass="n">str</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">trajectory_list</span><spanclass="p">:</span><spanclass="n">Union<spanclass="p">[</span>pandas.core.frame.DataFrame<spanclass="p">, </span>numpy.ndarray<spanclass="p">]</span></span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">variables</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">prior_net_structure</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">build_list_of_samples_array</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">concatenated_sample</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">pandas.core.frame.DataFrame</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_list_of_samples_array"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_list_of_samples_array</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">concatenated_sample</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span></em><spanclass="sig-paren">)</span>→ List<aclass="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>
<emclass="property"><spanclass="pre">abstract</span></em><spanclass="sig-name descname"><spanclass="pre">build_sorter</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">trajecory_header</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">object</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter"title="Permalink to this definition">¶</a></dt>
<emclass="property">abstract </em><codeclass="sig-name descname">build_sorter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">trajecory_header</span><spanclass="p">:</span><spanclass="n">object</span></em><spanclass="sig-paren">)</span>→ List<aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter"title="Permalink to this definition">¶</a></dt>
<dd><p>Initializes the <codeclass="docutils literal notranslate"><spanclass="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>
<dlclass="field-list simple">
@ -197,14 +237,14 @@ and keeping ONLY the variables symbolic labels, cutting out the time label in th
<spanclass="sig-name descname"><spanclass="pre">clear_concatenated_frame</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.clear_concatenated_frame"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">clear_concatenated_frame</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">compute_row_delta_in_all_samples_frames</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">df_samples_list</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">compute_row_delta_in_all_samples_frames</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">df_samples_list</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ None<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">compute_row_delta_sigle_samples_frame</span></code> on every dataframe present in the list
<spanclass="sig-name descname"><spanclass="pre">compute_row_delta_sigle_samples_frame</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">sample_frame</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">pandas.core.frame.DataFrame</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">columns_header</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">shifted_cols_header</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">pandas.core.frame.DataFrame</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">compute_row_delta_sigle_samples_frame</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sample_frame</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span></em>, <emclass="sig-param"><spanclass="n">columns_header</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">shifted_cols_header</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ pandas.core.frame.DataFrame<aclass="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.
Copies and shift by one position up all the values present in the remaining columns.</p>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">concatenated_samples</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">pandas.core.frame.DataFrame</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">concatenated_samples</code><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">abstract</span></em><spanclass="sig-name descname"><spanclass="pre">dataset_id</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">object</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.dataset_id"title="Permalink to this definition">¶</a></dt>
<emclass="property">abstract </em><codeclass="sig-name descname">dataset_id</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ object<aclass="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
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">file_path</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">str</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">file_path</code><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">sorter</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">List</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">sorter</code><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">structure</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">pandas.core.frame.DataFrame</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">structure</code><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">property</span></em><spanclass="sig-name descname"><spanclass="pre">variables</span></span><emclass="property"><spanclass="pre">:</span><spanclass="pre">pandas.core.frame.DataFrame</span></em><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">variables</code><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
@ -291,8 +331,8 @@ dataset</p>
<sectionid="module-PyCTBN.PyCTBN.utility.cache">
<spanid="pyctbn-pyctbn-utility-cache-module"></span><h2>PyCTBN.PyCTBN.utility.cache module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.cache"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.utility.cache.</span></span><spanclass="sig-name descname"><spanclass="pre">Cache</span></span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.cache.Cache"title="Permalink to this definition">¶</a></dt>
<dtid="PyCTBN.PyCTBN.utility.cache.Cache">
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.utility.cache.</code><codeclass="sig-name descname">Cache</code><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.cache.Cache"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">clear</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.cache.Cache.clear"title="Permalink to this definition">¶</a></dt>
<dtid="PyCTBN.PyCTBN.utility.cache.Cache.clear">
<codeclass="sig-name descname">clear</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.cache.Cache.clear"title="Permalink to this definition">¶</a></dt>
<dd><p>Clear the contents both of <codeclass="docutils literal notranslate"><spanclass="pre">__actual_cache</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">__list_of_sets_of_parents</span></code>.</p>
<spanclass="sig-name descname"><spanclass="pre">find</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">parents_comb</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Set</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.cache.Cache.find"title="Permalink to this definition">¶</a></dt>
<dtid="PyCTBN.PyCTBN.utility.cache.Cache.find">
<codeclass="sig-name descname">find</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">parents_comb</span><spanclass="p">:</span><spanclass="n">Set</span></em><spanclass="sig-paren">)</span><aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">parents_comb</span></code> the <codeclass="docutils literal notranslate"><spanclass="pre">SetOfCims</span></code>
related to that <codeclass="docutils literal notranslate"><spanclass="pre">parents_comb</span></code>.</p>
<spanclass="sig-name descname"><spanclass="pre">put</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">parents_comb</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Set</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">socim</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><aclass="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"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims</span></a></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.cache.Cache.put"title="Permalink to this definition">¶</a></dt>
<dtid="PyCTBN.PyCTBN.utility.cache.Cache.put">
<codeclass="sig-name descname">put</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">parents_comb</span><spanclass="p">:</span><spanclass="n">Set</span></em>, <emclass="sig-param"><spanclass="n">socim</span><spanclass="p">:</span><spanclass="n"><aclass="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><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.cache.Cache.put"title="Permalink to this definition">¶</a></dt>
<dd><p>Place in cache the <codeclass="docutils literal notranslate"><spanclass="pre">SetOfCims</span></code> object, and the related symbolic index <codeclass="docutils literal notranslate"><spanclass="pre">parents_comb</span></code> in
<spanid="pyctbn-pyctbn-utility-json-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.json_exporter module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.json_exporter"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.utility.json_exporter.</code><codeclass="sig-name descname">JsonExporter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">variables</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">dyn_str</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">dyn_cims</span><spanclass="p">:</span><spanclass="n">dict</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">cims_to_json</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ dict<aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">out_file</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">filename</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<ddclass="field-odd"><p><strong>filename</strong> (<em>string</em>) – Name of the output file (it must include json extension)</p>
<spanid="pyctbn-pyctbn-utility-json-importer-module"></span><h2>PyCTBN.PyCTBN.utility.json_importer module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.json_importer"title="Permalink to this headline">¶</a></h2>
<spanclass="sig-name descname"><spanclass="pre">build_sorter</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">sample_frame</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">pandas.core.frame.DataFrame</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.build_sorter"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_sorter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sample_frame</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span></em><spanclass="sig-paren">)</span>→ List<aclass="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 <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">AbstractImporter</span></code> for this dataset.</p>
<spanclass="sig-name descname"><spanclass="pre">clear_data_frame_list</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.clear_data_frame_list"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">clear_data_frame_list</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">_df_samples_list</span></code>.</p>
<spanclass="sig-name descname"><spanclass="pre">dataset_id</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">object</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.dataset_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">dataset_id</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ object<aclass="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
<codeclass="sig-name descname">import_data</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">indx</span><spanclass="p">:</span><spanclass="n">int</span><spanclass="o">=</span><spanclass="default_value">0</span></em><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data"title="Permalink to this definition">¶</a></dt>
<dd><p>Implements the abstract method of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">AbstractImporter</span></code>.</p>
<spanclass="sig-name descname"><spanclass="pre">import_sampled_cims</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">raw_data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">indx</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cims_key</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">Dict</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">import_sampled_cims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">raw_data</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">indx</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">cims_key</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ Dict<aclass="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
as keys for the set of CIMS of a particular node.</p>
<dlclass="field-list simple">
@ -433,8 +509,8 @@ as keys for the set of CIMS of a particular node.</p>
<spanclass="sig-name descname"><spanclass="pre">import_structure</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">raw_data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">pandas.core.frame.DataFrame</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">import_structure</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">raw_data</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ pandas.core.frame.DataFrame<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">_structure_label</span></code></p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -450,8 +526,8 @@ as keys for the set of CIMS of a particular node.</p>
<spanclass="sig-name descname"><spanclass="pre">import_trajectories</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">raw_data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_trajectories"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">import_trajectories</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">raw_data</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ List<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">raw_data</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -467,8 +543,8 @@ as keys for the set of CIMS of a particular node.</p>
<spanclass="sig-name descname"><spanclass="pre">import_variables</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">raw_data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">pandas.core.frame.DataFrame</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">import_variables</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">raw_data</span><spanclass="p">:</span><spanclass="n">List</span></em><spanclass="sig-paren">)</span>→ pandas.core.frame.DataFrame<aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables"title="Permalink to this definition">¶</a></dt>
<dd><p>Imports the data in <codeclass="docutils literal notranslate"><spanclass="pre">raw_data</span></code> at the key <codeclass="docutils literal notranslate"><spanclass="pre">_variables_label</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -484,8 +560,8 @@ as keys for the set of CIMS of a particular node.</p>
<spanclass="sig-name descname"><spanclass="pre">normalize_trajectories</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">raw_data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">indx</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">trajectories_key</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">normalize_trajectories</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">raw_data</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">indx</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">trajectories_key</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ List<aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories"title="Permalink to this definition">¶</a></dt>
<dd><p>Extracts the trajectories in <codeclass="docutils literal notranslate"><spanclass="pre">raw_data</span></code> at the index <codeclass="docutils literal notranslate"><spanclass="pre">index</span></code> at the key <codeclass="docutils literal notranslate"><spanclass="pre">trajectories</span><spanclass="pre">key</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -505,8 +581,8 @@ as keys for the set of CIMS of a particular node.</p>
<spanclass="sig-name descname"><spanclass="pre">one_level_normalizing</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">raw_data</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">List</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">indx</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">key</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">str</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">pandas.core.frame.DataFrame</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.one_level_normalizing"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">one_level_normalizing</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">raw_data</span><spanclass="p">:</span><spanclass="n">List</span></em>, <emclass="sig-param"><spanclass="n">indx</span><spanclass="p">:</span><spanclass="n">int</span></em>, <emclass="sig-param"><spanclass="n">key</span><spanclass="p">:</span><spanclass="n">str</span></em><spanclass="sig-paren">)</span>→ pandas.core.frame.DataFrame<aclass="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 <codeclass="docutils literal notranslate"><spanclass="pre">raw_data</span></code> at the index <codeclass="docutils literal notranslate"><spanclass="pre">indx</span></code> at the key <codeclass="docutils literal notranslate"><spanclass="pre">key</span></code>.</p>
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
@ -526,8 +602,8 @@ as keys for the set of CIMS of a particular node.</p>
<spanclass="sig-name descname"><spanclass="pre">read_json_file</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.read_json_file"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">read_json_file</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ List<aclass="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>
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
@ -545,8 +621,8 @@ as keys for the set of CIMS of a particular node.</p>
<spanid="pyctbn-pyctbn-utility-sample-importer-module"></span><h2>PyCTBN.PyCTBN.utility.sample_importer module<aclass="headerlink"href="#module-PyCTBN.PyCTBN.utility.sample_importer"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.utility.sample_importer.</span></span><spanclass="sig-name descname"><spanclass="pre">SampleImporter</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">trajectory_list</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">pandas.core.frame.DataFrame</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">numpy.ndarray</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">variables</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">pandas.core.frame.DataFrame</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">numpy.ndarray</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">prior_net_structure</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">Union</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">pandas.core.frame.DataFrame</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">numpy.ndarray</span><spanclass="p"><spanclass="pre">,</span></span><spanclass="pre">List</span><spanclass="p"><spanclass="pre">]</span></span><spanclass="p"><spanclass="pre">]</span></span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">build_sorter</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">sample_frame</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">pandas.core.frame.DataFrame</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">List</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.build_sorter"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_sorter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sample_frame</span><spanclass="p">:</span><spanclass="n">pandas.core.frame.DataFrame</span></em><spanclass="sig-paren">)</span>→ List<aclass="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 <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">AbstractImporter</span></code> in order to get the ordered variables list.</p>
<spanclass="sig-name descname"><spanclass="pre">dataset_id</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">str</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.dataset_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">dataset_id</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ str<aclass="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
<spanclass="sig-name descname"><spanclass="pre">import_data</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">header_column</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">import_data</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">header_column</span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-estimators-test-parameters-estimator-module"></span><h2>PyCTBN.tests.estimators.test_parameters_estimator module<aclass="headerlink"href="#module-PyCTBN.tests.estimators.test_parameters_estimator"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.estimators.test_parameters_estimator.</span></span><spanclass="sig-name descname"><spanclass="pre">TestParametersEstimatior</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.estimators.test_parameters_estimator.</code><codeclass="sig-name descname">TestParametersEstimatior</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">aux_import_sampled_cims</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">cims_label</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aux_import_sampled_cims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">cims_label</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">cim_equality_test</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">cim1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cim2</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">cim_equality_test</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">cim1</span></em>, <emclass="sig-param"><spanclass="n">cim2</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">equality_of_cims_of_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">sampled_cims</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">estimated_cims</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">equality_of_cims_of_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">sampled_cims</span></em>, <emclass="sig-param"><spanclass="n">estimated_cims</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_compute_parameters_for_node</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_compute_parameters_for_node</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_fast_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_fast_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-estimators-test-structure-constraint-based-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_constraint_based_estimator module<aclass="headerlink"href="#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator"title="Permalink to this headline">¶</a></h2>
<spanid="pyctbn-tests-estimators-test-structure-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_estimator module<aclass="headerlink"href="#module-PyCTBN.tests.estimators.test_structure_estimator"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.estimators.test_structure_estimator.</span></span><spanclass="sig-name descname"><spanclass="pre">TestStructureEstimator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_estimator.</code><codeclass="sig-name descname">TestStructureEstimator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_adjacency_matrix</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_adjacency_matrix</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_complete_graph</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_complete_graph</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_removable_edges_matrix</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_removable_edges_matrix</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_generate_possible_sub_sets_of_size</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_generate_possible_sub_sets_of_size</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_save_plot_estimated_graph</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_save_plot_estimated_graph</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_save_results</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_save_results</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_time</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_time</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-estimators-test-structure-score-based-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_score_based_estimator module<aclass="headerlink"href="#module-PyCTBN.tests.estimators.test_structure_score_based_estimator"title="Permalink to this headline">¶</a></h2>
<spanid="pyctbn-tests-structure-graph-test-cim-module"></span><h2>PyCTBN.tests.structure_graph.test_cim module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_cim"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.structure_graph.test_cim.</span></span><spanclass="sig-name descname"><spanclass="pre">TestConditionalIntensityMatrix</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_cim.</code><codeclass="sig-name descname">TestConditionalIntensityMatrix</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_compute_cim_coefficients</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_compute_cim_coefficients"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_compute_cim_coefficients</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_compute_cim_coefficients"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_repr</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_repr"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_repr</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_repr"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-structure-graph-test-networkgenerator-module"></span><h2>PyCTBN.tests.structure_graph.test_networkgenerator module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_networkgenerator"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_networkgenerator.</code><codeclass="sig-name descname">TestNetworkGenerator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_generate_cims</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator.test_generate_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_generate_graph</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator.test_generate_graph"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-structure-graph-test-networkgraph-module"></span><h2>PyCTBN.tests.structure_graph.test_networkgraph module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_networkgraph"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.structure_graph.test_networkgraph.</span></span><spanclass="sig-name descname"><spanclass="pre">TestNetworkGraph</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_networkgraph.</code><codeclass="sig-name descname">TestNetworkGraph</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">aux_build_p_combs_structure</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">graph</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_vals</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aux_build_p_combs_structure</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">graph</span></em>, <emclass="sig-param"><spanclass="n">p_vals</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">aux_build_time_columns_filtering_structure_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">graph</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_indxs</span></span></em><spanclass="sig-paren">)</span><aclass="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>
<codeclass="sig-name descname">aux_build_time_columns_filtering_structure_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">graph</span></em>, <emclass="sig-param"><spanclass="n">node_id</span></em>, <emclass="sig-param"><spanclass="n">p_indxs</span></em><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">aux_build_time_scalar_indexing_structure_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">graph</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_indxs</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_labels</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_vals</span></span></em><spanclass="sig-paren">)</span><aclass="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>
<codeclass="sig-name descname">aux_build_time_scalar_indexing_structure_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">graph</span></em>, <emclass="sig-param"><spanclass="n">node_id</span></em>, <emclass="sig-param"><spanclass="n">parents_indxs</span></em>, <emclass="sig-param"><spanclass="n">parents_labels</span></em>, <emclass="sig-param"><spanclass="n">parents_vals</span></em><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">aux_build_transition_columns_filtering_structure</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">graph</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_indxs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_columns_filtering_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aux_build_transition_columns_filtering_structure</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">graph</span></em>, <emclass="sig-param"><spanclass="n">node_id</span></em>, <emclass="sig-param"><spanclass="n">p_indxs</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_columns_filtering_structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">aux_build_transition_scalar_indexing_structure_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">graph</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_indxs</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_labels</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_values</span></span></em><spanclass="sig-paren">)</span><aclass="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>
<codeclass="sig-name descname">aux_build_transition_scalar_indexing_structure_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">graph</span></em>, <emclass="sig-param"><spanclass="n">node_id</span></em>, <emclass="sig-param"><spanclass="n">parents_indxs</span></em>, <emclass="sig-param"><spanclass="n">parents_labels</span></em>, <emclass="sig-param"><spanclass="n">parents_values</span></em><spanclass="sig-paren">)</span><aclass="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>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_add_edges</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_edges"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_add_edges</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_edges"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_add_nodes</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_nodes"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_add_nodes</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_nodes"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_p_combs_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_p_combs_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_p_combs_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_p_combs_structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_time_columns_filtering_structure_for_a_node</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<codeclass="sig-name descname">test_build_time_columns_filtering_structure_for_a_node</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_build_time_scalar_indexing_structure_for_a_node</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<codeclass="sig-name descname">test_build_time_scalar_indexing_structure_for_a_node</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_build_transition_columns_filtering_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_columns_filtering_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_transition_columns_filtering_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_columns_filtering_structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_transition_scalar_indexing_structure_for_a_node</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<codeclass="sig-name descname">test_build_transition_scalar_indexing_structure_for_a_node</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_fast_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_fast_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_fast_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_fast_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_get_node_indx</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_node_indx"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_get_node_indx</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_node_indx"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_get_ordered_by_indx_set_of_parents</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_ordered_by_indx_set_of_parents"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_get_ordered_by_indx_set_of_parents</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_ordered_by_indx_set_of_parents"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_get_parents_by_id</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_parents_by_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_get_parents_by_id</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_parents_by_id"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_get_states_number</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_states_number"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_get_states_number</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_states_number"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_init"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-structure-graph-test-sample-path-module"></span><h2>PyCTBN.tests.structure_graph.test_sample_path module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_sample_path"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.structure_graph.test_sample_path.</span></span><spanclass="sig-name descname"><spanclass="pre">TestSamplePath</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_sample_path.</code><codeclass="sig-name descname">TestSamplePath</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_buid_samplepath_no_concatenated_samples</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_concatenated_samples"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_buid_samplepath_no_concatenated_samples</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_concatenated_samples"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_buid_samplepath_no_variables</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_variables"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_buid_samplepath_no_variables</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_variables"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_saplepath_no_prior_net_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_saplepath_no_prior_net_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_saplepath_no_prior_net_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_saplepath_no_prior_net_structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_structure_bad_sorter</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure_bad_sorter"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_structure_bad_sorter</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure_bad_sorter"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_build_trajectories</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_trajectories"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_trajectories</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_trajectories"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init_not_filled_dataframse</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init_not_filled_dataframse</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init_not_initialized_importer</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init_not_initialized_importer</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-structure-graph-test-setofcims-module"></span><h2>PyCTBN.tests.structure_graph.test_setofcims module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_setofcims"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.structure_graph.test_setofcims.</span></span><spanclass="sig-name descname"><spanclass="pre">TestSetOfCims</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_setofcims.</code><codeclass="sig-name descname">TestSetOfCims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">another_filtering_method</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">p_combs</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">mask</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parent_value</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">another_filtering_method</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">p_combs</span></em>, <emclass="sig-param"><spanclass="n">mask</span></em>, <emclass="sig-param"><spanclass="n">parent_value</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">aux_test_build_cims</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_values</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">node_states</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_combs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_build_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aux_test_build_cims</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span></em>, <emclass="sig-param"><spanclass="n">p_values</span></em>, <emclass="sig-param"><spanclass="n">node_states</span></em>, <emclass="sig-param"><spanclass="n">p_combs</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_build_cims"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">aux_test_init</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">node_id</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">parents_states_number</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">node_states_number</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">p_combs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">aux_test_init</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">node_id</span></em>, <emclass="sig-param"><spanclass="n">parents_states_number</span></em>, <emclass="sig-param"><spanclass="n">node_states_number</span></em>, <emclass="sig-param"><spanclass="n">p_combs</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">build_p_comb_structure_for_a_node</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">parents_values</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.build_p_comb_structure_for_a_node"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">build_p_comb_structure_for_a_node</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">parents_values</span></em><spanclass="sig-paren">)</span><aclass="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>
<dlclass="simple">
<dt>Parameters:</dt><dd><p>parents_values: the cardinalities of the nodes</p>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_build_cims</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_build_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_cims</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_build_cims"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_filter_cims_with_mask</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_filter_cims_with_mask"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_filter_cims_with_mask</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_filter_cims_with_mask"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_init"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-structure-graph-test-structure-module"></span><h2>PyCTBN.tests.structure_graph.test_structure module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_structure"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.structure_graph.test_structure.</span></span><spanclass="sig-name descname"><spanclass="pre">TestStructure</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_structure.</code><codeclass="sig-name descname">TestStructure</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_edges_operations</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_edges_operations"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_edges_operations</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_edges_operations"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_equality</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_equality"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_equality</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_equality"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_get_node_id</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_get_node_id</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_id"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_get_node_indx</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_indx"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_get_node_indx</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_indx"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_get_positional_node_indx</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_positional_node_indx"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_get_positional_node_indx</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_positional_node_indx"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_get_states_number</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_states_number"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_get_states_number</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_states_number"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_repr</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_repr"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_repr</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_repr"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-structure-graph-test-trajectory-module"></span><h2>PyCTBN.tests.structure_graph.test_trajectory module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_trajectory"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.structure_graph.test_trajectory.</span></span><spanclass="sig-name descname"><spanclass="pre">TestTrajectory</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_trajectory.</code><codeclass="sig-name descname">TestTrajectory</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.test_init"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-structure-graph-test-trajectorygenerator-module"></span><h2>PyCTBN.tests.structure_graph.test_trajectorygenerator module<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph.test_trajectorygenerator"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.tests.structure_graph.test_trajectorygenerator.</code><codeclass="sig-name descname">TestTrajectoryGenerator</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.setUpClass"title="Permalink to this definition">¶</a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<codeclass="sig-name descname">test_generated_trajectory</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_generated_trajectory"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_generated_trajectory_max_tr</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_generated_trajectory_max_tr"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_multi_trajectory</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_multi_trajectory"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-utility-test-cache-module"></span><h2>PyCTBN.tests.utility.test_cache module<aclass="headerlink"href="#module-PyCTBN.tests.utility.test_cache"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.utility.test_cache.</span></span><spanclass="sig-name descname"><spanclass="pre">TestCache</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.utility.test_cache.</code><codeclass="sig-name descname">TestCache</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_clear</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache.test_clear"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_clear</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache.test_clear"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_find</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache.test_find"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_find</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache.test_find"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache.test_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_put</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache.test_put"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_put</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_cache.TestCache.test_put"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-utility-test-json-importer-module"></span><h2>PyCTBN.tests.utility.test_json_importer module<aclass="headerlink"href="#module-PyCTBN.tests.utility.test_json_importer"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.utility.test_json_importer.</span></span><spanclass="sig-name descname"><spanclass="pre">TestJsonImporter</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.utility.test_json_importer.</code><codeclass="sig-name descname">TestJsonImporter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">ordered</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">obj</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">ordered</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">obj</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_build_sorter</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_build_sorter</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_clear_concatenated_frame</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_clear_concatenated_frame</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_clear_data_frame_list</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_clear_data_frame_list</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_compute_row_delta_in_all_frames</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_compute_row_delta_in_all_frames</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_compute_row_delta_in_all_frames_not_init_sorter</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<codeclass="sig-name descname">test_compute_row_delta_in_all_frames_not_init_sorter</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_compute_row_delta_single_samples_frame</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_compute_row_delta_single_samples_frame</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_dataset_id</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_dataset_id</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_file_path</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_file_path</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_import_data</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_import_data</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_import_sampled_cims</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_import_sampled_cims</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_import_structure</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_import_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_import_variables</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_import_variables</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_normalize_trajectories</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_normalize_trajectories</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_normalize_trajectories_wrong_indx</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_normalize_trajectories_wrong_indx</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_normalize_trajectories_wrong_key</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_normalize_trajectories_wrong_key</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_read_json_file_found</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_read_json_file_found</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_read_json_file_not_found</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_read_json_file_not_found</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-utility-test-sample-importer-module"></span><h2>PyCTBN.tests.utility.test_sample_importer module<aclass="headerlink"href="#module-PyCTBN.tests.utility.test_sample_importer"title="Permalink to this headline">¶</a></h2>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.tests.utility.test_sample_importer.</span></span><spanclass="sig-name descname"><spanclass="pre">TestSampleImporter</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">methodName</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">'runTest'</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter"title="Permalink to this definition">¶</a></dt>
<emclass="property">class</em><codeclass="sig-prename descclassname">PyCTBN.tests.utility.test_sample_importer.</code><codeclass="sig-name descname">TestSampleImporter</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">methodName</span><spanclass="o">=</span><spanclass="default_value">'runTest'</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">ordered</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">obj</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">ordered</code><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n">obj</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered"title="Permalink to this definition">¶</a></dt>
<emclass="property"><spanclass="pre">classmethod</span></em><spanclass="sig-name descname"><spanclass="pre">setUpClass</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.setUpClass"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">setUpClass</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="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>
<spanclass="sig-name descname"><spanclass="pre">test_init</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_init"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_init</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_init"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">test_order</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_order"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_order</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_order"title="Permalink to this definition">¶</a></dt>
<spanid="example-module"></span><h1>example module<aclass="headerlink"href="#module-example"title="Permalink to this headline">¶</a></h1>
<dlclass="py function">
<dtclass="sig sig-object py"id="example.main">
<spanclass="sig-prename descclassname"><spanclass="pre">example.</span></span><spanclass="sig-name descname"><spanclass="pre">main</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#example.main"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</div>
<sectionid="example-module">
<h1>example module<aclass="headerlink"href="#example-module"title="Permalink to this headline">¶</a></h1>
<li><ahref="PyCTBN.PyCTBN.utility.html#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter">AbstractImporter (class in PyCTBN.PyCTBN.utility.abstract_importer)</a>
<li><ahref="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><ahref="PyCTBN.PyCTBN.optimizers.html#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing">HillClimbing (class in PyCTBN.PyCTBN.optimizers.hill_climbing_search)</a>
<li><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph">NetworkGraph (class in PyCTBN.PyCTBN.structure_graph.network_graph)</a>
<li><ahref="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass">setUpClass() (PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior class method)</a>
<ul>
<li><ahref="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><ahref="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass">(PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator class method)</a>
</li>
<li><ahref="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><ahref="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><ahref="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.setUpClass">(PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch class method)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass">(PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix class method)</a>
</li>
@ -1017,6 +1064,8 @@
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass">(PyCTBN.tests.structure_graph.test_structure.TestStructure class method)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass">(PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory class method)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.setUpClass">(PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator class method)</a>
</li>
<li><ahref="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.setUpClass">(PyCTBN.tests.utility.test_json_importer.TestJsonImporter class method)</a>
<li><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure">Structure (class in PyCTBN.PyCTBN.structure_graph.structure)</a>
<li><ahref="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_cache.TestCache">TestCache (class in PyCTBN.tests.utility.test_cache)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix">TestConditionalIntensityMatrix (class in PyCTBN.tests.structure_graph.test_cim)</a>
</li>
<li><ahref="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><ahref="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter">TestJsonImporter (class in PyCTBN.tests.utility.test_json_importer)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator">TestNetworkGenerator (class in PyCTBN.tests.structure_graph.test_networkgenerator)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph">TestNetworkGraph (class in PyCTBN.tests.structure_graph.test_networkgraph)</a>
</li>
@ -1234,32 +1329,40 @@
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims">TestSetOfCims (class in PyCTBN.tests.structure_graph.test_setofcims)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_structure.TestStructure">TestStructure (class in PyCTBN.tests.structure_graph.test_structure)</a>
</li>
<li><ahref="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><ahref="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator">TestStructureEstimator (class in PyCTBN.tests.estimators.test_structure_estimator)</a>
</li>
<li><ahref="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><ahref="PyCTBN.tests.optimizers.html#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch">TestTabuSearch (class in PyCTBN.tests.optimizers.test_tabu_search)</a>
</li>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory">TestTrajectory (class in PyCTBN.tests.structure_graph.test_trajectory)</a>
<li><ahref="PyCTBN.tests.structure_graph.html#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator">TestTrajectoryGenerator (class in PyCTBN.tests.structure_graph.test_trajectorygenerator)</a>
<li><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory">Trajectory (class in PyCTBN.PyCTBN.structure_graph.trajectory)</a>
<li><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator">TrajectoryGenerator (class in PyCTBN.PyCTBN.structure_graph.trajectory_generator)</a>