<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>
<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">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>
<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>
<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>
<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>
<dd><p>Calculate the FamScore value of the node</p>
<dd><p>Calculate the FamScore value of the node</p>
<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>
<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>
<dd><p>Calculate the value of the marginal likelihood over q of the node identified by the label node_id</p>
<dd><p>Calculate the value of the marginal likelihood over q of the node identified by the label node_id</p>
<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>
<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>
<dd><p>Calculate the FamScore value of the node identified by the label node_id</p>
<dd><p>Calculate the FamScore value of the node identified by the label node_id</p>
<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>
<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>
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
and a specif parents’s assignment</p>
and a specif parents’s assignment</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
@ -215,8 +219,8 @@ and a specif parents’s assignment</p>
<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>
<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>
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
and a specif parents’s assignment</p>
and a specif parents’s assignment</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
@ -237,8 +241,8 @@ and a specif parents’s assignment</p>
<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>
<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>
<dd><p>Calculate the second part of the marginal likelihood over theta formula</p>
<dd><p>Calculate the second part of the marginal likelihood over theta formula</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -257,8 +261,8 @@ and a specif parents’s assignment</p>
<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>
<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>
<dd><p>Calculate the value of the marginal likelihood over q given a cim</p>
<dd><p>Calculate the value of the marginal likelihood over q given a cim</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -278,8 +282,8 @@ and a specif parents’s assignment</p>
<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>
<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>
<dd><p>Calculate the value of the marginal likelihood over theta given a cim</p>
<dd><p>Calculate the value of the marginal likelihood over theta given a cim</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -304,8 +308,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>
<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">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>
<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>
<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>
<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>
<dd><p>Compute the CIMS of the node identified by the label <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code>.</p>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -338,8 +342,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -356,8 +360,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -373,8 +377,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -389,8 +393,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>
<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>
<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>
<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>
<dd><p>Compute the value to test against the thumb_threshold.</p>
<dd><p>Compute the value to test against the thumb_threshold.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -466,14 +470,14 @@ 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><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">ctpc_algorithm</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">disable_multiprocessing</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.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm"title="Permalink to this definition">¶</a></dt>
<dd><p>Compute the CTPC algorithm over the entire net.</p>
<dd><p>Compute the CTPC algorithm over the entire net.</p>
<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><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">estimate_structure</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">disable_multiprocessing</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.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure"title="Permalink to this definition">¶</a></dt>
<dd><p>Abstract method to estimate the structure</p>
<dd><p>Abstract method to estimate the structure</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<dtclass="field-odd">Returns</dt>
@ -486,8 +490,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -525,8 +529,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>
<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">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>
<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>
<p>Has the task of estimating the network structure given the trajectories in <codeclass="docutils literal notranslate"><spanclass="pre">samplepath</span></code>.</p>
<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">
<dlclass="field-list simple">
@ -550,8 +554,8 @@ it is performed also the chi_test.</p>
<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>
<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>
<dd><p>Converts the estimated structure <codeclass="docutils literal notranslate"><spanclass="pre">_complete_graph</span></code> to a boolean adjacency matrix representation.</p>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<dtclass="field-odd">Returns</dt>
@ -564,8 +568,8 @@ it is performed also the chi_test.</p>
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -581,8 +585,8 @@ it is performed also the chi_test.</p>
<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>
<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>
<dd><p>Builds a boolean matrix who shows if a edge could be removed or not, based on prior knowledge given:</p>
<dd><p>Builds a boolean matrix who shows if a edge could be removed or not, based on prior knowledge given:</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -598,8 +602,8 @@ it is performed also the chi_test.</p>
<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>
<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>
<dd><p>Abstract method to estimate the structure</p>
<dd><p>Abstract method to estimate the structure</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<dtclass="field-odd">Returns</dt>
@ -612,8 +616,8 @@ it is performed also the chi_test.</p>
<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>
<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>
<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>,
<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>
that do not contains a the node identified by <codeclass="docutils literal notranslate"><spanclass="pre">parent_label</span></code>.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
@ -634,8 +638,8 @@ 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>
<spanclass="sig-name descname"><spanclass="pre">save_plot_estimated_structure_graph</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_plot_estimated_structure_graph"title="Permalink to this definition">¶</a></dt>
<dd><p>Plot the estimated structure in a graphical model style, use .png extension.
<dd><p>Plot the estimated structure in a graphical model style, use .png extension.
Spurious edges are colored in red if a prior structure is present.</p>
Spurious edges are colored in red if a prior structure is present.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
@ -649,8 +653,8 @@ Spurious edges are colored in red if a prior structure is present.</p>
<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>
<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>
<dd><p>Save the estimated Structure to a .json file in file_path.</p>
<dd><p>Save the estimated Structure to a .json file in file_path.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -660,8 +664,8 @@ Spurious edges are colored in red if a prior structure is present.</p>
<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>
<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>
<dd><dlclass="simple">
<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>
<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>
</dd>
@ -682,8 +686,8 @@ Spurious edges are colored in red if a prior structure is present.</p>
<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>
<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">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>
<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>
<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>
<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>
<dd><p>Get the FamScore of a node</p>
<dd><p>Get the FamScore of a node</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -806,6 +810,9 @@ 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>
<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">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>
<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>
<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>
<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>
<dd><p>Compute Optimization process for a structure_estimator by using a CTPC Algorithm</p>
<dd><p>Compute Optimization process for a structure_estimator by using a CTPC Algorithm</p>
<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>
<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>
<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>
<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>
<dd><p>Compute Optimization process for a structure_estimator by using a Hill Climbing Algorithm</p>
<dd><p>Compute Optimization process for a structure_estimator by using a Hill Climbing Algorithm</p>
<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>
<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">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">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">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>
<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>
<dd><p>Compute Optimization process for a structure_estimator</p>
<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>
<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>
<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>
<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>
<dd><p>Compute Optimization process for a structure_estimator by using a Hill Climbing Algorithm</p>
<dd><p>Compute Optimization process for a structure_estimator by using a Hill Climbing Algorithm</p>
<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>
<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"><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">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>
<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>
<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>
<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>
<dd><p>Compute the coefficients of the matrix _cim by using the following equality q_xx’ = M[x, x’] / T[x].
<dd><p>Compute the coefficients of the matrix _cim by using the following equality q_xx’ = M[x, x’] / T[x].
The class member <codeclass="docutils literal notranslate"><spanclass="pre">_cim</span></code> will contain the computed cim</p>
The class member <codeclass="docutils literal notranslate"><spanclass="pre">_cim</span></code> will contain the computed cim</p>
<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_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"><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>
<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"><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"><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">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>
<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>
<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>
<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>
<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"><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"><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>
<dd></dd></dl>
<dd></dd></dl>
</dd></dl>
</dd></dl>
@ -167,8 +248,8 @@ The class member <code class="docutils literal notranslate"><span class="pre">_c
<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>
<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">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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>.
<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>
Sets all the properties that identify a nodes (index, positional index, cardinality)</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
@ -224,8 +305,8 @@ Sets all the properties that identify a nodes (index, positional index, cardinal
<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>
<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>
<dd><p>Builds the combinatorial structure that contains the combinations of all the values contained in
<dd><p>Builds the combinatorial structure that contains the combinations of all the values contained in
<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>
<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>
<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>
<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.
in the dataset.
This structute will be used in the computation of the state res times.
This structute will be used in the computation of the state res times.
@ -256,8 +337,8 @@ This structute will be used in the computation of the state res times.
<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>
<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>
<dd><p>Builds an indexing structure for the computation of state residence times values.</p>
<dd><p>Builds an indexing structure for the computation of state residence times values.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -276,8 +357,8 @@ This structute will be used in the computation of the state res times.
<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>
<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>
<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>
<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.
in the dataset.
This structure will be used in the computation of the state transitions values.
This structure will be used in the computation of the state transitions values.
@ -292,8 +373,8 @@ This structure will be used in the computation of the state transitions values.
<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>
<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>
<dd><p>Builds an indexing structure for the computation of state transitions values.</p>
<dd><p>Builds an indexing structure for the computation of state transitions values.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -312,19 +393,19 @@ This structure will be used in the computation of the state transitions values.
<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>
<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>
<dd><p>Initialize all the filtering/indexing structures.</p>
<dd><p>Initialize all the filtering/indexing structures.</p>
<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>
<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>
<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>
<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>
<dd><p>Initializes all the necessary structures for parameters estimation of the node identified by the label
<dd><p>Initializes all the necessary structures for parameters estimation of the node identified by the label
<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_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_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>
<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>
<dd><p>Builds the aggregated structure that holds all the infos relative to the parent set of the node, namely
<dd><p>Builds the aggregated structure that holds all the infos relative to the parent set of the node, namely
<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>
<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>
<dd><p>Returns a list of labels of the parents of the node <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code></p>
<dd><p>Returns a list of labels of the parents of the node <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code></p>
<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_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_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">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">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>
<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>
<dd><p>Check if the graph contains a specific edge</p>
<dd><p>Check if the graph contains a specific edge</p>
<dlclass="simple">
<dlclass="simple">
<dt>Parameters:</dt><dd><p>edge: a tuple that rappresents the edge</p>
<dt>Parameters:</dt><dd><p>edge: a tuple that rappresents the edge</p>
<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</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_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_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_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">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">p_combs</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs"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>
<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>
<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>
<dd><p>Remove the edges to the graph contained in the list list_of_edges.</p>
<dd><p>Remove the edges to the graph contained in the list list_of_edges.</p>
<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>
<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>
<dd><p>Remove the node <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code> from all the class members.
<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>
Initialize all the filtering/indexing structures.</p>
<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_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_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">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">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_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_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>
<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>
<dd></dd></dl>
<dd></dd></dl>
</dd></dl>
</dd></dl>
@ -460,8 +541,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>
<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">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>
<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>
<p>Aggregates all the informations about the trajectories, the real structure of the sampled net and variables
<p>Aggregates all the informations about the trajectories, the real structure of the sampled net and variables
cardinalites. Has the task of creating the objects <codeclass="docutils literal notranslate"><spanclass="pre">Trajectory</span></code> and <codeclass="docutils literal notranslate"><spanclass="pre">Structure</span></code> that will
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
@ -481,41 +562,41 @@ contain the mentioned data.</p>
<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>
<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>
<dd><p>Builds the <codeclass="docutils literal notranslate"><spanclass="pre">Structure</span></code> object that aggregates all the infos about the net.</p>
<dd><p>Builds the <codeclass="docutils literal notranslate"><spanclass="pre">Structure</span></code> object that aggregates all the infos about the net.</p>
<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>
<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>
<dd><p>Builds the Trajectory object that will contain all the trajectories.
<dd><p>Builds the Trajectory object that will contain all the trajectories.
Clears all the unused dataframes in <codeclass="docutils literal notranslate"><spanclass="pre">_importer</span></code> Object</p>
Clears all the unused dataframes in <codeclass="docutils literal notranslate"><spanclass="pre">_importer</span></code> Object</p>
<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>
<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>
<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">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">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">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">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">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">trajectories</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories"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>
<dd></dd></dl>
<dd></dd></dl>
</dd></dl>
</dd></dl>
@ -524,8 +605,8 @@ Clears all the unused dataframes in <code class="docutils literal notranslate"><
<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>
<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"><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">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>
<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>
<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>
<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>
<dd><p>Build the <codeclass="docutils literal notranslate"><spanclass="pre">ConditionalIntensityMatrix</span></code> objects given the state residence times and transitions matrices.
<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>
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">
<dlclass="field-list simple">
@ -568,14 +649,14 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<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>
<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>
<dd><p>Initializes at the correct dimensions the state residence times matrix and the state transition matrices.</p>
<dd><p>Initializes at the correct dimensions the state residence times matrix and the state transition matrices.</p>
<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>
<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>
<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
<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
<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>
<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>
<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>
<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>
<dd></dd></dl>
<dd></dd></dl>
</dd></dl>
</dd></dl>
@ -610,8 +691,8 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<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>
<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">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>
<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>
<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">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">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">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">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>
<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>
<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>
<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>
<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>
<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>
<dd><p>Given the <codeclass="docutils literal notranslate"><spanclass="pre">node_index</span></code> returns the node label.</p>
<dd><p>Given the <codeclass="docutils literal notranslate"><spanclass="pre">node_index</span></code> returns the node label.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -663,8 +744,8 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<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>
<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>
<dd><p>Given the <codeclass="docutils literal notranslate"><spanclass="pre">node_index</span></code> returns the node label.</p>
<dd><p>Given the <codeclass="docutils literal notranslate"><spanclass="pre">node_index</span></code> returns the node label.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -680,13 +761,13 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<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_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_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>
<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>
<dd><p>Given the node label <codeclass="docutils literal notranslate"><spanclass="pre">node</span></code> returns the cardinality of the node.</p>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -701,36 +782,36 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
<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_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_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_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_values</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values"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>
<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_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_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>
<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>
<dd><p>Remove the node <codeclass="docutils literal notranslate"><spanclass="pre">node_id</span></code> from all the class members.
<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>
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">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>
<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>
<dd></dd></dl>
<dd></dd></dl>
</dd></dl>
</dd></dl>
@ -739,8 +820,8 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
<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>
<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">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">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">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>
<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>
<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>
<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>
<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">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">trajectory</code><aclass="headerlink"href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory"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>
<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>
<emclass="property"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.structure_graph.trajectory_generator.</span></span><spanclass="sig-name descname"><spanclass="pre">TrajectoryGenerator</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">importer</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><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><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">dyn_str</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">dyn_cims</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">dict</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.trajectory_generator.TrajectoryGenerator"title="Permalink to this definition">¶</a></dt>
<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>
<spanclass="sig-name descname"><spanclass="pre">CTBN_Sample</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">t_end</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">-</span><spanclass="pre">1</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">max_tr</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">-</span><spanclass="pre">1</span></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>
<spanclass="sig-name descname"><spanclass="pre">multi_trajectory</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">t_ends</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>, <emclass="sig-param"><spanclass="n"><spanclass="pre">max_trs</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.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>
<spanclass="sig-name descname"><spanclass="pre">worker</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">t_end</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">max_tr</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">trajectories</span></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="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.PyCTBN.structure_graph"title="Permalink to this headline">¶</a></h2>
@ -823,6 +975,9 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
<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"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.utility.abstract_exporter.</span></span><spanclass="sig-name descname"><spanclass="pre">AbstractExporter</span></span><spanclass="sig-paren">(</span><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">dyn_str</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">dyn_cims</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">dict</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_exporter.AbstractExporter"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">add_trajectory</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">trajectory</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.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"><spanclass="pre">abstract</span></em><spanclass="sig-name descname"><spanclass="pre">out_file</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">filename</span></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-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">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>
<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>
<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>
<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>
<dd><p>Builds a List containing the the delta times numpy array, and the complete transitions matrix</p>
<dd><p>Builds a List containing the the delta times numpy array, and the complete transitions matrix</p>
<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>
<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>
<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
<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>
and keeping ONLY the variables symbolic labels, cutting out the time label in the header.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
@ -191,14 +241,14 @@ and keeping ONLY the variables symbolic labels, cutting out the time label in th
<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>
<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>
<dd><p>Removes all values in the dataframe concatenated_samples.</p>
<dd><p>Removes all values in the dataframe concatenated_samples.</p>
<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>
<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>
<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
<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
<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>
<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>
<dd><p>Computes the difference between each value present in th time column.
<dd><p>Computes the difference between each value present in th time column.
Copies and shift by one position up all the values present in the remaining columns.</p>
Copies and shift by one position up all the values present in the remaining columns.</p>
<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">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">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>
<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>
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
<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">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">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">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">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">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">variables</code><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables"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>
<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>
<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">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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
related to that <codeclass="docutils literal notranslate"><spanclass="pre">parents_comb</span></code>.</p>
<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>
<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>
<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
<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"><spanclass="pre">class</span></em><spanclass="sig-prename descclassname"><spanclass="pre">PyCTBN.PyCTBN.utility.json_exporter.</span></span><spanclass="sig-name descname"><spanclass="pre">JsonExporter</span></span><spanclass="sig-paren">(</span><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">dyn_str</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">dyn_cims</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">Optional</span><spanclass="p"><spanclass="pre">[</span></span><spanclass="pre">dict</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.json_exporter.JsonExporter"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">cims_to_json</span></span><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→<spanclass="pre">dict</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">out_file</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">filename</span></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-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>
<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>
<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>
<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>
<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>
<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>
<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>
<dd><p>Removes all values present in the dataframes in the list <codeclass="docutils literal notranslate"><spanclass="pre">_df_samples_list</span></code>.</p>
<dd><p>Removes all values present in the dataframes in the list <codeclass="docutils literal notranslate"><spanclass="pre">_df_samples_list</span></code>.</p>
<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>
<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>
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
<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></em><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data"title="Permalink to this definition">¶</a></dt>
<spanclass="sig-name descname"><spanclass="pre">import_data</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="n"><spanclass="pre">indx</span></span><spanclass="p"><spanclass="pre">:</span></span><spanclass="n"><spanclass="pre">int</span></span></em><spanclass="sig-paren">)</span>→<spanclass="pre">None</span><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>
<dd><p>Implements the abstract method of <codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">AbstractImporter</span></code>.</p>
<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>
<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>
<dd><p>Imports the synthetic CIMS in the dataset in a dictionary, using variables labels
<dd><p>Imports the synthetic CIMS in the dataset in a dictionary, using variables labels
as keys for the set of CIMS of a particular node.</p>
as keys for the set of CIMS of a particular node.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
@ -423,8 +513,8 @@ as keys for the set of CIMS of a particular node.</p>
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -440,8 +530,8 @@ as keys for the set of CIMS of a particular node.</p>
<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>
<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>
<dd><p>Imports the trajectories from the list of dicts <codeclass="docutils literal notranslate"><spanclass="pre">raw_data</span></code>.</p>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -457,8 +547,8 @@ as keys for the set of CIMS of a particular node.</p>
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -474,8 +564,8 @@ as keys for the set of CIMS of a particular node.</p>
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -495,8 +585,8 @@ as keys for the set of CIMS of a particular node.</p>
<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>
<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>
<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>
<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">
<dlclass="field-list simple">
<dtclass="field-odd">Parameters</dt>
<dtclass="field-odd">Parameters</dt>
@ -516,8 +606,8 @@ as keys for the set of CIMS of a particular node.</p>
<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>
<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>
<dd><p>Reads the JSON file in the path self.filePath.</p>
<dd><p>Reads the JSON file in the path self.filePath.</p>
<dlclass="field-list simple">
<dlclass="field-list simple">
<dtclass="field-odd">Returns</dt>
<dtclass="field-odd">Returns</dt>
@ -535,8 +625,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>
<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">class</em><codeclass="sig-prename descclassname">PyCTBN.PyCTBN.utility.sample_importer.</code><codeclass="sig-name descname">SampleImporter</code><spanclass="sig-paren">(</span><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>List<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">Union<spanclass="p">[</span>pandas.core.frame.DataFrame<spanclass="p">, </span>numpy.ndarray<spanclass="p">, </span>List<spanclass="p">]</span></span><spanclass="o">=</span><spanclass="default_value">None</span></em>, <emclass="sig-param"><spanclass="n">prior_net_structure</span><spanclass="p">:</span><spanclass="n">Union<spanclass="p">[</span>pandas.core.frame.DataFrame<spanclass="p">, </span>numpy.ndarray<spanclass="p">, </span>List<spanclass="p">]</span></span><spanclass="o">=</span><spanclass="default_value">None</span></em><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter"title="Permalink to this definition">¶</a></dt>
<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>
<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>
<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>
<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>
<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>
<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>
<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>
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
<dd><p>If the original dataset contains multiple dataset, this method returns a unique id to identify the current
<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>
<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>
<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>
<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">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>
<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>
<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">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">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">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">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>
<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>
<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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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>
<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>
<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>
<h2>PyCTBN.tests.estimators.test_structure_constraint_based_estimator module<aclass="headerlink"href="#pyctbn-tests-estimators-test-structure-constraint-based-estimator-module"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_constraint_based_estimator.</code><codeclass="sig-name descname">TestStructureConstraintBasedEstimator</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_constraint_based_estimator.TestStructureConstraintBasedEstimator"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_constraint_based_estimator.TestStructureConstraintBasedEstimator.setUpClass"title="Permalink to this definition">¶</a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<codeclass="sig-name descname">test_structure_1</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_1"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_structure_2</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_2"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_structure_3</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_3"title="Permalink to this definition">¶</a></dt>
<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>
<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">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">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">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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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_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_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_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_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_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_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_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_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_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_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_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_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>
<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>
<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>
<h2>PyCTBN.tests.estimators.test_structure_score_based_estimator module<aclass="headerlink"href="#pyctbn-tests-estimators-test-structure-score-based-estimator-module"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_score_based_estimator.</code><codeclass="sig-name descname">TestStructureScoreBasedEstimator</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_score_based_estimator.TestStructureScoreBasedEstimator"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_score_based_estimator.TestStructureScoreBasedEstimator.setUpClass"title="Permalink to this definition">¶</a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<codeclass="sig-name descname">test_structure_1</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_1"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_structure_2</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_2"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_structure_3</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_3"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_structure_monoprocesso</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_monoprocesso"title="Permalink to this definition">¶</a></dt>
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.tests.estimators"title="Permalink to this headline">¶</a></h2>
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.tests.estimators"title="Permalink to this headline">¶</a></h2>
<spanid="pyctbn-tests-optimizers-test-hill-climbing-search-module"></span><h2>PyCTBN.tests.optimizers.test_hill_climbing_search module<aclass="headerlink"href="#module-PyCTBN.tests.optimizers.test_hill_climbing_search"title="Permalink to this headline">¶</a></h2>
<h2>PyCTBN.tests.optimizers.test_hill_climbing_search module<aclass="headerlink"href="#pyctbn-tests-optimizers-test-hill-climbing-search-module"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.tests.optimizers.test_hill_climbing_search.</code><codeclass="sig-name descname">TestHillClimbingSearch</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.optimizers.test_hill_climbing_search.TestHillClimbingSearch"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.optimizers.test_hill_climbing_search.TestHillClimbingSearch.setUpClass"title="Permalink to this definition">¶</a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<codeclass="sig-name descname">test_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_structure_3</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure_3"title="Permalink to this definition">¶</a></dt>
<spanid="pyctbn-tests-optimizers-test-tabu-search-module"></span><h2>PyCTBN.tests.optimizers.test_tabu_search module<aclass="headerlink"href="#module-PyCTBN.tests.optimizers.test_tabu_search"title="Permalink to this headline">¶</a></h2>
<h2>PyCTBN.tests.optimizers.test_tabu_search module<aclass="headerlink"href="#pyctbn-tests-optimizers-test-tabu-search-module"title="Permalink to this headline">¶</a></h2>
<emclass="property">class </em><codeclass="sig-prename descclassname">PyCTBN.tests.optimizers.test_tabu_search.</code><codeclass="sig-name descname">TestTabuSearch</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.optimizers.test_tabu_search.TestTabuSearch"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.optimizers.test_tabu_search.TestTabuSearch.setUpClass"title="Permalink to this definition">¶</a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<codeclass="sig-name descname">test_structure</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">test_structure_3</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure_3"title="Permalink to this definition">¶</a></dt>
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.tests.optimizers"title="Permalink to this headline">¶</a></h2>
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.tests.optimizers"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>
<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">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">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">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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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_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_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>
<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>
<h2>PyCTBN.tests.structure_graph.test_networkgenerator module<aclass="headerlink"href="#pyctbn-tests-structure-graph-test-networkgenerator-module"title="Permalink to this headline">¶</a></h2>
<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-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">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>
<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>
<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_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_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_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_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_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_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_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_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>
<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>
<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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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>
<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>
<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>
<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">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">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">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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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_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_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_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_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</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_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_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_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_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_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</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_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_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_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>
<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>
<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>
<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">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>
<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>
<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">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">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_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_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">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">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>
<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>
<dd><p>Builds the combinatory structure that contains the combinations of all the values contained in parents_values.</p>
<dd><p>Builds the combinatory structure that contains the combinations of all the values contained in parents_values.</p>
<dlclass="simple">
<dlclass="simple">
<dt>Parameters:</dt><dd><p>parents_values: the cardinalities of the nodes</p>
<dt>Parameters:</dt><dd><p>parents_values: the cardinalities of the nodes</p>
<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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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_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_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>
<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>
<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>
<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">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">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">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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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_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_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_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_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_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_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_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_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_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_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_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_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>
<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>
<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>
<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">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">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">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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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>
<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>
<h2>PyCTBN.tests.structure_graph.test_trajectorygenerator module<aclass="headerlink"href="#pyctbn-tests-structure-graph-test-trajectorygenerator-module"title="Permalink to this headline">¶</a></h2>
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph"title="Permalink to this headline">¶</a></h2>
<spanid="module-contents"></span><h2>Module contents<aclass="headerlink"href="#module-PyCTBN.tests.structure_graph"title="Permalink to this headline">¶</a></h2>
<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>
<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">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>
<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>
<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_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_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_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_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_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_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>
<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>
<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>
<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">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>
<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>
<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>
<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>
<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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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_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_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_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_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</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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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_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</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_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_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_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_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_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_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_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>
<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>
<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>
<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">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>
<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>
<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>
<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>
<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>
<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>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
<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_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_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>
<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>
<liclass="toctree-l2"><aclass="reference internal"href="examples.html#implementing-your-own-data-importer">Implementing your own data importer</a></li>
<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>
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.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.structure_graph.html#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">ConditionalIntensityMatrix (class in PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix)</a>
</li>
</li>
<li><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.optimizers.html#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer">ConstraintBasedOptimizer (class in PyCTBN.PyCTBN.optimizers.constraint_based_optimizer)</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.optimizers.html#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing">HillClimbing (class in PyCTBN.PyCTBN.optimizers.hill_climbing_search)</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>
<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.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.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>
<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>
<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><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>
<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><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><ahref="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.structure.Structure">Structure (class in PyCTBN.PyCTBN.structure_graph.structure)</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><ahref="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_cache.TestCache">TestCache (class in PyCTBN.tests.utility.test_cache)</a>
</li>
</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><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>
<li><ahref="PyCTBN.tests.utility.html#PyCTBN.tests.utility.test_json_importer.TestJsonImporter">TestJsonImporter (class in PyCTBN.tests.utility.test_json_importer)</a>
<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>
@ -1222,36 +1234,32 @@
<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><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>
<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><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>
<li><ahref="PyCTBN.tests.estimators.html#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator">TestStructureEstimator (class in PyCTBN.tests.estimators.test_structure_estimator)</a>
<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>
<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_trajectory.TestTrajectory">TestTrajectory (class in PyCTBN.tests.structure_graph.test_trajectory)</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.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>