1
0
Fork 0
Old engine for Continuous Time Bayesian Networks. Superseded by reCTBN. 🐍 https://github.com/madlabunimib/PyCTBN
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
PyCTBN/docs/_build/html/PyCTBN.tests.structure_grap...

566 lines
42 KiB

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xml:lang="" lang="" version="-//W3C//DTD XHTML 1.1//EN" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PyCTBN.tests.structure_graph package &mdash; PyCTBN 2.0 documentation</title>
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'/>
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="public" />
<meta name="robots" content="follow, all" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Add jQuery library -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-nav-search">
<a href="index.html" class="fa fa-home"> PyCTBN </a>
<div role="search">
<form id ="rtd-search-form" class="wy-form"
action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<p><span class="caption-text">Contents:</span></p>
<ul>
3 years ago
<li class="toctree-l1"><a class="reference internal" href="pyctbn.legacy.html">pyctbn.legacy package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.html#subpackages">Subpackages</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.html#module-pyctbn.legacy">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a><ul>
<li class="toctree-l2"><a class="reference internal" href="examples.html#installation-usage">Installation/Usage</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#implementing-your-own-data-importer">Implementing your own data importer</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#parameters-estimation-example">Parameters Estimation Example</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#structure-estimation-example">Structure Estimation Example</a></li>
</ul>
</li>
</ul>
</div>
&nbsp;
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" id="barra-mobile" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="#">Porão do Juca</a>
</nav>
<div class="wy-nav-content">
<div class="fundo-claro">
</div>
<div class="fundo-escuro">
</div>
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<!-- <ul class="wy-breadcrumbs"> -->
<!-- <li><a href="#">Docs</a> &raquo;</li> -->
<!-- <li>Features</li> -->
<!-- <li class="wy-breadcrumbs-aside"> -->
<!-- <a href="_sources/index.txt" rel="nofollow"> View page source</a> -->
<!-- </li> -->
<!-- </ul> -->
<!-- <hr/> -->
</div>
<div role="main" class="">
<div id="content" class="hfeed entry-container hentry">
<section id="pyctbn-tests-structure-graph-package">
<h1>PyCTBN.tests.structure_graph package<a class="headerlink" href="#pyctbn-tests-structure-graph-package" title="Permalink to this headline"></a></h1>
<section id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2>
</section>
<section id="module-PyCTBN.tests.structure_graph.test_cim">
<span id="pyctbn-tests-structure-graph-test-cim-module"></span><h2>PyCTBN.tests.structure_graph.test_cim module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_cim" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_cim.</code><code class="sig-name descname">TestConditionalIntensityMatrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_compute_cim_coefficients">
<code class="sig-name descname">test_compute_cim_coefficients</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_compute_cim_coefficients" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_repr">
<code class="sig-name descname">test_repr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_cim.TestConditionalIntensityMatrix.test_repr" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.structure_graph.test_networkgenerator">
<span id="pyctbn-tests-structure-graph-test-networkgenerator-module"></span><h2>PyCTBN.tests.structure_graph.test_networkgenerator module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_networkgenerator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_networkgenerator.</code><code class="sig-name descname">TestNetworkGenerator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator.test_generate_cims">
<code class="sig-name descname">test_generate_cims</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator.test_generate_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator.test_generate_graph">
<code class="sig-name descname">test_generate_graph</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgenerator.TestNetworkGenerator.test_generate_graph" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.structure_graph.test_networkgraph">
<span id="pyctbn-tests-structure-graph-test-networkgraph-module"></span><h2>PyCTBN.tests.structure_graph.test_networkgraph module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_networkgraph" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_networkgraph.</code><code class="sig-name descname">TestNetworkGraph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure">
<code class="sig-name descname">aux_build_p_combs_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">p_vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_p_combs_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_columns_filtering_structure_for_a_node">
<code class="sig-name descname">aux_build_time_columns_filtering_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">p_indxs</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_columns_filtering_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_scalar_indexing_structure_for_a_node">
<code class="sig-name descname">aux_build_time_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">parents_indxs</span></em>, <em class="sig-param"><span class="n">parents_labels</span></em>, <em class="sig-param"><span class="n">parents_vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_columns_filtering_structure">
<code class="sig-name descname">aux_build_transition_columns_filtering_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">p_indxs</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_columns_filtering_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_scalar_indexing_structure_for_a_node">
<code class="sig-name descname">aux_build_transition_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span></em>, <em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">parents_indxs</span></em>, <em class="sig-param"><span class="n">parents_labels</span></em>, <em class="sig-param"><span class="n">parents_values</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.aux_build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_edges">
<code class="sig-name descname">test_add_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_edges" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_nodes">
<code class="sig-name descname">test_add_nodes</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_add_nodes" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_p_combs_structure">
<code class="sig-name descname">test_build_p_combs_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_p_combs_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_columns_filtering_structure_for_a_node">
<code class="sig-name descname">test_build_time_columns_filtering_structure_for_a_node</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_columns_filtering_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_scalar_indexing_structure_for_a_node">
<code class="sig-name descname">test_build_time_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_columns_filtering_structure">
<code class="sig-name descname">test_build_transition_columns_filtering_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_columns_filtering_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_scalar_indexing_structure_for_a_node">
<code class="sig-name descname">test_build_transition_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_fast_init">
<code class="sig-name descname">test_fast_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_fast_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_node_indx">
<code class="sig-name descname">test_get_node_indx</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_ordered_by_indx_set_of_parents">
<code class="sig-name descname">test_get_ordered_by_indx_set_of_parents</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_ordered_by_indx_set_of_parents" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_parents_by_id">
<code class="sig-name descname">test_get_parents_by_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_parents_by_id" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_states_number">
<code class="sig-name descname">test_get_states_number</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_get_states_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_networkgraph.TestNetworkGraph.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.structure_graph.test_sample_path">
<span id="pyctbn-tests-structure-graph-test-sample-path-module"></span><h2>PyCTBN.tests.structure_graph.test_sample_path module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_sample_path" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_sample_path.</code><code class="sig-name descname">TestSamplePath</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_concatenated_samples">
<code class="sig-name descname">test_buid_samplepath_no_concatenated_samples</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_concatenated_samples" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_variables">
<code class="sig-name descname">test_buid_samplepath_no_variables</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_buid_samplepath_no_variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_saplepath_no_prior_net_structure">
<code class="sig-name descname">test_build_saplepath_no_prior_net_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_saplepath_no_prior_net_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure">
<code class="sig-name descname">test_build_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure_bad_sorter">
<code class="sig-name descname">test_build_structure_bad_sorter</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_structure_bad_sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_trajectories">
<code class="sig-name descname">test_build_trajectories</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_build_trajectories" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse">
<code class="sig-name descname">test_init_not_filled_dataframse</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_filled_dataframse" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer">
<code class="sig-name descname">test_init_not_initialized_importer</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_sample_path.TestSamplePath.test_init_not_initialized_importer" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.structure_graph.test_setofcims">
<span id="pyctbn-tests-structure-graph-test-setofcims-module"></span><h2>PyCTBN.tests.structure_graph.test_setofcims module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_setofcims" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_setofcims.</code><code class="sig-name descname">TestSetOfCims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method">
<code class="sig-name descname">another_filtering_method</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">p_combs</span></em>, <em class="sig-param"><span class="n">mask</span></em>, <em class="sig-param"><span class="n">parent_value</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.another_filtering_method" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_build_cims">
<code class="sig-name descname">aux_test_build_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">p_values</span></em>, <em class="sig-param"><span class="n">node_states</span></em>, <em class="sig-param"><span class="n">p_combs</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_build_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_init">
<code class="sig-name descname">aux_test_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em>, <em class="sig-param"><span class="n">parents_states_number</span></em>, <em class="sig-param"><span class="n">node_states_number</span></em>, <em class="sig-param"><span class="n">p_combs</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.aux_test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.build_p_comb_structure_for_a_node">
<code class="sig-name descname">build_p_comb_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_values</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.build_p_comb_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dd><p>Builds the combinatory structure that contains the combinations of all the values contained in parents_values.</p>
<dl class="simple">
<dt>Parameters:</dt><dd><p>parents_values: the cardinalities of the nodes</p>
</dd>
<dt>Returns:</dt><dd><p>a numpy matrix containing a grid of the combinations</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_build_cims">
<code class="sig-name descname">test_build_cims</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_build_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_filter_cims_with_mask">
<code class="sig-name descname">test_filter_cims_with_mask</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_filter_cims_with_mask" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_setofcims.TestSetOfCims.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.structure_graph.test_structure">
<span id="pyctbn-tests-structure-graph-test-structure-module"></span><h2>PyCTBN.tests.structure_graph.test_structure module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_structure" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_structure.</code><code class="sig-name descname">TestStructure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_edges_operations">
<code class="sig-name descname">test_edges_operations</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_edges_operations" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_equality">
<code class="sig-name descname">test_equality</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_equality" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_id">
<code class="sig-name descname">test_get_node_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_id" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_indx">
<code class="sig-name descname">test_get_node_indx</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_positional_node_indx">
<code class="sig-name descname">test_get_positional_node_indx</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_positional_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_states_number">
<code class="sig-name descname">test_get_states_number</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_get_states_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_structure.TestStructure.test_repr">
<code class="sig-name descname">test_repr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_structure.TestStructure.test_repr" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.structure_graph.test_trajectory">
<span id="pyctbn-tests-structure-graph-test-trajectory-module"></span><h2>PyCTBN.tests.structure_graph.test_trajectory module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_trajectory" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_trajectory.</code><code class="sig-name descname">TestTrajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectory.TestTrajectory.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.structure_graph.test_trajectorygenerator">
<span id="pyctbn-tests-structure-graph-test-trajectorygenerator-module"></span><h2>PyCTBN.tests.structure_graph.test_trajectorygenerator module<a class="headerlink" href="#module-PyCTBN.tests.structure_graph.test_trajectorygenerator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.structure_graph.test_trajectorygenerator.</code><code class="sig-name descname">TestTrajectoryGenerator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">methodName</span><span class="o">=</span><span class="default_value">'runTest'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.setUpClass">
<em class="property">classmethod </em><code class="sig-name descname">setUpClass</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_generated_trajectory">
<code class="sig-name descname">test_generated_trajectory</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_generated_trajectory" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_generated_trajectory_max_tr">
<code class="sig-name descname">test_generated_trajectory_max_tr</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_generated_trajectory_max_tr" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_init">
<code class="sig-name descname">test_init</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_multi_trajectory">
<code class="sig-name descname">test_multi_trajectory</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.structure_graph.test_trajectorygenerator.TestTrajectoryGenerator.test_multi_trajectory" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.structure_graph">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.structure_graph" title="Permalink to this headline"></a></h2>
</section>
</section>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2021, Bregoli Alessandro, Martini Filippo, Moretti Luca.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/jucacrispim/sphinx_pdj_theme">theme</a> provided by <a href="http://poraodojuca.net">Porão do Juca</a>.
</footer>
</div>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'2.0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js">
</script>
<script type="text/javascript" src="_static/underscore.js">
</script>
<script type="text/javascript" src="_static/doctools.js">
</script>
<script type="text/javascript" src="_static/language_data.js">
</script>
<script type="text/javascript"
src="_static/js/theme.js"></script>
<script type="text/javascript"
src="_static/js/pdj.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>