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.
290 lines
17 KiB
290 lines
17 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.estimators package — PyCTBN 2.0 documentation</title>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<link href='https://fonts.googleapis.com/css?family=Lato:400,700,400italic,700italic|Roboto+Slab:400,700|Inconsolata:400,700' rel='stylesheet' type='text/css'/>
|
|
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
|
|
|
|
|
|
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
|
|
|
|
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
|
|
|
|
|
|
|
|
|
|
|
|
<link rel="index" title="Index"
|
|
href="genindex.html"/>
|
|
<link rel="search" title="Search" href="search.html"/>
|
|
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
|
|
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
<meta http-equiv="cache-control" content="public" />
|
|
<meta name="robots" content="follow, all" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<!-- Add jQuery library -->
|
|
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
|
|
|
|
</head>
|
|
|
|
<body class="wy-body-for-nav" role="document">
|
|
|
|
<div class="wy-grid-for-nav">
|
|
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
|
|
<div class="wy-side-nav-search">
|
|
<a href="index.html" class="fa fa-home"> PyCTBN </a>
|
|
<div role="search">
|
|
<form id ="rtd-search-form" class="wy-form"
|
|
action="search.html" method="get">
|
|
<input type="text" name="q" placeholder="Search docs" />
|
|
<input type="hidden" name="check_keywords" value="yes" />
|
|
<input type="hidden" name="area" value="default" />
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
|
|
|
|
|
|
|
|
<p class="caption"><span class="caption-text">Contents:</span></p>
|
|
<ul>
|
|
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#subpackages">Subpackages</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</a></li>
|
|
</ul>
|
|
</li>
|
|
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a><ul>
|
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#installation-usage">Installation/Usage</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#implementing-your-own-data-importer">Implementing your own data importer</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#parameters-estimation-example">Parameters Estimation Example</a></li>
|
|
<li class="toctree-l2"><a class="reference internal" href="examples.html#structure-estimation-example">Structure Estimation Example</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</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> »</li> -->
|
|
|
|
<!-- <li>Features</li> -->
|
|
<!-- <li class="wy-breadcrumbs-aside"> -->
|
|
|
|
<!-- <a href="_sources/index.txt" rel="nofollow"> View page source</a> -->
|
|
|
|
<!-- </li> -->
|
|
<!-- </ul> -->
|
|
<!-- <hr/> -->
|
|
</div>
|
|
|
|
<div role="main" class="">
|
|
|
|
<div id="content" class="hfeed entry-container hentry">
|
|
<div class="section" id="pyctbn-tests-estimators-package">
|
|
<h1>PyCTBN.tests.estimators package<a class="headerlink" href="#pyctbn-tests-estimators-package" title="Permalink to this headline">¶</a></h1>
|
|
<div class="section" id="submodules">
|
|
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
<div class="section" id="module-PyCTBN.tests.estimators.test_parameters_estimator">
|
|
<span id="pyctbn-tests-estimators-test-parameters-estimator-module"></span><h2>PyCTBN.tests.estimators.test_parameters_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_parameters_estimator" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="py class">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior">
|
|
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.estimators.test_parameters_estimator.</span></span><span class="sig-name descname"><span class="pre">TestParametersEstimatior</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims">
|
|
<span class="sig-name descname"><span class="pre">aux_import_sampled_cims</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cims_label</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test">
|
|
<span class="sig-name descname"><span class="pre">cim_equality_test</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">cim1</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">cim2</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node">
|
|
<span class="sig-name descname"><span class="pre">equality_of_cims_of_node</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">sampled_cims</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">estimated_cims</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass">
|
|
<em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span> → <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.setUpClass" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node">
|
|
<span class="sig-name descname"><span class="pre">test_compute_parameters_for_node</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init">
|
|
<span class="sig-name descname"><span class="pre">test_fast_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="pyctbn-tests-estimators-test-structure-constraint-based-estimator-module">
|
|
<h2>PyCTBN.tests.estimators.test_structure_constraint_based_estimator module<a class="headerlink" href="#pyctbn-tests-estimators-test-structure-constraint-based-estimator-module" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
<div class="section" id="module-PyCTBN.tests.estimators.test_structure_estimator">
|
|
<span id="pyctbn-tests-estimators-test-structure-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_structure_estimator" title="Permalink to this headline">¶</a></h2>
|
|
<dl class="py class">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator">
|
|
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.estimators.test_structure_estimator.</span></span><span class="sig-name descname"><span class="pre">TestStructureEstimator</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass">
|
|
<em class="property"><span class="pre">classmethod</span> </em><span class="sig-name descname"><span class="pre">setUpClass</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.setUpClass" title="Permalink to this definition">¶</a></dt>
|
|
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
|
|
</dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix">
|
|
<span class="sig-name descname"><span class="pre">test_adjacency_matrix</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph">
|
|
<span class="sig-name descname"><span class="pre">test_build_complete_graph</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix">
|
|
<span class="sig-name descname"><span class="pre">test_build_removable_edges_matrix</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size">
|
|
<span class="sig-name descname"><span class="pre">test_generate_possible_sub_sets_of_size</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init">
|
|
<span class="sig-name descname"><span class="pre">test_init</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_init" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph">
|
|
<span class="sig-name descname"><span class="pre">test_save_plot_estimated_graph</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results">
|
|
<span class="sig-name descname"><span class="pre">test_save_results</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
<dl class="py method">
|
|
<dt class="sig sig-object py" id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time">
|
|
<span class="sig-name descname"><span class="pre">test_time</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time" title="Permalink to this definition">¶</a></dt>
|
|
<dd></dd></dl>
|
|
|
|
</dd></dl>
|
|
|
|
</div>
|
|
<div class="section" id="pyctbn-tests-estimators-test-structure-score-based-estimator-module">
|
|
<h2>PyCTBN.tests.estimators.test_structure_score_based_estimator module<a class="headerlink" href="#pyctbn-tests-estimators-test-structure-score-based-estimator-module" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
<div class="section" id="module-PyCTBN.tests.estimators">
|
|
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.estimators" title="Permalink to this headline">¶</a></h2>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</div>
|
|
<footer>
|
|
|
|
|
|
<hr/>
|
|
|
|
<div role="contentinfo">
|
|
<p>
|
|
© Copyright 2021, Bregoli Alessandro, Martini Filippo, Moretti Luca.
|
|
</p>
|
|
</div>
|
|
|
|
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/jucacrispim/sphinx_pdj_theme">theme</a> provided by <a href="http://poraodojuca.net">Porão do Juca</a>.
|
|
|
|
</footer>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<script type="text/javascript">
|
|
var DOCUMENTATION_OPTIONS = {
|
|
URL_ROOT:'./',
|
|
VERSION:'2.0',
|
|
COLLAPSE_INDEX:false,
|
|
FILE_SUFFIX:'.html',
|
|
HAS_SOURCE: true
|
|
};
|
|
</script>
|
|
<script type="text/javascript" src="_static/documentation_options.js">
|
|
|
|
</script>
|
|
<script type="text/javascript" src="_static/jquery.js">
|
|
|
|
</script>
|
|
<script type="text/javascript" src="_static/underscore.js">
|
|
|
|
</script>
|
|
<script type="text/javascript" src="_static/doctools.js">
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<script type="text/javascript"
|
|
src="_static/js/theme.js"></script>
|
|
|
|
<script type="text/javascript"
|
|
src="_static/js/pdj.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
jQuery(function () {
|
|
SphinxRtdTheme.StickyNav.enable();
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</html> |