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/PyCTBN.tests.utility.html

358 lines
23 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.utility 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="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/pdj.css" type="text/css" />
<link rel="index" title="Index"
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="public" />
<meta name="robots" content="follow, all" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- Add jQuery library -->
<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.6.2/modernizr.min.js"></script>
</head>
<body class="wy-body-for-nav" role="document">
<div class="wy-grid-for-nav">
<nav data-toggle="wy-nav-shift" class="wy-nav-side">
<div class="wy-side-nav-search">
<a href="index.html" class="fa fa-home"> PyCTBN </a>
<div role="search">
<form id ="rtd-search-form" class="wy-form"
action="search.html" method="get">
<input type="text" name="q" placeholder="Search docs" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
</div>
<div class="wy-menu wy-menu-vertical" data-spy="affix" role="navigation" aria-label="main navigation">
<p class="caption"><span class="caption-text">Contents:</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#subpackages">Subpackages</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a><ul>
<li class="toctree-l2"><a class="reference internal" href="examples.html#installation-usage">Installation/Usage</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#implementing-your-own-data-importer">Implementing your own data importer</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#parameters-estimation-example">Parameters Estimation Example</a></li>
<li class="toctree-l2"><a class="reference internal" href="examples.html#structure-estimation-example">Structure Estimation Example</a></li>
</ul>
</li>
</ul>
</div>
&nbsp;
</nav>
<section data-toggle="wy-nav-shift" class="wy-nav-content-wrap">
<nav class="wy-nav-top" id="barra-mobile" role="navigation" aria-label="top navigation">
<i data-toggle="wy-nav-top" class="fa fa-bars"></i>
<a href="#">Porão do Juca</a>
</nav>
<div class="wy-nav-content">
<div class="fundo-claro">
</div>
<div class="fundo-escuro">
</div>
<div class="rst-content">
<div role="navigation" aria-label="breadcrumbs navigation">
<!-- <ul class="wy-breadcrumbs"> -->
<!-- <li><a href="#">Docs</a> &raquo;</li> -->
<!-- <li>Features</li> -->
<!-- <li class="wy-breadcrumbs-aside"> -->
<!-- <a href="_sources/index.txt" rel="nofollow"> View page source</a> -->
<!-- </li> -->
<!-- </ul> -->
<!-- <hr/> -->
</div>
<div role="main" class="">
<div id="content" class="hfeed entry-container hentry">
<div class="section" id="pyctbn-tests-utility-package">
<h1>PyCTBN.tests.utility package<a class="headerlink" href="#pyctbn-tests-utility-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.utility.test_cache">
<span id="pyctbn-tests-utility-test-cache-module"></span><h2>PyCTBN.tests.utility.test_cache module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_cache" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache">
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.utility.test_cache.</span></span><span class="sig-name descname"><span class="pre">TestCache</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache.test_clear">
<span class="sig-name descname"><span class="pre">test_clear</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_clear" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache.test_find">
<span class="sig-name descname"><span class="pre">test_find</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_find" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_cache.TestCache.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.utility.test_cache.TestCache.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.utility.test_cache.TestCache.test_put">
<span class="sig-name descname"><span class="pre">test_put</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_cache.TestCache.test_put" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div>
<div class="section" id="module-PyCTBN.tests.utility.test_json_importer">
<span id="pyctbn-tests-utility-test-json-importer-module"></span><h2>PyCTBN.tests.utility.test_json_importer module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_json_importer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter">
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.utility.test_json_importer.</span></span><span class="sig-name descname"><span class="pre">TestJsonImporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered">
<span class="sig-name descname"><span class="pre">ordered</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">obj</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.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> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter">
<span class="sig-name descname"><span class="pre">test_build_sorter</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame">
<span class="sig-name descname"><span class="pre">test_clear_concatenated_frame</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list">
<span class="sig-name descname"><span class="pre">test_clear_data_frame_list</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames">
<span class="sig-name descname"><span class="pre">test_compute_row_delta_in_all_frames</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames_not_init_sorter">
<span class="sig-name descname"><span class="pre">test_compute_row_delta_in_all_frames_not_init_sorter</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames_not_init_sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame">
<span class="sig-name descname"><span class="pre">test_compute_row_delta_single_samples_frame</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id">
<span class="sig-name descname"><span class="pre">test_dataset_id</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path">
<span class="sig-name descname"><span class="pre">test_file_path</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data">
<span class="sig-name descname"><span class="pre">test_import_data</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims">
<span class="sig-name descname"><span class="pre">test_import_sampled_cims</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure">
<span class="sig-name descname"><span class="pre">test_import_structure</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables">
<span class="sig-name descname"><span class="pre">test_import_variables</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.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.utility.test_json_importer.TestJsonImporter.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.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories">
<span class="sig-name descname"><span class="pre">test_normalize_trajectories</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx">
<span class="sig-name descname"><span class="pre">test_normalize_trajectories_wrong_indx</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key">
<span class="sig-name descname"><span class="pre">test_normalize_trajectories_wrong_key</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found">
<span class="sig-name descname"><span class="pre">test_read_json_file_found</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found">
<span class="sig-name descname"><span class="pre">test_read_json_file_not_found</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div>
<div class="section" id="module-PyCTBN.tests.utility.test_sample_importer">
<span id="pyctbn-tests-utility-test-sample-importer-module"></span><h2>PyCTBN.tests.utility.test_sample_importer module<a class="headerlink" href="#module-PyCTBN.tests.utility.test_sample_importer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter">
<em class="property"><span class="pre">class</span> </em><span class="sig-prename descclassname"><span class="pre">PyCTBN.tests.utility.test_sample_importer.</span></span><span class="sig-name descname"><span class="pre">TestSampleImporter</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">methodName</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">'runTest'</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">unittest.case.TestCase</span></code></p>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered">
<span class="sig-name descname"><span class="pre">ordered</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">obj</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.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> &#x2192; <span class="pre">None</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.setUpClass" title="Permalink to this definition"></a></dt>
<dd><p>Hook method for setting up class fixture before running tests in the class.</p>
</dd></dl>
<dl class="py method">
<dt class="sig sig-object py" id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.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.utility.test_sample_importer.TestSampleImporter.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.utility.test_sample_importer.TestSampleImporter.test_order">
<span class="sig-name descname"><span class="pre">test_order</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_order" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</div>
<div class="section" id="module-PyCTBN.tests.utility">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.utility" title="Permalink to this headline"></a></h2>
</div>
</div>
</div>
<footer>
<hr/>
<div role="contentinfo">
<p>
&copy; Copyright 2021, Bregoli Alessandro, Martini Filippo, Moretti Luca.
</p>
</div>
Built with <a href="http://sphinx-doc.org/">Sphinx</a> using a <a href="https://github.com/jucacrispim/sphinx_pdj_theme">theme</a> provided by <a href="http://poraodojuca.net">Porão do Juca</a>.
</footer>
</div>
</div>
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT:'./',
VERSION:'2.0',
COLLAPSE_INDEX:false,
FILE_SUFFIX:'.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/documentation_options.js">
</script>
<script type="text/javascript" src="_static/jquery.js">
</script>
<script type="text/javascript" src="_static/underscore.js">
</script>
<script type="text/javascript" src="_static/doctools.js">
</script>
<script type="text/javascript"
src="_static/js/theme.js"></script>
<script type="text/javascript"
src="_static/js/pdj.js"></script>
<script type="text/javascript">
jQuery(function () {
SphinxRtdTheme.StickyNav.enable();
});
</script>
</body>
</html>