1
0
Fork 0
master
Meliurwen 3 years ago
parent 235c85c8fa
commit d091202878
  1. BIN
      .coverage
  2. 3
      .coveragerc
  3. 20
      .gitignore
  4. 9
      PyCTBN/MANIFEST.in
  5. 11
      PyCTBN/PyCTBN/__init__.py
  6. 5
      PyCTBN/__init__.py
  7. BIN
      PyCTBN/test_data/networks_and_trajectories_binary_data_01_3.json
  8. BIN
      PyCTBN/test_data/networks_and_trajectories_binary_data_02_10_1.json
  9. BIN
      PyCTBN/test_data/networks_and_trajectories_ternary_data_01_6_1.json
  10. 963
      PyCTBN/tests/coverage.xml
  11. 12
      README.rst
  12. 1
      codecov.yml
  13. 1207
      coverage.xml
  14. 855
      docs-out/_build/html/PyCTBN.PyCTBN.estimators.html
  15. 334
      docs-out/_build/html/PyCTBN.PyCTBN.optimizers.html
  16. 1006
      docs-out/_build/html/PyCTBN.PyCTBN.structure_graph.html
  17. 345
      docs-out/_build/html/PyCTBN.tests.estimators.html
  18. 235
      docs-out/_build/html/PyCTBN.tests.optimizers.html
  19. 566
      docs-out/_build/html/PyCTBN.tests.structure_graph.html
  20. 354
      docs-out/_build/html/PyCTBN.tests.utility.html
  21. 53
      docs-out/_build/html/_sources/PyCTBN.PyCTBN.estimators.rst.txt
  22. 45
      docs-out/_build/html/_sources/PyCTBN.PyCTBN.optimizers.rst.txt
  23. 77
      docs-out/_build/html/_sources/PyCTBN.PyCTBN.structure_graph.rst.txt
  24. 61
      docs-out/_build/html/_sources/PyCTBN.PyCTBN.utility.rst.txt
  25. 38
      docs-out/_build/html/_sources/PyCTBN.rst.txt
  26. 23
      docs-out/_build/html/_sources/index.rst.txt
  27. 179
      docs-out/_build/html/basic_main.html
  28. 303
      docs-out/_build/html/examples.html
  29. 257
      docs-out/_build/html/index.html
  30. 205
      docs-out/_build/html/modules.html
  31. 1
      docs-out/_build/html/searchindex.js
  32. 4
      docs/.buildinfo
  33. BIN
      docs/.doctrees/PyCTBN.PyCTBN.doctree
  34. BIN
      docs/.doctrees/PyCTBN.PyCTBN.estimators.doctree
  35. BIN
      docs/.doctrees/PyCTBN.PyCTBN.optimizers.doctree
  36. BIN
      docs/.doctrees/PyCTBN.PyCTBN.structure_graph.doctree
  37. BIN
      docs/.doctrees/PyCTBN.PyCTBN.utility.doctree
  38. BIN
      docs/.doctrees/PyCTBN.doctree
  39. BIN
      docs/.doctrees/PyCTBN.tests.doctree
  40. BIN
      docs/.doctrees/PyCTBN.tests.estimators.doctree
  41. BIN
      docs/.doctrees/PyCTBN.tests.optimizers.doctree
  42. BIN
      docs/.doctrees/PyCTBN.tests.structure_graph.doctree
  43. BIN
      docs/.doctrees/PyCTBN.tests.utility.doctree
  44. BIN
      docs/.doctrees/basic_main.doctree
  45. BIN
      docs/.doctrees/environment.pickle
  46. BIN
      docs/.doctrees/example.doctree
  47. BIN
      docs/.doctrees/examples.doctree
  48. BIN
      docs/.doctrees/index.doctree
  49. BIN
      docs/.doctrees/modules.doctree
  50. BIN
      docs/.doctrees/setup.doctree
  51. 0
      docs/.nojekyll
  52. 0
      docs/Makefile
  53. 24
      docs/PyCTBN.PyCTBN.estimators.rst
  54. 243
      docs/PyCTBN.PyCTBN.html
  55. 20
      docs/PyCTBN.PyCTBN.optimizers.rst
  56. 12
      docs/PyCTBN.PyCTBN.rst
  57. 36
      docs/PyCTBN.PyCTBN.structure_graph.rst
  58. 739
      docs/PyCTBN.PyCTBN.utility.html
  59. 28
      docs/PyCTBN.PyCTBN.utility.rst
  60. 292
      docs/PyCTBN.html
  61. 2
      docs/PyCTBN.rst
  62. 0
      docs/PyCTBN.tests.estimators.rst
  63. 226
      docs/PyCTBN.tests.html
  64. 0
      docs/PyCTBN.tests.optimizers.rst
  65. 0
      docs/PyCTBN.tests.rst
  66. 0
      docs/PyCTBN.tests.structure_graph.rst
  67. 0
      docs/PyCTBN.tests.utility.rst
  68. 0
      docs/_build/doctrees/PyCTBN.PyCTBN.doctree
  69. 0
      docs/_build/doctrees/PyCTBN.PyCTBN.estimators.doctree
  70. 0
      docs/_build/doctrees/PyCTBN.PyCTBN.optimizers.doctree
  71. 0
      docs/_build/doctrees/PyCTBN.PyCTBN.structure_graph.doctree
  72. 0
      docs/_build/doctrees/PyCTBN.PyCTBN.utility.doctree
  73. 0
      docs/_build/doctrees/PyCTBN.doctree
  74. 0
      docs/_build/doctrees/PyCTBN.tests.doctree
  75. 0
      docs/_build/doctrees/PyCTBN.tests.estimators.doctree
  76. 0
      docs/_build/doctrees/PyCTBN.tests.optimizers.doctree
  77. 0
      docs/_build/doctrees/PyCTBN.tests.structure_graph.doctree
  78. 0
      docs/_build/doctrees/PyCTBN.tests.utility.doctree
  79. 0
      docs/_build/doctrees/basic_main.doctree
  80. 0
      docs/_build/doctrees/environment.pickle
  81. 0
      docs/_build/doctrees/example.doctree
  82. 0
      docs/_build/doctrees/examples.doctree
  83. 0
      docs/_build/doctrees/index.doctree
  84. 0
      docs/_build/doctrees/modules.doctree
  85. 0
      docs/_build/doctrees/setup.doctree
  86. 0
      docs/_build/html/.buildinfo
  87. 200
      docs/_build/html/PyCTBN.PyCTBN.estimators.html
  88. 86
      docs/_build/html/PyCTBN.PyCTBN.html
  89. 78
      docs/_build/html/PyCTBN.PyCTBN.optimizers.html
  90. 376
      docs/_build/html/PyCTBN.PyCTBN.structure_graph.html
  91. 206
      docs/_build/html/PyCTBN.PyCTBN.utility.html
  92. 82
      docs/_build/html/PyCTBN.html
  93. 6
      docs/_build/html/PyCTBN.tests.estimators.html
  94. 6
      docs/_build/html/PyCTBN.tests.html
  95. 6
      docs/_build/html/PyCTBN.tests.optimizers.html
  96. 6
      docs/_build/html/PyCTBN.tests.structure_graph.html
  97. 6
      docs/_build/html/PyCTBN.tests.utility.html
  98. 24
      docs/_build/html/_sources/PyCTBN.PyCTBN.estimators.rst.txt
  99. 20
      docs/_build/html/_sources/PyCTBN.PyCTBN.optimizers.rst.txt
  100. 12
      docs/_build/html/_sources/PyCTBN.PyCTBN.rst.txt
  101. Some files were not shown because too many files have changed in this diff Show More

Binary file not shown.

@ -1,3 +0,0 @@
[run]
omit =
*/tests/*

20
.gitignore vendored

@ -15,3 +15,23 @@ result0.png
example.json
test_time.py
.idea
# Virtual Environment
venv/
.venv/
# setup.py
build/
dist/
*.egg*
# Python
__pycache__/
# Tests
.coverage
coverage/
.pytest_cache/
# Other
.vscode

@ -1,9 +0,0 @@
include MANIFEST.in
include setup.py
include README.rst
prune PyCTBN/test_data
prune PyCTBN/tests
prune tests
prune test_data
prune *tests*
prune *test*

@ -1,11 +0,0 @@
# License: MIT License
import PyCTBN.PyCTBN.estimators
from PyCTBN.PyCTBN.estimators import *
import PyCTBN.PyCTBN.optimizers
from PyCTBN.PyCTBN.optimizers import *
import PyCTBN.PyCTBN.structure_graph
from PyCTBN.PyCTBN.structure_graph import *
import PyCTBN.PyCTBN.utility
from PyCTBN.PyCTBN.utility import *

@ -1,5 +0,0 @@
# License: MIT License
import PyCTBN.PyCTBN
from PyCTBN.PyCTBN import *

@ -1,963 +0,0 @@
<?xml version="1.0" ?>
<coverage version="5.2" timestamp="1597406229874" lines-valid="891" lines-covered="638" line-rate="0.716" branches-covered="0" branches-valid="0" branch-rate="0" complexity="0">
<!-- Generated by coverage.py: https://coverage.readthedocs.io -->
<!-- Based on https://raw.githubusercontent.com/cobertura/web/master/htdocs/xml/coverage-04.dtd -->
<sources>
<source></source>
</sources>
<packages>
<package name="." line-rate="1" branch-rate="0" complexity="0">
<PyCTBN>
<class name="test_json_importer.py" filename="test_json_importer.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="5" hits="1"/>
<line number="6" hits="1"/>
<line number="7" hits="1"/>
<line number="8" hits="1"/>
<line number="10" hits="1"/>
<line number="12" hits="1"/>
<line number="16" hits="1"/>
<line number="18" hits="1"/>
<line number="19" hits="1"/>
<line number="20" hits="1"/>
<line number="22" hits="1"/>
<line number="23" hits="1"/>
<line number="24" hits="1"/>
<line number="25" hits="1"/>
<line number="26" hits="1"/>
<line number="27" hits="1"/>
<line number="28" hits="1"/>
<line number="29" hits="1"/>
<line number="30" hits="1"/>
<line number="31" hits="1"/>
<line number="32" hits="1"/>
<line number="33" hits="1"/>
<line number="34" hits="1"/>
<line number="36" hits="1"/>
<line number="37" hits="1"/>
<line number="38" hits="1"/>
<line number="39" hits="1"/>
<line number="40" hits="1"/>
<line number="41" hits="1"/>
<line number="42" hits="1"/>
<line number="43" hits="1"/>
<line number="44" hits="1"/>
<line number="45" hits="1"/>
<line number="47" hits="1"/>
<line number="48" hits="1"/>
<line number="49" hits="1"/>
<line number="50" hits="1"/>
<line number="51" hits="1"/>
<line number="53" hits="1"/>
<line number="54" hits="1"/>
<line number="55" hits="1"/>
<line number="57" hits="1"/>
<line number="58" hits="1"/>
<line number="59" hits="1"/>
<line number="61" hits="1"/>
<line number="62" hits="1"/>
<line number="63" hits="1"/>
<line number="64" hits="1"/>
<line number="66" hits="1"/>
<line number="67" hits="1"/>
<line number="68" hits="1"/>
<line number="69" hits="1"/>
<line number="71" hits="1"/>
<line number="72" hits="1"/>
<line number="73" hits="1"/>
<line number="74" hits="1"/>
<line number="75" hits="1"/>
<line number="76" hits="1"/>
<line number="77" hits="1"/>
<line number="78" hits="1"/>
<line number="80" hits="1"/>
<line number="82" hits="1"/>
<line number="84" hits="1"/>
<line number="85" hits="1"/>
<line number="86" hits="1"/>
<line number="87" hits="1"/>
<line number="88" hits="1"/>
<line number="89" hits="1"/>
<line number="90" hits="1"/>
<line number="92" hits="1"/>
<line number="93" hits="1"/>
<line number="94" hits="1"/>
<line number="95" hits="1"/>
<line number="96" hits="1"/>
<line number="97" hits="1"/>
<line number="98" hits="1"/>
<line number="99" hits="1"/>
<line number="101" hits="1"/>
<line number="102" hits="1"/>
<line number="103" hits="1"/>
<line number="104" hits="1"/>
<line number="105" hits="1"/>
<line number="107" hits="1"/>
<line number="108" hits="1"/>
<line number="109" hits="1"/>
<line number="110" hits="1"/>
<line number="111" hits="1"/>
<line number="112" hits="1"/>
<line number="113" hits="1"/>
<line number="114" hits="1"/>
<line number="115" hits="1"/>
<line number="116" hits="1"/>
<line number="117" hits="1"/>
<line number="118" hits="1"/>
<line number="119" hits="1"/>
<line number="120" hits="1"/>
<line number="121" hits="1"/>
<line number="122" hits="1"/>
<line number="124" hits="1"/>
<line number="125" hits="1"/>
<line number="126" hits="1"/>
<line number="127" hits="1"/>
<line number="128" hits="1"/>
<line number="129" hits="1"/>
<line number="131" hits="1"/>
<line number="132" hits="1"/>
<line number="133" hits="1"/>
<line number="134" hits="1"/>
<line number="136" hits="1"/>
<line number="138" hits="1"/>
<line number="139" hits="1"/>
<line number="140" hits="1"/>
<line number="141" hits="1"/>
<line number="142" hits="1"/>
<line number="143" hits="1"/>
<line number="145" hits="1"/>
<line number="146" hits="1"/>
<line number="147" hits="1"/>
<line number="154" hits="1"/>
<line number="156" hits="1"/>
<line number="157" hits="1"/>
<line number="158" hits="1"/>
<line number="160" hits="1"/>
<line number="161" hits="1"/>
<line number="162" hits="1"/>
<line number="163" hits="1"/>
<line number="164" hits="1"/>
<line number="166" hits="1"/>
<line number="169" hits="1"/>
<line number="170" hits="1"/>
</lines>
</class>
<class name="test_sample_path.py" filename="test_sample_path.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="5" hits="1"/>
<line number="6" hits="1"/>
<line number="7" hits="1"/>
<line number="8" hits="1"/>
<line number="9" hits="1"/>
<line number="12" hits="1"/>
<line number="14" hits="1"/>
<line number="15" hits="1"/>
<line number="16" hits="1"/>
<line number="17" hits="1"/>
<line number="19" hits="1"/>
<line number="20" hits="1"/>
<line number="21" hits="1"/>
<line number="22" hits="1"/>
<line number="23" hits="1"/>
<line number="24" hits="1"/>
<line number="25" hits="1"/>
<line number="26" hits="1"/>
<line number="27" hits="1"/>
<line number="28" hits="1"/>
<line number="29" hits="1"/>
<line number="30" hits="1"/>
<line number="33" hits="1"/>
<line number="34" hits="1"/>
</lines>
</class>
<class name="test_trajectory.py" filename="test_trajectory.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="6" hits="1"/>
<line number="9" hits="1"/>
<line number="11" hits="1"/>
<line number="12" hits="1"/>
<line number="13" hits="1"/>
<line number="14" hits="1"/>
<line number="15" hits="1"/>
<line number="16" hits="1"/>
<line number="17" hits="1"/>
<line number="18" hits="1"/>
<line number="20" hits="1"/>
<line number="21" hits="1"/>
<line number="22" hits="1"/>
<line number="24" hits="1"/>
<line number="25" hits="1"/>
<line number="26" hits="1"/>
<line number="27" hits="1"/>
<line number="28" hits="1"/>
<line number="30" hits="1"/>
<line number="31" hits="1"/>
<line number="32" hits="1"/>
<line number="33" hits="1"/>
<line number="35" hits="1"/>
<line number="36" hits="1"/>
<line number="37" hits="1"/>
<line number="38" hits="1"/>
<line number="40" hits="1"/>
<line number="41" hits="1"/>
<line number="42" hits="1"/>
<line number="43" hits="1"/>
<line number="46" hits="1"/>
<line number="47" hits="1"/>
</lines>
</class>
</PyCTBN>
</package>
<package name=".Users.Zalum.Desktop.Tesi.CTBN_Project.PyCTBN.PyCTBN" line-rate="0.9059" branch-rate="0" complexity="0">
<PyCTBN>
<class name="abstract_importer.py" filename="/Users/Zalum/Desktop/Tesi/CTBN_Project/PyCTBN/PyCTBN/abstract_importer.py" complexity="0" line-rate="0.8182" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="4" hits="1"/>
<line number="12" hits="1"/>
<line number="13" hits="1"/>
<line number="14" hits="1"/>
<line number="16" hits="1"/>
<line number="17" hits="1"/>
<line number="18" hits="0"/>
<line number="20" hits="1"/>
<line number="21" hits="1"/>
<line number="22" hits="0"/>
</lines>
</class>
<class name="abstract_sample_path.py" filename="/Users/Zalum/Desktop/Tesi/CTBN_Project/PyCTBN/PyCTBN/abstract_sample_path.py" complexity="0" line-rate="0.8571" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="5" hits="1"/>
<line number="7" hits="1"/>
<line number="8" hits="1"/>
<line number="9" hits="1"/>
<line number="10" hits="1"/>
<line number="11" hits="1"/>
<line number="13" hits="1"/>
<line number="14" hits="1"/>
<line number="25" hits="0"/>
<line number="27" hits="1"/>
<line number="28" hits="1"/>
<line number="37" hits="0"/>
</lines>
</class>
<class name="json_importer.py" filename="/Users/Zalum/Desktop/Tesi/CTBN_Project/PyCTBN/PyCTBN/json_importer.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="2" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="5" hits="1"/>
<line number="8" hits="1"/>
<line number="30" hits="1"/>
<line number="32" hits="1"/>
<line number="33" hits="1"/>
<line number="34" hits="1"/>
<line number="35" hits="1"/>
<line number="36" hits="1"/>
<line number="37" hits="1"/>
<line number="38" hits="1"/>
<line number="39" hits="1"/>
<line number="40" hits="1"/>
<line number="41" hits="1"/>
<line number="42" hits="1"/>
<line number="44" hits="1"/>
<line number="52" hits="1"/>
<line number="53" hits="1"/>
<line number="54" hits="1"/>
<line number="55" hits="1"/>
<line number="56" hits="1"/>
<line number="57" hits="1"/>
<line number="59" hits="1"/>
<line number="67" hits="1"/>
<line number="69" hits="1"/>
<line number="78" hits="1"/>
<line number="81" hits="1"/>
<line number="92" hits="1"/>
<line number="96" hits="1"/>
<line number="97" hits="1"/>
<line number="98" hits="1"/>
<line number="99" hits="1"/>
<line number="100" hits="1"/>
<line number="102" hits="1"/>
<line number="116" hits="1"/>
<line number="117" hits="1"/>
<line number="118" hits="1"/>
<line number="122" hits="1"/>
<line number="134" hits="1"/>
<line number="136" hits="1"/>
<line number="149" hits="1"/>
<line number="150" hits="1"/>
<line number="151" hits="1"/>
<line number="152" hits="1"/>
<line number="153" hits="1"/>
<line number="154" hits="1"/>
<line number="156" hits="1"/>
<line number="171" hits="1"/>
<line number="172" hits="1"/>
<line number="174" hits="1"/>
<line number="175" hits="1"/>
<line number="176" hits="1"/>
<line number="177" hits="1"/>
<line number="179" hits="1"/>
<line number="189" hits="1"/>
<line number="190" hits="1"/>
<line number="191" hits="1"/>
<line number="193" hits="1"/>
<line number="194" hits="1"/>
<line number="195" hits="1"/>
<line number="196" hits="1"/>
<line number="198" hits="1"/>
<line number="201" hits="1"/>
<line number="209" hits="1"/>
<line number="212" hits="1"/>
<line number="214" hits="1"/>
<line number="222" hits="1"/>
<line number="224" hits="1"/>
<line number="228" hits="1"/>
<line number="229" hits="1"/>
<line number="231" hits="1"/>
<line number="232" hits="1"/>
<line number="233" hits="1"/>
<line number="234" hits="1"/>
<line number="235" hits="1"/>
<line number="236" hits="1"/>
<line number="237" hits="1"/>
<line number="238" hits="1"/>
<line number="240" hits="1"/>
<line number="241" hits="1"/>
<line number="242" hits="1"/>
<line number="244" hits="1"/>
<line number="245" hits="1"/>
<line number="246" hits="1"/>
<line number="248" hits="1"/>
<line number="249" hits="1"/>
<line number="250" hits="1"/>
</lines>
</class>
<class name="sample_path.py" filename="/Users/Zalum/Desktop/Tesi/CTBN_Project/PyCTBN/PyCTBN/sample_path.py" complexity="0" line-rate="0.963" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="3" hits="1"/>
<line number="4" hits="1"/>
<line number="7" hits="1"/>
<line number="22" hits="1"/>
<line number="24" hits="1"/>
<line number="27" hits="1"/>
<line number="29" hits="1"/>
<line number="39" hits="1"/>
<line number="40" hits="1"/>
<line number="44" hits="1"/>
<line number="46" hits="1"/>
<line number="54" hits="1"/>
<line number="55" hits="1"/>
<line number="57" hits="1"/>
<line number="58" hits="1"/>
<line number="59" hits="1"/>
<line number="60" hits="1"/>
<line number="63" hits="1"/>
<line number="64" hits="1"/>
<line number="65" hits="1"/>
<line number="67" hits="1"/>
<line number="68" hits="1"/>
<line number="69" hits="1"/>
<line number="71" hits="1"/>
<line number="72" hits="0"/>
</lines>
</class>
<class name="structure.py" filename="/Users/Zalum/Desktop/Tesi/CTBN_Project/PyCTBN/PyCTBN/structure.py" complexity="0" line-rate="0.65" branch-rate="0">
<methods/>
<lines>
<line number="1" hits="1"/>
<line number="2" hits="1"/>
<line number="5" hits="1"/>
<line number="16" hits="1"/>
<line number="18" hits="1"/>
<line number="19" hits="1"/>
<line number="20" hits="1"/>
<line number="21" hits="1"/>
<line number="22" hits="1"/>
<line number="24" hits="1"/>
<line number="25" hits="1"/>
<line number="28" hits="0"/>
<line number="30" hits="1"/>
<line number="31" hits="1"/>
<line number="32" hits="0"/>
<line number="34" hits="1"/>
<line number="35" hits="1"/>
<line number="36" hits="0"/>
<line number="38" hits="1"/>
<line number="39" hits="1"/>
<line number="40" hits="0"/>
<line number="42" hits="1"/>
<line number="43" hits="1"/>
<line number="44" hits="0"/>
<line number="46" hits="1"/>
<line number="47" hits="0"/>
<line number="49" hits="1"/>
<line number="50" hits="0"/>
<line number="51" hits="0"/>
<line number="53" hits="1"/>
<line number="54" hits="0"/>
<line number="56" hits="1"/>
<line number="57" hits="0"/>
<line number="58" hits="0"/>
<line number="60" hits="1"/>
<line number="61" hits="1"/>
<line number="64" hits="1"/>
<line number="66" hits="0"/>
<line number="67" hits="0"/>
<line number="72" hits="0"/>
</lines>
</class>
<class name="trajectory.py" filename="/Users/Zalum/Desktop/Tesi/CTBN_Project/PyCTBN/PyCTBN/trajectory.py" complexity="0" line-rate="1" branch-rate="0">
<methods/>
<lines>
<line number="2" hits="1"/>
<line number="5" hits="1"/>
<line number="17" hits="1"/>
<line number="18" hits="1"/>
<line number="19" hits="1"/>
<line number="20" hits="1"/>
<line number="21" hits="1"/>
<line number="22" hits="1"/>
<line number="24" hits="1"/>
<line number="25" hits="1"/>
<line number="32" hits="1"/>
<line number="34" hits="1"/>
<line number="35" hits="1"/>
<line number="42" hits="1"/>
<line number="44" hits="1"/>
<line number="45" hits="1"/>
<line number="46" hits="1"/>
<line number="48" hits="1"/>
<line number="49" hits="1"/>
<line number="51" hits="1"/>
<line number="52" hits="1"/>
</lines>
</class>
</PyCTBN>
</package>
<package name=".Users.Zalum.Library.Python.3.8.lib.python.site-packages" line-rate="0.5234" branch-rate="0" complexity="0">
<PyCTBN>
<class name="six.py" filename="/Users/Zalum/Library/Python/3.8/lib/python/site-packages/six.py" complexity="0" line-rate="0.5234" branch-rate="0">
<methods/>
<lines>
<line number="21" hits="1"/>
<line number="23" hits="1"/>
<line number="25" hits="1"/>
<line number="26" hits="1"/>
<line number="27" hits="1"/>
<line number="28" hits="1"/>
<line number="29" hits="1"/>
<line number="31" hits="1"/>
<line number="32" hits="1"/>
<line number="36" hits="1"/>
<line number="37" hits="1"/>
<line number="38" hits="1"/>
<line number="40" hits="1"/>
<line number="41" hits="1"/>
<line number="42" hits="1"/>
<line number="43" hits="1"/>
<line number="44" hits="1"/>
<line number="45" hits="1"/>
<line number="47" hits="1"/>
<line number="49" hits="0"/>
<line number="50" hits="0"/>
<line number="51" hits="0"/>
<line number="52" hits="0"/>
<line number="53" hits="0"/>
<line number="55" hits="0"/>
<line number="57" hits="0"/>
<line number="60" hits="0"/>
<line number="62" hits="0"/>
<line number="63" hits="0"/>
<line number="64" hits="0"/>
<line number="65" hits="0"/>
<line number="66" hits="0"/>
<line number="68" hits="0"/>
<line number="71" hits="0"/>
<line number="72" hits="0"/>
<line number="75" hits="1"/>
<line number="77" hits="1"/>
<line number="80" hits="1"/>
<line number="82" hits="1"/>
<line number="83" hits="1"/>
<line number="86" hits="1"/>
<line number="88" hits="1"/>
<line number="89" hits="1"/>
<line number="91" hits="1"/>
<line number="92" hits="1"/>
<line number="93" hits="1"/>
<line number="94" hits="1"/>
<line number="97" hits="1"/>
<line number="98" hits="0"/>
<line number="99" hits="0"/>
<line number="100" hits="1"/>
<line number="103" hits="1"/>
<line number="105" hits="1"/>
<line number="106" hits="1"/>
<line number="107" hits="1"/>
<line number="108" hits="1"/>
<line number="109" hits="1"/>
<line number="110" hits="1"/>
<line number="112" hits="0"/>
<line number="114" hits="1"/>
<line number="115" hits="1"/>
<line number="117" hits="1"/>
<line number="118" hits="0"/>
<line number="119" hits="0"/>
<line number="120" hits="0"/>
<line number="121" hits="0"/>
<line number="124" hits="1"/>
<line number="126" hits="1"/>
<line number="127" hits="1"/>
<line number="128" hits="1"/>
<line number="130" hits="1"/>
<line number="131" hits="0"/>
<line number="132" hits="0"/>
<line number="133" hits="0"/>
<line number="136" hits="1"/>
<line number="139" hits="1"/>
<line number="141" hits="1"/>
<line number="142" hits="1"/>
<line number="143" hits="1"/>
<line number="144" hits="1"/>
<line number="145" hits="0"/>
<line number="146" hits="1"/>
<line number="147" hits="1"/>
<line number="148" hits="1"/>
<line number="149" hits="1"/>
<line number="151" hits="1"/>
<line number="152" hits="1"/>
<line number="154" hits="0"/>
<line number="155" hits="0"/>
<line number="156" hits="0"/>
<line number="157" hits="0"/>
<line number="159" hits="1"/>
<line number="160" hits="0"/>
<line number="161" hits="0"/>
<line number="164" hits="1"/>
<line number="173" hits="1"/>
<line number="174" hits="1"/>
<line number="175" hits="1"/>
<line number="177" hits="1"/>
<line number="178" hits="1"/>
<line number="179" hits="1"/>
<line number="181" hits="1"/>
<line number="182" hits="1"/>
<line number="184" hits="1"/>
<line number="185" hits="1"/>
<line number="186" hits="1"/>
<line number="187" hits="1"/>
<line number="189" hits="1"/>
<line number="190" hits="1"/>
<line number="191" hits="1"/>
<line number="192" hits="0"/>
<line number="193" hits="0"/>
<line number="195" hits="1"/>
<line number="196" hits="1"/>
<line number="198" hits="1"/>
<line number="199" hits="1"/>
<line number="200" hits="1"/>
<line number="201" hits="1"/>
<line number="202" hits="1"/>
<line number="203" hits="0"/>
<line number="205" hits="1"/>
<line number="206" hits="1"/>
<line number="207" hits="1"/>
<line number="209" hits="1"/>
<line number="216" hits="1"/>
<line number="218" hits="1"/>
<line number="222" hits="0"/>
<line number="223" hits="0"/>
<line number="224" hits="1"/>
<line number="226" hits="1"/>
<line number="229" hits="1"/>
<line number="232" hits="1"/>
<line number="235" hits="1"/>
<line number="307" hits="1"/>
<line number="308" hits="0"/>
<line number="312" hits="1"/>
<line number="313" hits="1"/>
<line number="314" hits="1"/>
<line number="315" hits="1"/>
<line number="316" hits="1"/>
<line number="318" hits="1"/>
<line number="320" hits="1"/>
<line number="321" hits="1"/>
<line number="324" hits="1"/>
<line number="329" hits="1"/>
<line number="356" hits="1"/>
<line number="357" hits="1"/>
<line number="358" hits="1"/>
<line number="360" hits="1"/>
<line number="362" hits="1"/>
<line number="366" hits="1"/>
<line number="371" hits="1"/>
<line number="376" hits="1"/>
<line number="377" hits="1"/>
<line number="378" hits="1"/>
<line number="380" hits="1"/>
<line number="382" hits="1"/>
<line number="386" hits="1"/>
<line number="391" hits="1"/>
<line number="428" hits="1"/>
<line number="429" hits="1"/>
<line number="430" hits="1"/>
<line number="432" hits="1"/>
<line number="434" hits="1"/>
<line number="438" hits="1"/>
<line number="443" hits="1"/>
<line number="449" hits="1"/>
<line number="450" hits="1"/>
<line number="451" hits="1"/>
<line number="453" hits="1"/>
<line number="455" hits="1"/>
<line number="459" hits="1"/>
<line number="464" hits="1"/>
<line number="467" hits="1"/>
<line number="468" hits="1"/>
<line number="469" hits="1"/>
<line number="471" hits="1"/>
<line number="473" hits="1"/>
<line number="477" hits="1"/>
<line number="480" hits="1"/>
<line number="481" hits="1"/>
<line number="482" hits="1"/>
<line number="483" hits="1"/>
<line number="484" hits="1"/>
<line number="485" hits="1"/>
<line number="487" hits="1"/>
<line number="488" hits="0"/>
<line number="490" hits="1"/>
<line number="494" hits="1"/>
<line number="496" hits="0"/>
<line number="499" hits="1"/>
<line number="501" hits="0"/>
<line number="502" hits="0"/>
<line number="503" hits="0"/>
<line number="504" hits="0"/>
<line number="505" hits="0"/>
<line number="506" hits="0"/>
<line number="507" hits="0"/>
<line number="510" hits="1"/>
<line number="511" hits="1"/>
<line number="512" hits="1"/>
<line number="514" hits="1"/>
<line number="515" hits="1"/>
<line number="516" hits="1"/>
<line number="517" hits="1"/>
<line number="519" hits="0"/>
<line number="520" hits="0"/>
<line number="522" hits="0"/>
<line number="523" hits="0"/>
<line number="524" hits="0"/>
<line number="525" hits="0"/>
<line number="528" hits="1"/>
<line number="529" hits="1"/>
<line number="530" hits="0"/>
<line number="531" hits="0"/>
<line number="532" hits="0"/>
<line number="533" hits="1"/>
<line number="536" hits="1"/>
<line number="537" hits="1"/>
<line number="538" hits="0"/>
<line number="539" hits="0"/>
<line number="540" hits="0"/>
<line number="543" hits="1"/>
<line number="544" hits="1"/>
<line number="545" hits="0"/>
<line number="547" hits="1"/>
<line number="549" hits="1"/>
<line number="550" hits="0"/>
<line number="552" hits="1"/>
<line number="554" hits="0"/>
<line number="555" hits="0"/>
<line number="557" hits="0"/>
<line number="558" hits="0"/>
<line number="560" hits="0"/>
<line number="561" hits="0"/>
<line number="563" hits="0"/>
<line number="565" hits="0"/>
<line number="566" hits="0"/>
<line number="568" hits="0"/>
<line number="569" hits="1"/>
<line number="573" hits="1"/>
<line number="574" hits="1"/>
<line number="575" hits="1"/>
<line number="576" hits="1"/>
<line number="577" hits="1"/>
<line number="578" hits="1"/>
<line number="581" hits="1"/>
<line number="582" hits="1"/>
<line number="583" hits="0"/>
<line number="585" hits="1"/>
<line number="586" hits="0"/>
<line number="588" hits="1"/>
<line number="589" hits="0"/>
<line number="591" hits="1"/>
<line number="592" hits="0"/>
<line number="594" hits="1"/>
<line number="596" hits="1"/>
<line number="598" hits="1"/>
<line number="600" hits="0"/>
<line number="601" hits="0"/>
<line number="603" hits="0"/>
<line number="604" hits="0"/>
<line number="606" hits="0"/>
<line number="607" hits="0"/>
<line number="609" hits="0"/>
<line number="610" hits="0"/>
<line number="612" hits="0"/>
<line number="614" hits="0"/>
<line number="616" hits="0"/>
<line number="618" hits="1"/>
<line number="619" hits="1"/>
<line number="620" hits="1"/>
<line number="622" hits="1"/>
<line number="626" hits="1"/>
<line number="627" hits="1"/>
<line number="628" hits="0"/>
<line number="630" hits="1"/>
<line number="631" hits="0"/>
<line number="632" hits="1"/>
<line number="633" hits="1"/>
<line number="634" hits="1"/>
<line number="635" hits="1"/>
<line number="636" hits="1"/>
<line number="637" hits="1"/>
<line number="638" hits="1"/>
<line number="639" hits="1"/>
<line number="640" hits="1"/>
<line number="641" hits="1"/>
<line number="642" hits="1"/>
<line number="643" hits="1"/>
<line number="644" hits="1"/>
<line number="645" hits="0"/>
<line number="646" hits="0"/>
<line number="647" hits="0"/>
<line number="649" hits="1"/>
<line number="650" hits="1"/>
<line number="651" hits="1"/>
<line number="653" hits="0"/>
<line number="654" hits="0"/>
<line number="657" hits="0"/>
<line number="658" hits="0"/>
<line number="659" hits="0"/>
<line number="660" hits="0"/>
<line number="662" hits="0"/>
<line number="663" hits="0"/>
<line number="665" hits="0"/>
<line number="666" hits="0"/>
<line number="667" hits="0"/>
<line number="668" hits="0"/>
<line number="669" hits="0"/>
<line number="670" hits="0"/>
<line number="671" hits="0"/>
<line number="672" hits="0"/>
<line number="673" hits="0"/>
<line number="674" hits="1"/>
<line number="675" hits="1"/>
<line number="678" hits="1"/>
<line number="679" hits="0"/>
<line number="682" hits="1"/>
<line number="683" hits="0"/>
<line number="686" hits="1"/>
<line number="687" hits="0"/>
<line number="690" hits="1"/>
<line number="691" hits="0"/>
<line number="694" hits="1"/>
<line number="695" hits="1"/>
<line number="697" hits="1"/>
<line number="698" hits="0"/>
<line number="699" hits="0"/>
<line number="700" hits="0"/>
<line number="701" hits="0"/>
<line number="702" hits="0"/>
<line number="703" hits="0"/>
<line number="705" hits="0"/>
<line number="706" hits="0"/>
<line number="709" hits="0"/>
<line number="711" hits="0"/>
<line number="712" hits="0"/>
<line number="713" hits="0"/>
<line number="714" hits="0"/>
<line number="715" hits="0"/>
<line number="716" hits="0"/>
<line number="717" hits="0"/>
<line number="718" hits="0"/>
<line number="719" hits="0"/>
<line number="721" hits="0"/>
<line number="729" hits="1"/>
<line number="730" hits="1"/>
<line number="737" hits="0"/>
<line number="738" hits="0"/>
<line number="741" hits="1"/>
<line number="742" hits="1"/>
<line number="743" hits="0"/>
<line number="745" hits="0"/>
<line number="746" hits="0"/>
<line number="747" hits="0"/>
<line number="749" hits="0"/>
<line number="750" hits="0"/>
<line number="751" hits="0"/>
<line number="753" hits="0"/>
<line number="756" hits="0"/>
<line number="757" hits="0"/>
<line number="758" hits="0"/>
<line number="759" hits="0"/>
<line number="760" hits="0"/>
<line number="761" hits="0"/>
<line number="762" hits="0"/>
<line number="763" hits="0"/>
<line number="764" hits="0"/>
<line number="765" hits="0"/>
<line number="766" hits="0"/>
<line number="767" hits="0"/>
<line number="768" hits="0"/>
<line number="769" hits="0"/>
<line number="770" hits="0"/>
<line number="771" hits="0"/>
<line number="772" hits="0"/>
<line number="773" hits="0"/>
<line number="774" hits="0"/>
<line number="775" hits="0"/>
<line number="776" hits="0"/>
<line number="777" hits="0"/>
<line number="778" hits="0"/>
<line number="779" hits="0"/>
<line number="780" hits="0"/>
<line number="781" hits="0"/>
<line number="782" hits="0"/>
<line number="783" hits="0"/>
<line number="785" hits="0"/>
<line number="786" hits="0"/>
<line number="787" hits="0"/>
<line number="788" hits="0"/>
<line number="789" hits="0"/>
<line number="790" hits="0"/>
<line number="791" hits="0"/>
<line number="792" hits="0"/>
<line number="793" hits="0"/>
<line number="794" hits="0"/>
<line number="795" hits="0"/>
<line number="796" hits="1"/>
<line number="797" hits="0"/>
<line number="799" hits="0"/>
<line number="800" hits="0"/>
<line number="801" hits="0"/>
<line number="802" hits="0"/>
<line number="803" hits="0"/>
<line number="804" hits="0"/>
<line number="806" hits="1"/>
<line number="808" hits="1"/>
<line number="814" hits="0"/>
<line number="817" hits="0"/>
<line number="818" hits="0"/>
<line number="819" hits="0"/>
<line number="820" hits="0"/>
<line number="821" hits="0"/>
<line number="823" hits="0"/>
<line number="824" hits="0"/>
<line number="825" hits="0"/>
<line number="826" hits="0"/>
<line number="827" hits="0"/>
<line number="828" hits="0"/>
<line number="830" hits="0"/>
<line number="832" hits="0"/>
<line number="834" hits="0"/>
<line number="837" hits="1"/>
<line number="840" hits="1"/>
<line number="845" hits="1"/>
<line number="847" hits="1"/>
<line number="848" hits="1"/>
<line number="851" hits="1"/>
<line number="852" hits="1"/>
<line number="853" hits="0"/>
<line number="855" hits="0"/>
<line number="856" hits="1"/>
<line number="858" hits="1"/>
<line number="859" hits="1"/>
<line number="860" hits="1"/>
<line number="861" hits="1"/>
<line number="864" hits="1"/>
<line number="866" hits="1"/>
<line number="867" hits="1"/>
<line number="868" hits="1"/>
<line number="869" hits="1"/>
<line number="870" hits="0"/>
<line number="871" hits="0"/>
<line number="872" hits="0"/>
<line number="873" hits="0"/>
<line number="874" hits="1"/>
<line number="875" hits="1"/>
<line number="876" hits="1"/>
<line number="877" hits="1"/>
<line number="878" hits="1"/>
<line number="879" hits="1"/>
<line number="882" hits="1"/>
<line number="893" hits="0"/>
<line number="894" hits="0"/>
<line number="895" hits="0"/>
<line number="896" hits="0"/>
<line number="898" hits="0"/>
<line number="901" hits="1"/>
<line number="912" hits="0"/>
<line number="913" hits="0"/>
<line number="914" hits="0"/>
<line number="915" hits="0"/>
<line number="916" hits="0"/>
<line number="917" hits="0"/>
<line number="918" hits="0"/>
<line number="921" hits="1"/>
<line number="932" hits="0"/>
<line number="933" hits="0"/>
<line number="934" hits="0"/>
<line number="935" hits="0"/>
<line number="937" hits="0"/>
<line number="940" hits="1"/>
<line number="948" hits="0"/>
<line number="949" hits="0"/>
<line number="950" hits="0"/>
<line number="953" hits="0"/>
<line number="954" hits="0"/>
<line number="955" hits="0"/>
<line number="961" hits="1"/>
<line number="962" hits="1"/>
<line number="963" hits="1"/>
<line number="964" hits="1"/>
<line number="968" hits="1"/>
<line number="969" hits="1"/>
<line number="974" hits="1"/>
<line number="976" hits="0"/>
<line number="977" hits="0"/>
<line number="978" hits="1"/>
<line number="980" hits="1"/>
</lines>
</class>
</PyCTBN>
</package>
</packages>
</coverage>

@ -360,12 +360,12 @@ Network graph and parameters generation, trajectory sampling, data export
.. code-block:: python
from PyCTBN.PyCTBN.structure_graph.trajectory_generator import TrajectoryGenerator
from PyCTBN.PyCTBN.structure_graph.network_generator import NetworkGenerator
from PyCTBN.PyCTBN.utility.json_importer import JsonImporter
from PyCTBN.PyCTBN.utility.json_exporter import JsonExporter
from PyCTBN.PyCTBN.structure_graph.sample_path import SamplePath
from PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator import StructureConstraintBasedEstimator
from pyctbn.legacy.structure_graph.trajectory_generator import TrajectoryGenerator
from pyctbn.legacy.structure_graph.network_generator import NetworkGenerator
from pyctbn.legacy.utility.json_importer import JsonImporter
from pyctbn.legacy.utility.json_exporter import JsonExporter
from pyctbn.legacy.structure_graph.sample_path import SamplePath
from pyctbn.legacy.estimators.structure_constraint_based_estimator import StructureConstraintBasedEstimator
def main():
# Network Generation

File diff suppressed because it is too large Load Diff

@ -1,855 +0,0 @@
<!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.PyCTBN.estimators 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"/>
<link rel="up" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.html"/>
<link rel="next" title="PyCTBN.PyCTBN.optimizers package" href="PyCTBN.PyCTBN.optimizers.html"/>
<link rel="prev" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.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 class="current">
<li class="toctree-l1 current"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul class="current">
<li class="toctree-l2 current"><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">
<section id="pyctbn-pyctbn-estimators-package">
<h1>PyCTBN.PyCTBN.estimators package<a class="headerlink" href="#pyctbn-pyctbn-estimators-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.PyCTBN.estimators.fam_score_calculator">
<span id="pyctbn-pyctbn-estimators-fam-score-calculator-module"></span><h2>PyCTBN.PyCTBN.estimators.fam_score_calculator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.fam_score_calculator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.fam_score_calculator.</code><code class="sig-name descname">FamScoreCalculator</code><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of calculating the FamScore of a node by using a Bayesian score function</p>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score">
<code class="sig-name descname">get_fam_score</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>cims</strong> (<em>np.array</em>) – np.array with all the node’s cims</p></li>
<li><p><strong>tau_xu</strong> (<em>float</em><em>, </em><em>optional</em>) – hyperparameter over the CTBN’s q parameters, default to 0.1</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em><em>, </em><em>optional</em>) – hyperparameter over the CTBN’s q parameters, default to 1</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the FamScore value of the node</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q">
<code class="sig-name descname">marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>cims</strong> (<em>np.array</em>) – np.array with all the node’s cims</p></li>
<li><p><strong>tau_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the value of the marginal likelihood over q</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta">
<code class="sig-name descname">marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>cims</strong> (<em>np.array</em>) – np.array with all the node’s cims</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters, default to 0.1</p></li>
<li><p><strong>alpha_xxu</strong> (<em>float</em>) – distribuited hyperparameter over the CTBN’s theta parameters</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the value of the marginal likelihood over theta</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q">
<code class="sig-name descname">single_cim_xu_marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">M_xu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">T_xu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
and a specif parents’s assignment</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>M_xu_suff_stats</strong> – value of the suffucient statistic M[x|u]</p></li>
<li><p><strong>T_xu_suff_stats</strong> (<em>float</em>) – value of the suffucient statistic T[x|u]</p></li>
<li><p><strong>cim</strong> (<em>class:'ConditionalIntensityMatrix'</em>) – A conditional_intensity_matrix object with the sufficient statistics</p></li>
<li><p><strong>tau_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the value of the marginal likelihood of the node when assumes a specif value</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta">
<code class="sig-name descname">single_cim_xu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">index</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
and a specif parents’s assignment</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>cim</strong> (<em>class:'ConditionalIntensityMatrix'</em>) – A conditional_intensity_matrix object with the sufficient statistics</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters</p></li>
<li><p><strong>alpha_xxu</strong> (<em>float</em>) – distribuited hyperparameter over the CTBN’s theta parameters</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the value of the marginal likelihood over theta when the node assumes a specif value</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta">
<code class="sig-name descname">single_internal_cim_xxu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">M_xxu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>M_xxu_suff_stats</strong> (<em>float</em>) – value of the suffucient statistic M[xx’<a href="#id1"><span class="problematic" id="id2">|</span></a>u]</p></li>
<li><p><strong>alpha_xxu</strong> (<em>float</em>) – distribuited hyperparameter over the CTBN’s theta parameters</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the value of the marginal likelihood over theta when the node assumes a specif value</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q">
<code class="sig-name descname">variable_cim_xu_marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>cim</strong> (<em>class:'ConditionalIntensityMatrix'</em>) – A conditional_intensity_matrix object with the sufficient statistics</p></li>
<li><p><strong>tau_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the value of the marginal likelihood over q</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta">
<code class="sig-name descname">variable_cim_xu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>cim</strong> (<em>class:'ConditionalIntensityMatrix'</em>) – A conditional_intensity_matrix object with the sufficient statistics</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em>) – hyperparameter over the CTBN’s q parameters, default to 0.1</p></li>
<li><p><strong>alpha_xxu</strong> (<em>float</em>) – distribuited hyperparameter over the CTBN’s theta parameters</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the value of the marginal likelihood over theta</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators.parameters_estimator">
<span id="pyctbn-pyctbn-estimators-parameters-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.parameters_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.parameters_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.parameters_estimator.</code><code class="sig-name descname">ParametersEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectories</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">net_graph</span><span class="p">:</span> <span class="n"><a class="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><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of computing the cims of particular node given the trajectories and the net structure
in the graph <code class="docutils literal notranslate"><span class="pre">_net_graph</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>trajectories</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory" title="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory"><em>Trajectory</em></a>) – the trajectories</p></li>
<li><p><strong>net_graph</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"><em>NetworkGraph</em></a>) – the net structure</p></li>
</ul>
</dd>
<dt class="field-even">_single_set_of_cims</dt>
<dd class="field-even"><p>the set of cims object that will hold the cims of the node</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node">
<code class="sig-name descname">compute_parameters_for_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; <a class="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><a class="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 <code class="docutils literal notranslate"><span class="pre">node_id</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>node_id</strong> (<em>string</em>) – the node label</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>A SetOfCims object filled with the computed CIMS</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p><a class="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">SetOfCims</a></p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node">
<em class="property">static </em><code class="sig-name descname">compute_state_res_time_for_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">times</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cols_filter</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">scalar_indexes_struct</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">T</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="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 <code class="docutils literal notranslate"><span class="pre">T</span></code> with the results</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>node_indx</strong> (<em>int</em>) – the index of the node</p></li>
<li><p><strong>times</strong> (<em>numpy.array</em>) – the times deltas vector</p></li>
<li><p><strong>trajectory</strong> (<em>numpy.ndArray</em>) – the trajectory</p></li>
<li><p><strong>cols_filter</strong> (<em>numpy.array</em>) – the columns filtering structure</p></li>
<li><p><strong>scalar_indexes_struct</strong> (<em>numpy.array</em>) – the indexing structure</p></li>
<li><p><strong>T</strong> (<em>numpy.ndArray</em>) – the state residence times vectors</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node">
<em class="property">static </em><code class="sig-name descname">compute_state_transitions_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cols_filter</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">scalar_indexing</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">M</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="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 <code class="docutils literal notranslate"><span class="pre">M</span></code> with the results.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>node_indx</strong> (<em>int</em>) – the index of the node</p></li>
<li><p><strong>trajectory</strong> (<em>numpy.ndArray</em>) – the trajectory</p></li>
<li><p><strong>cols_filter</strong> (<em>numpy.array</em>) – the columns filtering structure</p></li>
<li><p><strong>scalar_indexing</strong> (<em>numpy.array</em>) – the indexing structure</p></li>
<li><p><strong>M</strong> (<em>numpy.ndArray</em>) – the state transitions matrices</p></li>
</ul>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.fast_init">
<code class="sig-name descname">fast_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="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 <code class="docutils literal notranslate"><span class="pre">node_id</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>node_id</strong> (<em>string</em>) – the node label</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">
<span id="pyctbn-pyctbn-estimators-structure-constraint-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.</code><code class="sig-name descname">StructureConstraintBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">exp_test_alfa</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">chi_test_alfa</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">[]</span></em>, <em class="sig-param"><span class="n">thumb_threshold</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">25</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></code></a></p>
<p>Has the task of estimating the network structure given the trajectories in samplepath by using a constraint-based approach.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>sample_path</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>exp_test_alfa</strong> (<em>float</em>) – the significance level for the exponential Hp test</p></li>
<li><p><strong>chi_test_alfa</strong> (<em>float</em>) – the significance level for the chi Hp test</p></li>
<li><p><strong>known_edges</strong> (<em>List</em>) – the prior known edges in the net structure if present</p></li>
<li><p><strong>thumb_threshold</strong> (<em>int</em>) – the threshold value to consider a valid independence test</p></li>
</ul>
</dd>
<dt class="field-even">_nodes</dt>
<dd class="field-even"><p>the nodes labels</p>
</dd>
<dt class="field-odd">_nodes_vals</dt>
<dd class="field-odd"><p>the nodes cardinalities</p>
</dd>
<dt class="field-even">_nodes_indxs</dt>
<dd class="field-even"><p>the nodes indexes</p>
</dd>
<dt class="field-odd">_complete_graph</dt>
<dd class="field-odd"><p>the complete directed graph built using the nodes labels in <code class="docutils literal notranslate"><span class="pre">_nodes</span></code></p>
</dd>
<dt class="field-even">_cache</dt>
<dd class="field-even"><p>the Cache object</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test">
<code class="sig-name descname">complete_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">test_parent</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">test_child</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">parent_set</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">child_states_numb</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parent_indx</span></em>, <em class="sig-param"><span class="n">child_indx</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test" title="Permalink to this definition"></a></dt>
<dd><p>Performs a complete independence test on the directed graphs G1 = {test_child U parent_set}
G2 = {G1 U test_parent} (added as an additional parent of the test_child).
Generates all the necessary structures and datas to perform the tests.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>test_parent</strong> (<em>string</em>) – the node label of the test parent</p></li>
<li><p><strong>test_child</strong> (<em>string</em>) – the node label of the child</p></li>
<li><p><strong>parent_set</strong> (<em>List</em>) – the common parent set</p></li>
<li><p><strong>child_states_numb</strong> (<em>int</em>) – the cardinality of the <code class="docutils literal notranslate"><span class="pre">test_child</span></code></p></li>
<li><p><strong>tot_vars_count</strong> (<em>int</em>) – the total number of variables in the net</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>True iff test_child and test_parent are independent given the sep_set parent_set. False otherwise</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>bool</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value">
<code class="sig-name descname">compute_thumb_value</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parent_val</span></em>, <em class="sig-param"><span class="n">child_val</span></em>, <em class="sig-param"><span class="n">parent_set_vals</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>parent_val</strong> (<em>int</em>) – test parent’s variable cardinality</p></li>
<li><p><strong>child_val</strong> (<em>int</em>) – test child’s variable cardinality</p></li>
<li><p><strong>parent_set_vals</strong> (<em>List</em>) – the cardinalities of the nodes in the current sep-set</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the thumb value for the current independence test</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>int</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm">
<code class="sig-name descname">ctpc_algorithm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>disable_multiprocessing</strong> (<em>Boolean</em><em>, </em><em>optional</em>) – true if you desire to disable the multiprocessing operations, default to False</p></li>
<li><p><strong>processes_number</strong> – if disable_multiprocessing is false indicates</p></li>
</ul>
</dd>
</dl>
<p>the maximum number of process; if None it will be automatically set, default to None
:type processes_number: int, optional</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure">
<code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute the constraint-based algorithm to find the optimal structure</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>disable_multiprocessing</strong> (<em>Boolean</em><em>, </em><em>optional</em>) – true if you desire to disable the multiprocessing operations, default to False</p></li>
<li><p><strong>processes_number</strong> – if disable_multiprocessing is false indicates</p></li>
</ul>
</dd>
</dl>
<p>the maximum number of process; if None it will be automatically set, default to None
:type processes_number: int, optional</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test">
<code class="sig-name descname">independence_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">child_states_numb</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cim1</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">cim2</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">thumb_value</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">parent_indx</span></em>, <em class="sig-param"><span class="n">child_indx</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test" title="Permalink to this definition"></a></dt>
<dd><p>Compute the actual independence test using two cims.
It is performed first the exponential test and if the null hypothesis is not rejected,
it is performed also the chi_test.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>child_states_numb</strong> (<em>int</em>) – the cardinality of the test child</p></li>
<li><p><strong>cim1</strong> (<a class="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"><em>ConditionalIntensityMatrix</em></a>) – a cim belonging to the graph without test parent</p></li>
<li><p><strong>cim2</strong> (<a class="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"><em>ConditionalIntensityMatrix</em></a>) – a cim belonging to the graph with test parent</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>True iff both tests do NOT reject the null hypothesis of independence. False otherwise.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>bool</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm">
<code class="sig-name descname">one_iteration_of_CTPC_algorithm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">var_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; List<a class="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 <code class="docutils literal notranslate"><span class="pre">var_id</span></code> as <code class="docutils literal notranslate"><span class="pre">test_child</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>var_id</strong> (<em>string</em>) – the node label of the test child</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators.structure_estimator">
<span id="pyctbn-pyctbn-estimators-structure-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_estimator.</code><code class="sig-name descname">StructureEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of estimating the network structure given the trajectories in <code class="docutils literal notranslate"><span class="pre">samplepath</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>sample_path</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>known_edges</strong> (<em>List</em>) – the prior known edges in the net structure if present</p></li>
</ul>
</dd>
<dt class="field-even">_nodes</dt>
<dd class="field-even"><p>the nodes labels</p>
</dd>
<dt class="field-odd">_nodes_vals</dt>
<dd class="field-odd"><p>the nodes cardinalities</p>
</dd>
<dt class="field-even">_nodes_indxs</dt>
<dd class="field-even"><p>the nodes indexes</p>
</dd>
<dt class="field-odd">_complete_graph</dt>
<dd class="field-odd"><p>the complete directed graph built using the nodes labels in <code class="docutils literal notranslate"><span class="pre">_nodes</span></code></p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix">
<code class="sig-name descname">adjacency_matrix</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix" title="Permalink to this definition"></a></dt>
<dd><p>Converts the estimated structure <code class="docutils literal notranslate"><span class="pre">_complete_graph</span></code> to a boolean adjacency matrix representation.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>The adjacency matrix of the graph <code class="docutils literal notranslate"><span class="pre">_complete_graph</span></code></p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>numpy.ndArray</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_complete_graph">
<em class="property">static </em><code class="sig-name descname">build_complete_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_ids</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; networkx.classes.digraph.DiGraph<a class="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 <code class="docutils literal notranslate"><span class="pre">node_ids</span></code>:</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>node_ids</strong> (<em>List</em>) – the list of nodes labels</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>a complete Digraph Object</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>networkx.DiGraph</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix">
<code class="sig-name descname">build_removable_edges_matrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>known_edges</strong> (<em>List</em>) – the list of nodes labels</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>a boolean matrix</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>np.ndarray</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure">
<em class="property">abstract </em><code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>List of estimated edges</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>Typing.List</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size">
<em class="property">static </em><code class="sig-name descname">generate_possible_sub_sets_of_size</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">u</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">size</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parent_label</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="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 <code class="docutils literal notranslate"><span class="pre">u</span></code> of size <code class="docutils literal notranslate"><span class="pre">size</span></code>,
that do not contains a the node identified by <code class="docutils literal notranslate"><span class="pre">parent_label</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>u</strong> (<em>List</em>) – the list of nodes</p></li>
<li><p><strong>size</strong> (<em>int</em>) – the size of the subsets</p></li>
<li><p><strong>parent_label</strong> (<em>string</em>) – the node to exclude in the subsets generation</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>an Iterator Object containing a list of lists</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>Iterator</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph">
<code class="sig-name descname">save_plot_estimated_structure_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph" title="Permalink to this definition"></a></dt>
<dd><p>Plot the estimated structure in a graphical model style, use .png extension.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>file_path</strong> – path to save the file to</p>
</dd>
<dt class="field-even">Type</dt>
<dd class="field-even"><p>string</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_results">
<code class="sig-name descname">save_results</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>file_path</strong> (<em>string</em>) – the path including the file name with .json extension</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges">
<code class="sig-name descname">spurious_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges" title="Permalink to this definition"></a></dt>
<dd><dl class="simple">
<dt>Return the spurious edges present in the estimated structure, if a prior net structure is present in</dt><dd><p><code class="docutils literal notranslate"><span class="pre">_sample_path.structure</span></code>.</p>
</dd>
</dl>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>A list containing the spurious edges</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>List</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">
<span id="pyctbn-pyctbn-estimators-structure-score-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_score_based_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_score_based_estimator.</code><code class="sig-name descname">StructureScoreBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">1</span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">[]</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></code></a></p>
<p>Has the task of estimating the network structure given the trajectories in samplepath by
using a score based approach and differt kinds of optimization algorithms.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>sample_path</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>tau_xu</strong> (<em>float</em><em>, </em><em>optional</em>) – hyperparameter over the CTBN’s q parameters, default to 0.1</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em><em>, </em><em>optional</em>) – hyperparameter over the CTBN’s q parameters, default to 1</p></li>
<li><p><strong>known_edges</strong> (<em>List</em><em>, </em><em>optional</em>) – List of known edges, default to []</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents">
<code class="sig-name descname">estimate_parents</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">10</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">5</span></em>, <em class="sig-param"><span class="n">optimizer</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'hill'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents" title="Permalink to this definition"></a></dt>
<dd><p>Use the FamScore of a node in order to find the best parent nodes</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>node_id</strong> (<em>string</em>) – current node’s id</p></li>
<li><p><strong>max_parents</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum number of parents for each variable. If None, disabled, default to None</p></li>
<li><p><strong>iterations_number</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum number of optimization algorithm’s iteration, default to 40</p></li>
<li><p><strong>patience</strong> (<em>int</em><em>, </em><em>optional</em>) – number of iteration without any improvement before to stop the search.If None, disabled, default to None</p></li>
<li><p><strong>tabu_length</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum lenght of the data structures used in the optimization process, default to None</p></li>
<li><p><strong>tabu_rules_duration</strong> (<em>int</em><em>, </em><em>optional</em>) – number of iterations in which each rule keeps its value, default to None</p></li>
<li><p><strong>optimizer</strong> (<em>string</em><em>, </em><em>optional</em>) – name of the optimizer algorithm. Possible values: ‘hill’ (Hill climbing),’tabu’ (tabu search), defualt to ‘tabu’</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>A list of the best edges for the currente node</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>List</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure">
<code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">optimizer</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'tabu'</span></em>, <em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute the score-based algorithm to find the optimal structure</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>max_parents</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum number of parents for each variable. If None, disabled, default to None</p></li>
<li><p><strong>iterations_number</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum number of optimization algorithm’s iteration, default to 40</p></li>
<li><p><strong>patience</strong> (<em>int</em><em>, </em><em>optional</em>) – number of iteration without any improvement before to stop the search.If None, disabled, default to None</p></li>
<li><p><strong>tabu_length</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum lenght of the data structures used in the optimization process, default to None</p></li>
<li><p><strong>tabu_rules_duration</strong> (<em>int</em><em>, </em><em>optional</em>) – number of iterations in which each rule keeps its value, default to None</p></li>
<li><p><strong>optimizer</strong> (<em>string</em><em>, </em><em>optional</em>) – name of the optimizer algorithm. Possible values: ‘hill’ (Hill climbing),’tabu’ (tabu search), defualt to ‘tabu’</p></li>
<li><p><strong>disable_multiprocessing</strong> (<em>Boolean</em><em>, </em><em>optional</em>) – true if you desire to disable the multiprocessing operations, default to False</p></li>
<li><p><strong>processes_number</strong> – if disable_multiprocessing is false indicates</p></li>
</ul>
</dd>
</dl>
<p>the maximum number of process; if None it will be automatically set, default to None
:type processes_number: int, optional</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph">
<code class="sig-name descname">get_score_from_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>node_id</strong> (<em>string</em>) – current node’s id</p></li>
<li><p><strong>graph</strong> (<em>class:'NetworkGraph'</em>) – current graph to be computed</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>The FamSCore for this graph structure</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>float</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators" title="Permalink to this headline"></a></h2>
</section>
</section>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.optimizers.html" class="btn btn-neutral float-right" title="PyCTBN.PyCTBN.optimizers package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="PyCTBN.PyCTBN.html" class="btn btn-neutral" title="PyCTBN.PyCTBN package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<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>

@ -1,334 +0,0 @@
<!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.PyCTBN.optimizers 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"/>
<link rel="up" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.html"/>
<link rel="next" title="PyCTBN.PyCTBN.structure_graph package" href="PyCTBN.PyCTBN.structure_graph.html"/>
<link rel="prev" title="PyCTBN.PyCTBN.estimators package" href="PyCTBN.PyCTBN.estimators.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 class="current">
<li class="toctree-l1 current"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul class="current">
<li class="toctree-l2 current"><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">
<section id="pyctbn-pyctbn-optimizers-package">
<h1>PyCTBN.PyCTBN.optimizers package<a class="headerlink" href="#pyctbn-pyctbn-optimizers-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.PyCTBN.optimizers.constraint_based_optimizer">
<span id="pyctbn-pyctbn-optimizers-constraint-based-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.</code><code class="sig-name descname">ConstraintBasedOptimizer</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement a CTPC Algorithm</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>node_id</strong> (<em>string</em>) – current node’s id</p></li>
<li><p><strong>structure_estimator</strong> (<em>class:'StructureEstimator'</em>) – a structure estimator object with the information about the net</p></li>
<li><p><strong>tot_vars_count</strong> (<em>int</em>) – number of variables in the dataset</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>the estimated structure for the node</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>List</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">
<span id="pyctbn-pyctbn-optimizers-hill-climbing-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.hill_climbing_search module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.hill_climbing_search.</code><code class="sig-name descname">HillClimbing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement Hill Climbing Search</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>node_id</strong> (<em>string</em>) – current node’s id</p></li>
<li><p><strong>structure_estimator</strong> (<em>class:'StructureEstimator'</em>) – a structure estimator object with the information about the net</p></li>
<li><p><strong>max_parents</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum number of parents for each variable. If None, disabled, default to None</p></li>
<li><p><strong>iterations_number</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum number of optimization algorithm’s iteration, default to 40</p></li>
<li><p><strong>patience</strong> (<em>int</em><em>, </em><em>optional</em>) – number of iteration without any improvement before to stop the search.If None, disabled, default to None</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>the estimated structure for the node</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>List</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.optimizers.optimizer">
<span id="pyctbn-pyctbn-optimizers-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.optimizer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.optimizer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.optimizer.</code><code class="sig-name descname">Optimizer</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="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><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Interface class for all the optimizer’s child PyCTBN</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>node_id</strong> (<em>string</em>) – the node label</p></li>
<li><p><strong>structure_estimator</strong> (<em>class:'StructureEstimator'</em>) – A structureEstimator Object to predict the structure</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer.optimize_structure">
<em class="property">abstract </em><code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>the estimated structure for the node</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>List</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.optimizers.tabu_search">
<span id="pyctbn-pyctbn-optimizers-tabu-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.tabu_search module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.tabu_search" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.tabu_search.</code><code class="sig-name descname">TabuSearch</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement Tabu Search</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>node_id</strong> (<em>string</em>) – current node’s id</p></li>
<li><p><strong>structure_estimator</strong> (<em>class:'StructureEstimator'</em>) – a structure estimator object with the information about the net</p></li>
<li><p><strong>max_parents</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum number of parents for each variable. If None, disabled, default to None</p></li>
<li><p><strong>iterations_number</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum number of optimization algorithm’s iteration, default to 40</p></li>
<li><p><strong>patience</strong> (<em>int</em><em>, </em><em>optional</em>) – number of iteration without any improvement before to stop the search.If None, disabled, default to None</p></li>
<li><p><strong>tabu_length</strong> (<em>int</em><em>, </em><em>optional</em>) – maximum lenght of the data structures used in the optimization process, default to None</p></li>
<li><p><strong>tabu_rules_duration</strong> (<em>int</em><em>, </em><em>optional</em>) – number of iterations in which each rule keeps its value, default to None</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>the estimated structure for the node</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>List</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.optimizers">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers" title="Permalink to this headline"></a></h2>
</section>
</section>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.structure_graph.html" class="btn btn-neutral float-right" title="PyCTBN.PyCTBN.structure_graph package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="PyCTBN.PyCTBN.estimators.html" class="btn btn-neutral" title="PyCTBN.PyCTBN.estimators package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<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>

File diff suppressed because it is too large Load Diff

@ -1,345 +0,0 @@
<!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 &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>
<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">
<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>
<section id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2>
</section>
<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 id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.estimators.test_parameters_estimator.</code><code class="sig-name descname">TestParametersEstimatior</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.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 id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.aux_import_sampled_cims">
<code class="sig-name descname">aux_import_sampled_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims_label</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 id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.cim_equality_test">
<code class="sig-name descname">cim_equality_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim1</span></em>, <em class="sig-param"><span class="n">cim2</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 id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.equality_of_cims_of_node">
<code class="sig-name descname">equality_of_cims_of_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sampled_cims</span></em>, <em class="sig-param"><span class="n">estimated_cims</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 id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.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.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 id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.test_compute_parameters_for_node">
<code class="sig-name descname">test_compute_parameters_for_node</code><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 id="PyCTBN.tests.estimators.test_parameters_estimator.TestParametersEstimatior.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.estimators.test_parameters_estimator.TestParametersEstimatior.test_fast_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator">
<span id="pyctbn-tests-estimators-test-structure-constraint-based-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_constraint_based_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_constraint_based_estimator.</code><code class="sig-name descname">TestStructureConstraintBasedEstimator</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.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator" 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.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.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.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>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_1">
<code class="sig-name descname">test_structure_1</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_1" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_2">
<code class="sig-name descname">test_structure_2</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_2" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_3">
<code class="sig-name descname">test_structure_3</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_constraint_based_estimator.TestStructureConstraintBasedEstimator.test_structure_3" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_estimator.</code><code class="sig-name descname">TestStructureEstimator</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.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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.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.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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_adjacency_matrix">
<code class="sig-name descname">test_adjacency_matrix</code><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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_complete_graph">
<code class="sig-name descname">test_build_complete_graph</code><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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_build_removable_edges_matrix">
<code class="sig-name descname">test_build_removable_edges_matrix</code><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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_generate_possible_sub_sets_of_size">
<code class="sig-name descname">test_generate_possible_sub_sets_of_size</code><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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.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.estimators.test_structure_estimator.TestStructureEstimator.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_plot_estimated_graph">
<code class="sig-name descname">test_save_plot_estimated_graph</code><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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_save_results">
<code class="sig-name descname">test_save_results</code><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 id="PyCTBN.tests.estimators.test_structure_estimator.TestStructureEstimator.test_time">
<code class="sig-name descname">test_time</code><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>
</section>
<section id="module-PyCTBN.tests.estimators.test_structure_score_based_estimator">
<span id="pyctbn-tests-estimators-test-structure-score-based-estimator-module"></span><h2>PyCTBN.tests.estimators.test_structure_score_based_estimator module<a class="headerlink" href="#module-PyCTBN.tests.estimators.test_structure_score_based_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.estimators.test_structure_score_based_estimator.</code><code class="sig-name descname">TestStructureScoreBasedEstimator</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.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator" 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.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.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.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>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_1">
<code class="sig-name descname">test_structure_1</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_1" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_2">
<code class="sig-name descname">test_structure_2</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_2" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_3">
<code class="sig-name descname">test_structure_3</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_3" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_monoprocesso">
<code class="sig-name descname">test_structure_monoprocesso</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.estimators.test_structure_score_based_estimator.TestStructureScoreBasedEstimator.test_structure_monoprocesso" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<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>
</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>

@ -1,235 +0,0 @@
<!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.optimizers 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>
<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">
<section id="pyctbn-tests-optimizers-package">
<h1>PyCTBN.tests.optimizers package<a class="headerlink" href="#pyctbn-tests-optimizers-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.optimizers.test_hill_climbing_search">
<span id="pyctbn-tests-optimizers-test-hill-climbing-search-module"></span><h2>PyCTBN.tests.optimizers.test_hill_climbing_search module<a class="headerlink" href="#module-PyCTBN.tests.optimizers.test_hill_climbing_search" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.optimizers.test_hill_climbing_search.</code><code class="sig-name descname">TestHillClimbingSearch</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.optimizers.test_hill_climbing_search.TestHillClimbingSearch" 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.optimizers.test_hill_climbing_search.TestHillClimbingSearch.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.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>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure">
<code class="sig-name descname">test_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure_3">
<code class="sig-name descname">test_structure_3</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_hill_climbing_search.TestHillClimbingSearch.test_structure_3" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.optimizers.test_tabu_search">
<span id="pyctbn-tests-optimizers-test-tabu-search-module"></span><h2>PyCTBN.tests.optimizers.test_tabu_search module<a class="headerlink" href="#module-PyCTBN.tests.optimizers.test_tabu_search" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.optimizers.test_tabu_search.</code><code class="sig-name descname">TestTabuSearch</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.optimizers.test_tabu_search.TestTabuSearch" 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.optimizers.test_tabu_search.TestTabuSearch.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.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>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure">
<code class="sig-name descname">test_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure_3">
<code class="sig-name descname">test_structure_3</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.tests.optimizers.test_tabu_search.TestTabuSearch.test_structure_3" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.tests.optimizers">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests.optimizers" 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>

@ -1,566 +0,0 @@
<!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>
<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">
<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>

@ -1,354 +0,0 @@
<!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="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>
<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">
<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>
<section id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2>
</section>
<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 id="PyCTBN.tests.utility.test_cache.TestCache">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.utility.test_cache.</code><code class="sig-name descname">TestCache</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.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 id="PyCTBN.tests.utility.test_cache.TestCache.test_clear">
<code class="sig-name descname">test_clear</code><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 id="PyCTBN.tests.utility.test_cache.TestCache.test_find">
<code class="sig-name descname">test_find</code><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 id="PyCTBN.tests.utility.test_cache.TestCache.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.utility.test_cache.TestCache.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.utility.test_cache.TestCache.test_put">
<code class="sig-name descname">test_put</code><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>
</section>
<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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.utility.test_json_importer.</code><code class="sig-name descname">TestJsonImporter</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.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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.ordered">
<code class="sig-name descname">ordered</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">obj</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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.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.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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_build_sorter">
<code class="sig-name descname">test_build_sorter</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_concatenated_frame">
<code class="sig-name descname">test_clear_concatenated_frame</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_clear_data_frame_list">
<code class="sig-name descname">test_clear_data_frame_list</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames">
<code class="sig-name descname">test_compute_row_delta_in_all_frames</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_in_all_frames_not_init_sorter">
<code class="sig-name descname">test_compute_row_delta_in_all_frames_not_init_sorter</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_compute_row_delta_single_samples_frame">
<code class="sig-name descname">test_compute_row_delta_single_samples_frame</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_dataset_id">
<code class="sig-name descname">test_dataset_id</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_file_path">
<code class="sig-name descname">test_file_path</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_data">
<code class="sig-name descname">test_import_data</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_sampled_cims">
<code class="sig-name descname">test_import_sampled_cims</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_structure">
<code class="sig-name descname">test_import_structure</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_import_variables">
<code class="sig-name descname">test_import_variables</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.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.utility.test_json_importer.TestJsonImporter.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories">
<code class="sig-name descname">test_normalize_trajectories</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_indx">
<code class="sig-name descname">test_normalize_trajectories_wrong_indx</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_normalize_trajectories_wrong_key">
<code class="sig-name descname">test_normalize_trajectories_wrong_key</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_found">
<code class="sig-name descname">test_read_json_file_found</code><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 id="PyCTBN.tests.utility.test_json_importer.TestJsonImporter.test_read_json_file_not_found">
<code class="sig-name descname">test_read_json_file_not_found</code><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>
</section>
<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 id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.tests.utility.test_sample_importer.</code><code class="sig-name descname">TestSampleImporter</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.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 id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.ordered">
<code class="sig-name descname">ordered</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">obj</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 id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.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.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 id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.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.utility.test_sample_importer.TestSampleImporter.test_init" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.tests.utility.test_sample_importer.TestSampleImporter.test_order">
<code class="sig-name descname">test_order</code><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>
</section>
<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>
</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>

@ -1,53 +0,0 @@
PyCTBN.PyCTBN.estimators package
================================
Submodules
----------
PyCTBN.PyCTBN.estimators.fam\_score\_calculator module
------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.fam_score_calculator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.parameters\_estimator module
-----------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.parameters_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_constraint\_based\_estimator module
-----------------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_estimator module
----------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_score\_based\_estimator module
------------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_score_based_estimator
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.estimators
:members:
:undoc-members:
:show-inheritance:

@ -1,45 +0,0 @@
PyCTBN.PyCTBN.optimizers package
================================
Submodules
----------
PyCTBN.PyCTBN.optimizers.constraint\_based\_optimizer module
------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.constraint_based_optimizer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.hill\_climbing\_search module
------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.hill_climbing_search
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.optimizer module
-----------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.optimizer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.tabu\_search module
--------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.tabu_search
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.optimizers
:members:
:undoc-members:
:show-inheritance:

@ -1,77 +0,0 @@
PyCTBN.PyCTBN.structure\_graph package
======================================
Submodules
----------
PyCTBN.PyCTBN.structure\_graph.conditional\_intensity\_matrix module
--------------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.network\_generator module
--------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.network_generator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.network\_graph module
----------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.network_graph
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.sample\_path module
--------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.sample_path
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.set\_of\_cims module
---------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.set_of_cims
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.structure module
-----------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.structure
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.trajectory module
------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.trajectory
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.trajectory\_generator module
-----------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.trajectory_generator
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.structure_graph
:members:
:undoc-members:
:show-inheritance:

@ -1,61 +0,0 @@
PyCTBN.PyCTBN.utility package
=============================
Submodules
----------
PyCTBN.PyCTBN.utility.abstract\_exporter module
-----------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.abstract_exporter
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.abstract\_importer module
-----------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.abstract_importer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.cache module
----------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.cache
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.json\_exporter module
-------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.json_exporter
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.json\_importer module
-------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.json_importer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.sample\_importer module
---------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.sample_importer
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.utility
:members:
:undoc-members:
:show-inheritance:

@ -1,38 +0,0 @@
PyCTBN package
==============
Subpackages
-----------
.. toctree::
:maxdepth: 4
PyCTBN.PyCTBN
PyCTBN.tests
Submodules
----------
PyCTBN.basic\_main module
-------------------------
.. automodule:: PyCTBN.basic_main
:members:
:undoc-members:
:show-inheritance:
PyCTBN.setup module
-------------------
.. automodule:: PyCTBN.setup
:members:
:undoc-members:
:show-inheritance:
Module contents
---------------
.. automodule:: PyCTBN
:members:
:undoc-members:
:show-inheritance:

@ -1,23 +0,0 @@
.. PyCTBN documentation master file, created by
sphinx-quickstart on Wed Mar 3 14:50:44 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to PyCTBN's documentation!
==================================
.. toctree::
:maxdepth: 4
:caption: Contents:
PyCTBN.PyCTBN
examples
Indices and tables
==================
* :ref:`genindex`
* :ref:`modindex`
* :ref:`search`

@ -1,179 +0,0 @@
<!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>basic_main module &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>
<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">
<section id="basic-main-module">
<h1>basic_main module<a class="headerlink" href="#basic-main-module" title="Permalink to this headline"></a></h1>
</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>

@ -1,303 +0,0 @@
<!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>Examples &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"/>
<link rel="prev" title="PyCTBN.PyCTBN.utility package" href="PyCTBN.PyCTBN.utility.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 class="current">
<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 current"><a class="current reference internal" href="#">Examples</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#installation-usage">Installation/Usage</a></li>
<li class="toctree-l2"><a class="reference internal" href="#implementing-your-own-data-importer">Implementing your own data importer</a></li>
<li class="toctree-l2"><a class="reference internal" href="#parameters-estimation-example">Parameters Estimation Example</a></li>
<li class="toctree-l2"><a class="reference internal" href="#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="examples">
<h1>Examples<a class="headerlink" href="#examples" title="Permalink to this headline"></a></h1>
<section id="installation-usage">
<h2>Installation/Usage<a class="headerlink" href="#installation-usage" title="Permalink to this headline"></a></h2>
<p>Download the latest release in .tar.gz or .whl format and simply use pip install to install it:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span>$pip install PyCTBN-2.2.tar.gz
</pre></div>
</div>
</section>
<section id="implementing-your-own-data-importer">
<h2>Implementing your own data importer<a class="headerlink" href="#implementing-your-own-data-importer" title="Permalink to this headline"></a></h2>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="sd">&quot;&quot;&quot;This example demonstrates the implementation of a simple data importer the extends the class abstract importer to import data in csv format.</span>
<span class="sd">The net in exam has three ternary nodes and no prior net structure.</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="kn">from</span> <span class="nn">PyCTBN</span> <span class="kn">import</span> <span class="n">AbstractImporter</span>
<span class="k">class</span> <span class="nc">CSVImporter</span><span class="p">(</span><span class="n">AbstractImporter</span><span class="p">):</span>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">file_path</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_df_samples_list</span> <span class="o">=</span> <span class="kc">None</span>
<span class="nb">super</span><span class="p">(</span><span class="n">CSVImporter</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="fm">__init__</span><span class="p">(</span><span class="n">file_path</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">import_data</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="bp">self</span><span class="o">.</span><span class="n">read_csv_file</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_sorter</span> <span class="o">=</span> <span class="bp">self</span><span class="o">.</span><span class="n">build_sorter</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_df_samples_list</span><span class="p">[</span><span class="mi">0</span><span class="p">])</span>
<span class="bp">self</span><span class="o">.</span><span class="n">import_variables</span><span class="p">()</span>
<span class="bp">self</span><span class="o">.</span><span class="n">compute_row_delta_in_all_samples_frames</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_df_samples_list</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">read_csv_file</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">df</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">read_csv</span><span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">_file_path</span><span class="p">)</span>
<span class="n">df</span><span class="o">.</span><span class="n">drop</span><span class="p">(</span><span class="n">df</span><span class="o">.</span><span class="n">columns</span><span class="p">[[</span><span class="mi">0</span><span class="p">]],</span> <span class="n">axis</span><span class="o">=</span><span class="mi">1</span><span class="p">,</span> <span class="n">inplace</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_df_samples_list</span> <span class="o">=</span> <span class="p">[</span><span class="n">df</span><span class="p">]</span>
<span class="k">def</span> <span class="nf">import_variables</span><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
<span class="n">values_list</span> <span class="o">=</span> <span class="p">[</span><span class="mi">3</span> <span class="k">for</span> <span class="n">var</span> <span class="ow">in</span> <span class="bp">self</span><span class="o">.</span><span class="n">_sorter</span><span class="p">]</span>
<span class="c1"># initialize dict of lists</span>
<span class="n">data</span> <span class="o">=</span> <span class="p">{</span><span class="s1">&#39;Name&#39;</span><span class="p">:</span><span class="bp">self</span><span class="o">.</span><span class="n">_sorter</span><span class="p">,</span> <span class="s1">&#39;Value&#39;</span><span class="p">:</span><span class="n">values_list</span><span class="p">}</span>
<span class="c1"># Create the pandas DataFrame</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_df_variables</span> <span class="o">=</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">(</span><span class="n">data</span><span class="p">)</span>
<span class="k">def</span> <span class="nf">build_sorter</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">sample_frame</span><span class="p">:</span> <span class="n">pd</span><span class="o">.</span><span class="n">DataFrame</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="n">typing</span><span class="o">.</span><span class="n">List</span><span class="p">:</span>
<span class="k">return</span> <span class="nb">list</span><span class="p">(</span><span class="n">sample_frame</span><span class="o">.</span><span class="n">columns</span><span class="p">)[</span><span class="mi">1</span><span class="p">:]</span>
<span class="k">def</span> <span class="nf">dataset_id</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">object</span><span class="p">:</span>
<span class="k">pass</span>
</pre></div>
</div>
</section>
<section id="parameters-estimation-example">
<h2>Parameters Estimation Example<a class="headerlink" href="#parameters-estimation-example" title="Permalink to this headline"></a></h2>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">PyCTBN</span> <span class="kn">import</span> <span class="n">JsonImporter</span>
<span class="kn">from</span> <span class="nn">PyCTBN</span> <span class="kn">import</span> <span class="n">SamplePath</span>
<span class="kn">from</span> <span class="nn">PyCTBN</span> <span class="kn">import</span> <span class="n">NetworkGraph</span>
<span class="kn">from</span> <span class="nn">PyCTBN</span> <span class="kn">import</span> <span class="n">ParametersEstimator</span>
<span class="k">def</span> <span class="nf">main</span><span class="p">():</span>
<span class="n">read_files</span> <span class="o">=</span> <span class="n">glob</span><span class="o">.</span><span class="n">glob</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="s1">&#39;./data&#39;</span><span class="p">,</span> <span class="s2">&quot;*.json&quot;</span><span class="p">))</span> <span class="c1">#Take all json files in this dir</span>
<span class="c1">#import data</span>
<span class="n">importer</span> <span class="o">=</span> <span class="n">JsonImporter</span><span class="p">(</span><span class="n">read_files</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;samples&#39;</span><span class="p">,</span> <span class="s1">&#39;dyn.str&#39;</span><span class="p">,</span> <span class="s1">&#39;variables&#39;</span><span class="p">,</span> <span class="s1">&#39;Time&#39;</span><span class="p">,</span> <span class="s1">&#39;Name&#39;</span><span class="p">)</span>
<span class="n">importer</span><span class="o">.</span><span class="n">import_data</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="c1">#Create a SamplePath Obj passing an already filled AbstractImporter object</span>
<span class="n">s1</span> <span class="o">=</span> <span class="n">SamplePath</span><span class="p">(</span><span class="n">importer</span><span class="p">)</span>
<span class="c1">#Build The trajectries and the structural infos</span>
<span class="n">s1</span><span class="o">.</span><span class="n">build_trajectories</span><span class="p">()</span>
<span class="n">s1</span><span class="o">.</span><span class="n">build_structure</span><span class="p">()</span>
<span class="nb">print</span><span class="p">(</span><span class="n">s1</span><span class="o">.</span><span class="n">structure</span><span class="o">.</span><span class="n">edges</span><span class="p">)</span>
<span class="nb">print</span><span class="p">(</span><span class="n">s1</span><span class="o">.</span><span class="n">structure</span><span class="o">.</span><span class="n">nodes_values</span><span class="p">)</span>
<span class="c1">#From The Structure Object build the Graph</span>
<span class="n">g</span> <span class="o">=</span> <span class="n">NetworkGraph</span><span class="p">(</span><span class="n">s1</span><span class="o">.</span><span class="n">structure</span><span class="p">)</span>
<span class="c1">#Select a node you want to estimate the parameters</span>
<span class="n">node</span> <span class="o">=</span> <span class="n">g</span><span class="o">.</span><span class="n">nodes</span><span class="p">[</span><span class="mi">2</span><span class="p">]</span>
<span class="nb">print</span><span class="p">(</span><span class="s2">&quot;Node&quot;</span><span class="p">,</span> <span class="n">node</span><span class="p">)</span>
<span class="c1">#Init the _graph specifically for THIS node</span>
<span class="n">g</span><span class="o">.</span><span class="n">fast_init</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
<span class="c1">#Use SamplePath and Grpah to create a ParametersEstimator Object</span>
<span class="n">p1</span> <span class="o">=</span> <span class="n">ParametersEstimator</span><span class="p">(</span><span class="n">s1</span><span class="o">.</span><span class="n">trajectories</span><span class="p">,</span> <span class="n">g</span><span class="p">)</span>
<span class="c1">#Init the peEst specifically for THIS node</span>
<span class="n">p1</span><span class="o">.</span><span class="n">fast_init</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
<span class="c1">#Compute the parameters</span>
<span class="n">sofc1</span> <span class="o">=</span> <span class="n">p1</span><span class="o">.</span><span class="n">compute_parameters_for_node</span><span class="p">(</span><span class="n">node</span><span class="p">)</span>
<span class="c1">#The est CIMS are inside the resultant SetOfCIms Obj</span>
<span class="nb">print</span><span class="p">(</span><span class="n">sofc1</span><span class="o">.</span><span class="n">actual_cims</span><span class="p">)</span>
</pre></div>
</div>
</section>
<section id="structure-estimation-example">
<h2>Structure Estimation Example<a class="headerlink" href="#structure-estimation-example" title="Permalink to this headline"></a></h2>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="kn">from</span> <span class="nn">PyCTBN</span> <span class="kn">import</span> <span class="n">JsonImporter</span>
<span class="kn">from</span> <span class="nn">PyCTBN</span> <span class="kn">import</span> <span class="n">SamplePath</span>
<span class="kn">from</span> <span class="nn">PyCTBN</span> <span class="kn">import</span> <span class="n">StructureEstimator</span>
<span class="k">def</span> <span class="nf">structure_estimation_example</span><span class="p">():</span>
<span class="c1"># read the json files in ./data path</span>
<span class="n">read_files</span> <span class="o">=</span> <span class="n">glob</span><span class="o">.</span><span class="n">glob</span><span class="p">(</span><span class="n">os</span><span class="o">.</span><span class="n">path</span><span class="o">.</span><span class="n">join</span><span class="p">(</span><span class="s1">&#39;./data&#39;</span><span class="p">,</span> <span class="s2">&quot;*.json&quot;</span><span class="p">))</span>
<span class="c1"># initialize a JsonImporter object for the first file</span>
<span class="n">importer</span> <span class="o">=</span> <span class="n">JsonImporter</span><span class="p">(</span><span class="n">read_files</span><span class="p">[</span><span class="mi">0</span><span class="p">],</span> <span class="s1">&#39;samples&#39;</span><span class="p">,</span> <span class="s1">&#39;dyn.str&#39;</span><span class="p">,</span> <span class="s1">&#39;variables&#39;</span><span class="p">,</span> <span class="s1">&#39;Time&#39;</span><span class="p">,</span> <span class="s1">&#39;Name&#39;</span><span class="p">)</span>
<span class="c1"># import the data at index 0 of the outer json array</span>
<span class="n">importer</span><span class="o">.</span><span class="n">import_data</span><span class="p">(</span><span class="mi">0</span><span class="p">)</span>
<span class="c1"># construct a SamplePath Object passing a filled AbstractImporter</span>
<span class="n">s1</span> <span class="o">=</span> <span class="n">SamplePath</span><span class="p">(</span><span class="n">importer</span><span class="p">)</span>
<span class="c1"># build the trajectories</span>
<span class="n">s1</span><span class="o">.</span><span class="n">build_trajectories</span><span class="p">()</span>
<span class="c1"># build the real structure</span>
<span class="n">s1</span><span class="o">.</span><span class="n">build_structure</span><span class="p">()</span>
<span class="c1"># construct a StructureEstimator object</span>
<span class="n">se1</span> <span class="o">=</span> <span class="n">StructureEstimator</span><span class="p">(</span><span class="n">s1</span><span class="p">,</span> <span class="mf">0.1</span><span class="p">,</span> <span class="mf">0.1</span><span class="p">)</span>
<span class="c1"># call the ctpc algorithm</span>
<span class="n">se1</span><span class="o">.</span><span class="n">ctpc_algorithm</span><span class="p">()</span>
<span class="c1"># the adjacency matrix of the estimated structure</span>
<span class="nb">print</span><span class="p">(</span><span class="n">se1</span><span class="o">.</span><span class="n">adjacency_matrix</span><span class="p">())</span>
<span class="c1"># save results to a json file</span>
<span class="n">se1</span><span class="o">.</span><span class="n">save_results</span><span class="p">()</span>
</pre></div>
</div>
</section>
</section>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.utility.html" class="btn btn-neutral" title="PyCTBN.PyCTBN.utility package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<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>

@ -1,257 +0,0 @@
<!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>Welcome to PyCTBN’s documentation! &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="#"/>
<link rel="next" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.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="#" 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>
<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">
<section id="welcome-to-pyctbn-s-documentation">
<h1>Welcome to PyCTBN’s documentation!<a class="headerlink" href="#welcome-to-pyctbn-s-documentation" title="Permalink to this headline"></a></h1>
<div class="toctree-wrapper compound">
<p><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><ul>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html">PyCTBN.PyCTBN.estimators package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.fam_score_calculator">PyCTBN.PyCTBN.estimators.fam_score_calculator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.parameters_estimator">PyCTBN.PyCTBN.estimators.parameters_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_estimator">PyCTBN.PyCTBN.estimators.structure_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">PyCTBN.PyCTBN.estimators.structure_score_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html">PyCTBN.PyCTBN.optimizers package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">PyCTBN.PyCTBN.optimizers.hill_climbing_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.optimizer">PyCTBN.PyCTBN.optimizers.optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.tabu_search">PyCTBN.PyCTBN.optimizers.tabu_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
</ul>
</li>
</ul>
</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>
</section>
<section id="indices-and-tables">
<h1>Indices and tables<a class="headerlink" href="#indices-and-tables" title="Permalink to this headline"></a></h1>
<ul class="simple">
<li><p><a class="reference internal" href="genindex.html"><span class="std std-ref">Index</span></a></p></li>
<li><p><a class="reference internal" href="py-modindex.html"><span class="std std-ref">Module Index</span></a></p></li>
<li><p><a class="reference internal" href="search.html"><span class="std std-ref">Search Page</span></a></p></li>
</ul>
</section>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.html" class="btn btn-neutral float-right" title="PyCTBN.PyCTBN package">Next <span class="fa fa-arrow-circle-right"></span></a>
</div>
<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>

@ -1,205 +0,0 @@
<!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 &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>
<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">
<section id="pyctbn">
<h1>PyCTBN<a class="headerlink" href="#pyctbn" title="Permalink to this headline"></a></h1>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.html">PyCTBN package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#subpackages">Subpackages</a><ul>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.html#subpackages">Subpackages</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.html">PyCTBN.tests package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.html#subpackages">Subpackages</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.html#module-PyCTBN.tests">Module contents</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#pyctbn-basic-main-module">PyCTBN.basic_main module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#pyctbn-setup-module">PyCTBN.setup module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.html#module-PyCTBN">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="example.html">example module</a></li>
<li class="toctree-l1"><a class="reference internal" href="setup.html">setup module</a></li>
</ul>
</div>
</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>

File diff suppressed because one or more lines are too long

@ -1,4 +0,0 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 87e83150455399004cf3d149c3abeafb
tags: 645f666f9bcd5a90fca523b33c5a78b7

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

@ -1,45 +1,45 @@
PyCTBN.PyCTBN.estimators package
pyctbn.legacy.estimators package
================================
Submodules
----------
PyCTBN.PyCTBN.estimators.fam\_score\_calculator module
pyctbn.legacy.estimators.fam\_score\_calculator module
------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.fam_score_calculator
.. automodule:: pyctbn.legacy.estimators.fam_score_calculator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.parameters\_estimator module
pyctbn.legacy.estimators.parameters\_estimator module
-----------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.parameters_estimator
.. automodule:: pyctbn.legacy.estimators.parameters_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_constraint\_based\_estimator module
pyctbn.legacy.estimators.structure\_constraint\_based\_estimator module
-----------------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator
.. automodule:: pyctbn.legacy.estimators.structure_constraint_based_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_estimator module
pyctbn.legacy.estimators.structure\_estimator module
----------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_estimator
.. automodule:: pyctbn.legacy.estimators.structure_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_score\_based\_estimator module
pyctbn.legacy.estimators.structure\_score\_based\_estimator module
------------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_score_based_estimator
.. automodule:: pyctbn.legacy.estimators.structure_score_based_estimator
:members:
:undoc-members:
:show-inheritance:
@ -47,7 +47,7 @@ PyCTBN.PyCTBN.estimators.structure\_score\_based\_estimator module
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.estimators
.. automodule:: pyctbn.legacy.estimators
:members:
:undoc-members:
:show-inheritance:

@ -1,243 +0,0 @@
<!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.PyCTBN 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"/>
<link rel="next" title="PyCTBN.PyCTBN.estimators package" href="PyCTBN.PyCTBN.estimators.html"/>
<link rel="prev" title="Welcome to PyCTBN’s 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 class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">PyCTBN.PyCTBN package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#subpackages">Subpackages</a></li>
<li class="toctree-l2"><a class="reference internal" href="#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">
<section id="pyctbn-pyctbn-package">
<h1>PyCTBN.PyCTBN package<a class="headerlink" href="#pyctbn-pyctbn-package" title="Permalink to this headline"></a></h1>
<section id="subpackages">
<h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline"></a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html">PyCTBN.PyCTBN.estimators package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.fam_score_calculator">PyCTBN.PyCTBN.estimators.fam_score_calculator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.parameters_estimator">PyCTBN.PyCTBN.estimators.parameters_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_estimator">PyCTBN.PyCTBN.estimators.structure_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">PyCTBN.PyCTBN.estimators.structure_score_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html">PyCTBN.PyCTBN.optimizers package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">PyCTBN.PyCTBN.optimizers.hill_climbing_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.optimizer">PyCTBN.PyCTBN.optimizers.optimizer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.tabu_search">PyCTBN.PyCTBN.optimizers.tabu_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
</ul>
</li>
</ul>
</div>
</section>
<section id="module-PyCTBN.PyCTBN">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN" title="Permalink to this headline"></a></h2>
</section>
</section>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.estimators.html" class="btn btn-neutral float-right" title="PyCTBN.PyCTBN.estimators package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="index.html" class="btn btn-neutral" title="Welcome to PyCTBN’s documentation!"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<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>

@ -1,37 +1,37 @@
PyCTBN.PyCTBN.optimizers package
pyctbn.legacy.optimizers package
================================
Submodules
----------
PyCTBN.PyCTBN.optimizers.constraint\_based\_optimizer module
pyctbn.legacy.optimizers.constraint\_based\_optimizer module
------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.constraint_based_optimizer
.. automodule:: pyctbn.legacy.optimizers.constraint_based_optimizer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.hill\_climbing\_search module
pyctbn.legacy.optimizers.hill\_climbing\_search module
------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.hill_climbing_search
.. automodule:: pyctbn.legacy.optimizers.hill_climbing_search
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.optimizer module
pyctbn.legacy.optimizers.optimizer module
-----------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.optimizer
.. automodule:: pyctbn.legacy.optimizers.optimizer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.tabu\_search module
pyctbn.legacy.optimizers.tabu\_search module
--------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.tabu_search
.. automodule:: pyctbn.legacy.optimizers.tabu_search
:members:
:undoc-members:
:show-inheritance:
@ -39,7 +39,7 @@ PyCTBN.PyCTBN.optimizers.tabu\_search module
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.optimizers
.. automodule:: pyctbn.legacy.optimizers
:members:
:undoc-members:
:show-inheritance:

@ -1,4 +1,4 @@
PyCTBN.PyCTBN package
pyctbn.legacy package
=====================
Subpackages
@ -7,15 +7,15 @@ Subpackages
.. toctree::
:maxdepth: 4
PyCTBN.PyCTBN.estimators
PyCTBN.PyCTBN.optimizers
PyCTBN.PyCTBN.structure_graph
PyCTBN.PyCTBN.utility
pyctbn.legacy.estimators
pyctbn.legacy.optimizers
pyctbn.legacy.structure_graph
pyctbn.legacy.utility
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN
.. automodule:: pyctbn.legacy
:members:
:undoc-members:
:show-inheritance:

@ -1,69 +1,69 @@
PyCTBN.PyCTBN.structure\_graph package
pyctbn.legacy.structure\_graph package
======================================
Submodules
----------
PyCTBN.PyCTBN.structure\_graph.conditional\_intensity\_matrix module
pyctbn.legacy.structure\_graph.conditional\_intensity\_matrix module
--------------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix
.. automodule:: pyctbn.legacy.structure_graph.conditional_intensity_matrix
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.network\_generator module
pyctbn.legacy.structure\_graph.network\_generator module
--------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.network_generator
.. automodule:: pyctbn.legacy.structure_graph.network_generator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.network\_graph module
pyctbn.legacy.structure\_graph.network\_graph module
----------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.network_graph
.. automodule:: pyctbn.legacy.structure_graph.network_graph
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.sample\_path module
pyctbn.legacy.structure\_graph.sample\_path module
--------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.sample_path
.. automodule:: pyctbn.legacy.structure_graph.sample_path
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.set\_of\_cims module
pyctbn.legacy.structure\_graph.set\_of\_cims module
---------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.set_of_cims
.. automodule:: pyctbn.legacy.structure_graph.set_of_cims
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.structure module
pyctbn.legacy.structure\_graph.structure module
-----------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.structure
.. automodule:: pyctbn.legacy.structure_graph.structure
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.trajectory module
pyctbn.legacy.structure\_graph.trajectory module
------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.trajectory
.. automodule:: pyctbn.legacy.structure_graph.trajectory
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.structure\_graph.trajectory\_generator module
pyctbn.legacy.structure\_graph.trajectory\_generator module
-----------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.structure_graph.trajectory_generator
.. automodule:: pyctbn.legacy.structure_graph.trajectory_generator
:members:
:undoc-members:
:show-inheritance:
@ -71,7 +71,7 @@ PyCTBN.PyCTBN.structure\_graph.trajectory\_generator module
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.structure_graph
.. automodule:: pyctbn.legacy.structure_graph
:members:
:undoc-members:
:show-inheritance:

@ -1,739 +0,0 @@
<!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.PyCTBN.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="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"/>
<link rel="up" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.html"/>
<link rel="next" title="Examples" href="examples.html"/>
<link rel="prev" title="PyCTBN.PyCTBN.structure_graph package" href="PyCTBN.PyCTBN.structure_graph.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 class="current">
<li class="toctree-l1 current"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul class="current">
<li class="toctree-l2 current"><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">
<section id="pyctbn-pyctbn-utility-package">
<h1>PyCTBN.PyCTBN.utility package<a class="headerlink" href="#pyctbn-pyctbn-utility-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.PyCTBN.utility.abstract_exporter">
<span id="pyctbn-pyctbn-utility-abstract-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_exporter module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.abstract_exporter" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.abstract_exporter.</code><code class="sig-name descname">AbstractExporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_str</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_cims</span><span class="p">:</span> <span class="n">dict</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Abstract class that exposes the methods to save in json format a network information
along with one or more trajectories generated basing on it</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>_variables</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the nodes labels and cardinalities</p></li>
<li><p><strong>_dyn_str</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the structure of the network (edges)</p></li>
<li><p><strong>_dyn_cims</strong> (<em>dict</em>) – It contains, for every variable (label is the key), the SetOfCims object related to it</p></li>
<li><p><strong>_trajectories</strong> (<em>List</em>) – List of trajectories, that can be added subsequently</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.add_trajectory">
<code class="sig-name descname">add_trajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">list</span></em><span class="sig-paren">)</span><a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>trajectory</strong> (<em>pandas.DataFrame</em>) – The trajectory to add</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file">
<em class="property">abstract </em><code class="sig-name descname">out_file</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">filename</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file" title="Permalink to this definition"></a></dt>
<dd><dl class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>filename</strong> (<em>string</em>) – Name of the output file (it must include json extension)</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.abstract_importer">
<span id="pyctbn-pyctbn-utility-abstract-importer-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.abstract_importer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.abstract_importer.</code><code class="sig-name descname">AbstractImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">trajectory_list</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">prior_net_structure</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Abstract class that exposes all the necessary methods to process the trajectories and the net structure.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>file_path</strong> (<em>str</em>) – the file path, or dataset name if you import already processed data</p></li>
<li><p><strong>trajectory_list</strong> (<em>typing.Union</em><em>[</em><em>pandas.DataFrame</em><em>, </em><em>numpy.ndarray</em><em>]</em>) – Dataframe or numpy array containing the concatenation of all the processed trajectories</p></li>
<li><p><strong>variables</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the nodes labels and cardinalities</p></li>
</ul>
</dd>
<dt class="field-even">Prior_net_structure</dt>
<dd class="field-even"><p>Dataframe containing the structure of the network (edges)</p>
</dd>
<dt class="field-odd">_sorter</dt>
<dd class="field-odd"><p>A list containing the variables labels in the SAME order as the columns in <code class="docutils literal notranslate"><span class="pre">concatenated_samples</span></code></p>
</dd>
</dl>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>The parameters <code class="docutils literal notranslate"><span class="pre">variables</span></code> and <code class="docutils literal notranslate"><span class="pre">prior_net_structure</span></code> HAVE to be properly constructed
as Pandas Dataframes with the following structure:
Header of _df_structure = [From_Node | To_Node]
Header of _df_variables = [Variable_Label | Variable_Cardinality]
See the tutorial on how to construct a correct <code class="docutils literal notranslate"><span class="pre">concatenated_samples</span></code> Dataframe/ndarray.</p>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>See :class:<code class="docutils literal notranslate"><span class="pre">JsonImporter</span></code> for an example implementation</p>
</div>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_list_of_samples_array">
<code class="sig-name descname">build_list_of_samples_array</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">concatenated_sample</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>concatenated_sample</strong> (<em>pandas.Dataframe</em>) – the dataframe/array from which the time, and transitions matrix have to be extracted
and converted</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>the resulting list of numpy arrays</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>List</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter">
<em class="property">abstract </em><code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajecory_header</span><span class="p">:</span> <span class="n">object</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dd><p>Initializes the <code class="docutils literal notranslate"><span class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>trajecory_header</strong> (<em>object</em>) – an object that will be used to define the header</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>A list containing the processed header.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>List</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.clear_concatenated_frame">
<code class="sig-name descname">clear_concatenated_frame</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="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></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames">
<code class="sig-name descname">compute_row_delta_in_all_samples_frames</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">df_samples_list</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="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 <code class="docutils literal notranslate"><span class="pre">compute_row_delta_sigle_samples_frame</span></code> on every dataframe present in the list
<code class="docutils literal notranslate"><span class="pre">df_samples_list</span></code>.
Concatenates the result in the dataframe <code class="docutils literal notranslate"><span class="pre">concatanated_samples</span></code></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>df_samples_list</strong> (<em>List</em>) – the datframe’s list to be processed and concatenated</p>
</dd>
</dl>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>The Dataframe sample_frame has to follow the column structure of this header:
Header of sample_frame = [Time | Variable values]
The class member self._sorter HAS to be properly INITIALIZED (See class members definition doc)</p>
</div>
<div class="admonition note">
<p class="admonition-title">Note</p>
<p>After the call of this method the class member <code class="docutils literal notranslate"><span class="pre">concatanated_samples</span></code> will contain all processed
and merged trajectories</p>
</div>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame">
<code class="sig-name descname">compute_row_delta_sigle_samples_frame</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em>, <em class="sig-param"><span class="n">columns_header</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">shifted_cols_header</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame" title="Permalink to this definition"></a></dt>
<dd><p>Computes the difference between each value present in th time column.
Copies and shift by one position up all the values present in the remaining columns.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>sample_frame</strong> (<em>pandas.Dataframe</em>) – the traj to be processed</p></li>
<li><p><strong>columns_header</strong> (<em>List</em>) – the original header of sample_frame</p></li>
<li><p><strong>shifted_cols_header</strong> (<em>List</em>) – a copy of columns_header with changed names of the contents</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>The processed dataframe</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>pandas.Dataframe</p>
</dd>
</dl>
<div class="admonition warning">
<p class="admonition-title">Warning</p>
<p>the Dataframe <code class="docutils literal notranslate"><span class="pre">sample_frame</span></code> has to follow the column structure of this header:
Header of sample_frame = [Time | Variable values]</p>
</div>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples">
<em class="property">property </em><code class="sig-name descname">concatenated_samples</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.dataset_id">
<em class="property">abstract </em><code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; object<a class="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
dataset</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path">
<em class="property">property </em><code class="sig-name descname">file_path</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter">
<em class="property">property </em><code class="sig-name descname">sorter</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure">
<em class="property">property </em><code class="sig-name descname">structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables">
<em class="property">property </em><code class="sig-name descname">variables</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.cache">
<span id="pyctbn-pyctbn-utility-cache-module"></span><h2>PyCTBN.PyCTBN.utility.cache module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.cache" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.cache.</code><code class="sig-name descname">Cache</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>This class acts as a cache of <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> objects for a node.</p>
<dl class="field-list simple">
<dt class="field-odd">__list_of_sets_of_parents</dt>
<dd class="field-odd"><p>a list of <code class="docutils literal notranslate"><span class="pre">Sets</span></code> objects of the parents to which the cim in cache at SAME
index is related</p>
</dd>
<dt class="field-even">__actual_cache</dt>
<dd class="field-even"><p>a list of setOfCims objects</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.clear">
<code class="sig-name descname">clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.clear" title="Permalink to this definition"></a></dt>
<dd><p>Clear the contents both of <code class="docutils literal notranslate"><span class="pre">__actual_cache</span></code> and <code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.find">
<code class="sig-name descname">find</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_comb</span><span class="p">:</span> <span class="n">Set</span></em><span class="sig-paren">)</span><a class="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 <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> the <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code>
related to that <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>parents_comb</strong> (<em>Set</em>) – the parents related to that <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code></p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>A <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> object if the <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> index is found in <code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.
None otherwise.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p><a class="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">SetOfCims</a></p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.put">
<code class="sig-name descname">put</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_comb</span><span class="p">:</span> <span class="n">Set</span></em>, <em class="sig-param"><span class="n">socim</span><span class="p">:</span> <span class="n"><a class="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><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.put" title="Permalink to this definition"></a></dt>
<dd><p>Place in cache the <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> object, and the related symbolic index <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> in
<code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>parents_comb</strong> (<em>Set</em>) – the symbolic set index</p></li>
<li><p><strong>socim</strong> (<a class="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"><em>SetOfCims</em></a>) – the related SetOfCims object</p></li>
</ul>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.json_exporter">
<span id="pyctbn-pyctbn-utility-json-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.json_exporter module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.json_exporter" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.json_exporter.</code><code class="sig-name descname">JsonExporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_str</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_cims</span><span class="p">:</span> <span class="n">dict</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter" title="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter</span></code></a></p>
<p>Provides the methods to save in json format a network information
along with one or more trajectories generated basing on it</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>_variables</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the nodes labels and cardinalities</p></li>
<li><p><strong>_dyn_str</strong> (<em>pandas.DataFrame</em>) – Dataframe containing the structure of the network (edges)</p></li>
<li><p><strong>_dyn_cims</strong> (<em>dict</em>) – It contains, for every variable (label is the key), the SetOfCims object related to it</p></li>
<li><p><strong>_trajectories</strong> (<em>List</em>) – List of trajectories, that can be added subsequently</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json">
<code class="sig-name descname">cims_to_json</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; dict<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file">
<code class="sig-name descname">out_file</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">filename</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file" title="Permalink to this definition"></a></dt>
<dd><dl class="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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>filename</strong> (<em>string</em>) – Name of the output file (it must include json extension)</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.json_importer">
<span id="pyctbn-pyctbn-utility-json-importer-module"></span><h2>PyCTBN.PyCTBN.utility.json_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.json_importer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.json_importer.</code><code class="sig-name descname">JsonImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">samples_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">variables_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">time_key</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">variables_key</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">cims_label</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></code></a></p>
<p>Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare
the data in json extension.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>file_path</strong> (<em>string</em>) – the path of the file that contains tha data to be imported</p></li>
<li><p><strong>samples_label</strong> (<em>string</em>) – the reference key for the samples in the trajectories</p></li>
<li><p><strong>structure_label</strong> (<em>string</em>) – the reference key for the structure of the network data</p></li>
<li><p><strong>variables_label</strong> (<em>string</em>) – the reference key for the cardinalites of the nodes data</p></li>
<li><p><strong>time_key</strong> (<em>string</em>) – the key used to identify the timestamps in each trajectory</p></li>
<li><p><strong>variables_key</strong> (<em>string</em>) – the key used to identify the names of the variables in the net</p></li>
</ul>
</dd>
<dt class="field-even">_array_indx</dt>
<dd class="field-even"><p>the index of the outer JsonArray to extract the data from</p>
</dd>
<dt class="field-odd">_df_samples_list</dt>
<dd class="field-odd"><p>a Dataframe list in which every dataframe contains a trajectory</p>
</dd>
<dt class="field-even">_raw_data</dt>
<dd class="field-even"><p>The raw contents of the json file to import</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.build_sorter">
<code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="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 <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code> for this dataset.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.clear_data_frame_list">
<code class="sig-name descname">clear_data_frame_list</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="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 <code class="docutils literal notranslate"><span class="pre">_df_samples_list</span></code>.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.dataset_id">
<code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; object<a class="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
dataset</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data">
<code class="sig-name descname">import_data</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data" title="Permalink to this definition"></a></dt>
<dd><p>Implements the abstract method of <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>indx</strong> (<em>int</em>) – the index of the outer JsonArray to extract the data from, default to 0</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims">
<code class="sig-name descname">import_sampled_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cims_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; Dict<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims" title="Permalink to this definition"></a></dt>
<dd><p>Imports the synthetic CIMS in the dataset in a dictionary, using variables labels
as keys for the set of CIMS of a particular node.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>raw_data</strong> (<em>List</em>) – List of Dicts</p></li>
<li><p><strong>indx</strong> (<em>int</em>) – The index of the array from which the data have to be extracted</p></li>
<li><p><strong>cims_key</strong> (<em>string</em>) – the key where the json object cims are placed</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>a dictionary containing the sampled CIMS for all the variables in the net</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>Dictionary</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_structure">
<code class="sig-name descname">import_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="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 <code class="docutils literal notranslate"><span class="pre">_structure_label</span></code></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>raw_data</strong> (<em>List</em>) – List of Dicts</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Dataframe containg the starting node a ending node of every arc of the network</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>pandas.Dataframe</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_trajectories">
<code class="sig-name descname">import_trajectories</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; List<a class="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 <code class="docutils literal notranslate"><span class="pre">raw_data</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>raw_data</strong> (<em>List</em>) – List of Dicts</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>List of dataframes containing all the trajectories</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>List</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables">
<code class="sig-name descname">import_variables</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables" title="Permalink to this definition"></a></dt>
<dd><p>Imports the data in <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the key <code class="docutils literal notranslate"><span class="pre">_variables_label</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>raw_data</strong> (<em>List</em>) – List of Dicts</p>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>Datframe containg the variables simbolic labels and their cardinalities</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>pandas.Dataframe</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories">
<code class="sig-name descname">normalize_trajectories</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">trajectories_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories" title="Permalink to this definition"></a></dt>
<dd><p>Extracts the trajectories in <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the index <code class="docutils literal notranslate"><span class="pre">index</span></code> at the key <code class="docutils literal notranslate"><span class="pre">trajectories</span> <span class="pre">key</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>raw_data</strong> (<em>List</em>) – List of Dicts</p></li>
<li><p><strong>indx</strong> (<em>int</em>) – The index of the array from which the data have to be extracted</p></li>
<li><p><strong>trajectories_key</strong> (<em>string</em>) – the key of the trajectories objects</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>A list of daframes containg the trajectories</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>List</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.one_level_normalizing">
<code class="sig-name descname">one_level_normalizing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="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 <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the index <code class="docutils literal notranslate"><span class="pre">indx</span></code> at the key <code class="docutils literal notranslate"><span class="pre">key</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>raw_data</strong> (<em>List</em>) – List of Dicts</p></li>
<li><p><strong>indx</strong> (<em>int</em>) – The index of the array from which the data have to be extracted</p></li>
<li><p><strong>key</strong> (<em>string</em>) – the key for the Dicts from which exctract data</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
<dd class="field-even"><p>A normalized dataframe</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p>pandas.Datframe</p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.read_json_file">
<code class="sig-name descname">read_json_file</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
<dd class="field-odd"><p>The contents of the json file</p>
</dd>
<dt class="field-even">Return type</dt>
<dd class="field-even"><p>List</p>
</dd>
</dl>
</dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.sample_importer">
<span id="pyctbn-pyctbn-utility-sample-importer-module"></span><h2>PyCTBN.PyCTBN.utility.sample_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.sample_importer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.sample_importer.</code><code class="sig-name descname">SampleImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectory_list</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">prior_net_structure</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></code></a></p>
<p>Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare
the data loaded directly by using DataFrame</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>trajectory_list</strong> (<em>typing.Union</em><em>[</em><em>pd.DataFrame</em><em>, </em><em>np.ndarray</em><em>, </em><em>typing.List</em><em>]</em>) – the data that describes the trajectories</p></li>
<li><p><strong>variables</strong> (<em>typing.Union</em><em>[</em><em>pd.DataFrame</em><em>, </em><em>np.ndarray</em><em>, </em><em>typing.List</em><em>]</em>) – the data that describes the variables with name and cardinality</p></li>
<li><p><strong>prior_net_structure</strong> (<em>typing.Union</em><em>[</em><em>pd.DataFrame</em><em>, </em><em>np.ndarray</em><em>, </em><em>typing.List</em><em>]</em>) – the data of the real structure, if it exists</p></li>
</ul>
</dd>
<dt class="field-even">_df_samples_list</dt>
<dd class="field-even"><p>a Dataframe list in which every dataframe contains a trajectory</p>
</dd>
<dt class="field-odd">_raw_data</dt>
<dd class="field-odd"><p>The raw contents of the json file to import</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.build_sorter">
<code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="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 <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code> in order to get the ordered variables list.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.dataset_id">
<code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="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
dataset</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data">
<code class="sig-name descname">import_data</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">header_column</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility" title="Permalink to this headline"></a></h2>
</section>
</section>
</div>
<footer>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="examples.html" class="btn btn-neutral float-right" title="Examples">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="PyCTBN.PyCTBN.structure_graph.html" class="btn btn-neutral" title="PyCTBN.PyCTBN.structure_graph package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>
<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>

@ -1,53 +1,53 @@
PyCTBN.PyCTBN.utility package
pyctbn.legacy.utility package
=============================
Submodules
----------
PyCTBN.PyCTBN.utility.abstract\_exporter module
pyctbn.legacy.utility.abstract\_exporter module
-----------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.abstract_exporter
.. automodule:: pyctbn.legacy.utility.abstract_exporter
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.abstract\_importer module
pyctbn.legacy.utility.abstract\_importer module
-----------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.abstract_importer
.. automodule:: pyctbn.legacy.utility.abstract_importer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.cache module
pyctbn.legacy.utility.cache module
----------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.cache
.. automodule:: pyctbn.legacy.utility.cache
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.json\_exporter module
pyctbn.legacy.utility.json\_exporter module
-------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.json_exporter
.. automodule:: pyctbn.legacy.utility.json_exporter
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.json\_importer module
pyctbn.legacy.utility.json\_importer module
-------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.json_importer
.. automodule:: pyctbn.legacy.utility.json_importer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.utility.sample\_importer module
pyctbn.legacy.utility.sample\_importer module
---------------------------------------------
.. automodule:: PyCTBN.PyCTBN.utility.sample_importer
.. automodule:: pyctbn.legacy.utility.sample_importer
:members:
:undoc-members:
:show-inheritance:
@ -55,7 +55,7 @@ PyCTBN.PyCTBN.utility.sample\_importer module
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.utility
.. automodule:: pyctbn.legacy.utility
:members:
:undoc-members:
:show-inheritance:

292
docs/PyCTBN.html vendored

@ -1,292 +0,0 @@
<!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 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>
<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">
<section id="pyctbn-package">
<h1>PyCTBN package<a class="headerlink" href="#pyctbn-package" title="Permalink to this headline"></a></h1>
<section id="subpackages">
<h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline"></a></h2>
<div class="toctree-wrapper compound">
<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><ul>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html">PyCTBN.PyCTBN.estimators package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.fam_score_calculator">PyCTBN.PyCTBN.estimators.fam_score_calculator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.parameters_estimator">PyCTBN.PyCTBN.estimators.parameters_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_estimator">PyCTBN.PyCTBN.estimators.structure_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">PyCTBN.PyCTBN.estimators.structure_score_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html">PyCTBN.PyCTBN.optimizers package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">PyCTBN.PyCTBN.optimizers.hill_climbing_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.optimizer">PyCTBN.PyCTBN.optimizers.optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.tabu_search">PyCTBN.PyCTBN.optimizers.tabu_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
</ul>
</li>
</ul>
</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="PyCTBN.tests.html">PyCTBN.tests package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.html#subpackages">Subpackages</a><ul>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.estimators.html">PyCTBN.tests.estimators package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">PyCTBN.tests.estimators.test_parameters_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator">PyCTBN.tests.estimators.test_structure_constraint_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">PyCTBN.tests.estimators.test_structure_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_score_based_estimator">PyCTBN.tests.estimators.test_structure_score_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.optimizers.html">PyCTBN.tests.optimizers package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_hill_climbing_search">PyCTBN.tests.optimizers.test_hill_climbing_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_tabu_search">PyCTBN.tests.optimizers.test_tabu_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.structure_graph.html">PyCTBN.tests.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_cim">PyCTBN.tests.structure_graph.test_cim module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_networkgenerator">PyCTBN.tests.structure_graph.test_networkgenerator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_networkgraph">PyCTBN.tests.structure_graph.test_networkgraph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_sample_path">PyCTBN.tests.structure_graph.test_sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_setofcims">PyCTBN.tests.structure_graph.test_setofcims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_structure">PyCTBN.tests.structure_graph.test_structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_trajectory">PyCTBN.tests.structure_graph.test_trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_trajectorygenerator">PyCTBN.tests.structure_graph.test_trajectorygenerator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.tests.utility.html">PyCTBN.tests.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_cache">PyCTBN.tests.utility.test_cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_json_importer">PyCTBN.tests.utility.test_json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_sample_importer">PyCTBN.tests.utility.test_sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility">Module contents</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.html#module-PyCTBN.tests">Module contents</a></li>
</ul>
</li>
</ul>
</div>
</section>
<section id="submodules">
<h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline"></a></h2>
</section>
<section id="pyctbn-basic-main-module">
<h2>PyCTBN.basic_main module<a class="headerlink" href="#pyctbn-basic-main-module" title="Permalink to this headline"></a></h2>
</section>
<section id="pyctbn-setup-module">
<h2>PyCTBN.setup module<a class="headerlink" href="#pyctbn-setup-module" title="Permalink to this headline"></a></h2>
</section>
<section id="module-PyCTBN">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN" 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>

@ -7,7 +7,7 @@ Subpackages
.. toctree::
:maxdepth: 4
PyCTBN.PyCTBN
pyctbn.legacy
PyCTBN.tests
Submodules

@ -1,226 +0,0 @@
<!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 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>
<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">
<section id="pyctbn-tests-package">
<h1>PyCTBN.tests package<a class="headerlink" href="#pyctbn-tests-package" title="Permalink to this headline"></a></h1>
<section id="subpackages">
<h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline"></a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.estimators.html">PyCTBN.tests.estimators package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_parameters_estimator">PyCTBN.tests.estimators.test_parameters_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_constraint_based_estimator">PyCTBN.tests.estimators.test_structure_constraint_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_estimator">PyCTBN.tests.estimators.test_structure_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators.test_structure_score_based_estimator">PyCTBN.tests.estimators.test_structure_score_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.estimators.html#module-PyCTBN.tests.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.optimizers.html">PyCTBN.tests.optimizers package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_hill_climbing_search">PyCTBN.tests.optimizers.test_hill_climbing_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers.test_tabu_search">PyCTBN.tests.optimizers.test_tabu_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.optimizers.html#module-PyCTBN.tests.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.structure_graph.html">PyCTBN.tests.structure_graph package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_cim">PyCTBN.tests.structure_graph.test_cim module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_networkgenerator">PyCTBN.tests.structure_graph.test_networkgenerator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_networkgraph">PyCTBN.tests.structure_graph.test_networkgraph module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_sample_path">PyCTBN.tests.structure_graph.test_sample_path module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_setofcims">PyCTBN.tests.structure_graph.test_setofcims module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_structure">PyCTBN.tests.structure_graph.test_structure module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_trajectory">PyCTBN.tests.structure_graph.test_trajectory module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph.test_trajectorygenerator">PyCTBN.tests.structure_graph.test_trajectorygenerator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.structure_graph.html#module-PyCTBN.tests.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.tests.utility.html">PyCTBN.tests.utility package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.utility.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_cache">PyCTBN.tests.utility.test_cache module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_json_importer">PyCTBN.tests.utility.test_json_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility.test_sample_importer">PyCTBN.tests.utility.test_sample_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.tests.utility.html#module-PyCTBN.tests.utility">Module contents</a></li>
</ul>
</li>
</ul>
</div>
</section>
<section id="module-PyCTBN.tests">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.tests" 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>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PyCTBN.PyCTBN.estimators package &mdash; PyCTBN 2.0 documentation</title>
<title>pyctbn.legacy.estimators package &mdash; PyCTBN 2.0 documentation</title>
@ -27,9 +27,9 @@
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
<link rel="up" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.html"/>
<link rel="next" title="PyCTBN.PyCTBN.optimizers package" href="PyCTBN.PyCTBN.optimizers.html"/>
<link rel="prev" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.html"/>
<link rel="up" title="pyctbn.legacy package" href="pyctbn.legacy.html"/>
<link rel="next" title="pyctbn.legacy.optimizers package" href="pyctbn.legacy.optimizers.html"/>
<link rel="prev" title="pyctbn.legacy package" href="pyctbn.legacy.html"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="public" />
@ -63,9 +63,9 @@
<p><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul class="current">
<li class="toctree-l2 current"><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>
<li class="toctree-l1 current"><a class="reference internal" href="pyctbn.legacy.html">pyctbn.legacy package</a><ul class="current">
<li class="toctree-l2 current"><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>
@ -116,20 +116,20 @@
<div id="content" class="hfeed entry-container hentry">
<section id="pyctbn-pyctbn-estimators-package">
<h1>PyCTBN.PyCTBN.estimators package<a class="headerlink" href="#pyctbn-pyctbn-estimators-package" title="Permalink to this headline"></a></h1>
<h1>pyctbn.legacy.estimators package<a class="headerlink" href="#pyctbn-pyctbn-estimators-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.PyCTBN.estimators.fam_score_calculator">
<span id="pyctbn-pyctbn-estimators-fam-score-calculator-module"></span><h2>PyCTBN.PyCTBN.estimators.fam_score_calculator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.fam_score_calculator" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.estimators.fam_score_calculator">
<span id="pyctbn-pyctbn-estimators-fam-score-calculator-module"></span><h2>pyctbn.legacy.estimators.fam_score_calculator module<a class="headerlink" href="#module-pyctbn.legacy.estimators.fam_score_calculator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.fam_score_calculator.</code><code class="sig-name descname">FamScoreCalculator</code><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.estimators.fam_score_calculator.</code><code class="sig-name descname">FamScoreCalculator</code><a class="headerlink" href="#pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of calculating the FamScore of a node by using a Bayesian score function</p>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score">
<code class="sig-name descname">get_fam_score</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.get_fam_score">
<code class="sig-name descname">get_fam_score</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -149,8 +149,8 @@
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q">
<code class="sig-name descname">marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_q">
<code class="sig-name descname">marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.array</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -170,8 +170,8 @@
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta">
<code class="sig-name descname">marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.marginal_likelihood_theta">
<code class="sig-name descname">marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -191,8 +191,8 @@
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q">
<code class="sig-name descname">single_cim_xu_marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">M_xu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">T_xu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q">
<code class="sig-name descname">single_cim_xu_marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">M_xu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">T_xu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_q" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
and a specif parents’s assignment</p>
<dl class="field-list simple">
@ -215,8 +215,8 @@ and a specif parents’s assignment</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta">
<code class="sig-name descname">single_cim_xu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">index</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta">
<code class="sig-name descname">single_cim_xu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">index</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.single_cim_xu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dd><p>Calculate the marginal likelihood on q of the node when assumes a specif value
and a specif parents’s assignment</p>
<dl class="field-list simple">
@ -237,8 +237,8 @@ and a specif parents’s assignment</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta">
<code class="sig-name descname">single_internal_cim_xxu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">M_xxu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.single_internal_cim_xxu_marginal_likelihood_theta">
<code class="sig-name descname">single_internal_cim_xxu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">M_xxu_suff_stats</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -257,8 +257,8 @@ and a specif parents’s assignment</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q">
<code class="sig-name descname">variable_cim_xu_marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_q">
<code class="sig-name descname">variable_cim_xu_marginal_likelihood_q</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span> <span class="o">=</span> <span class="default_value">1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -278,8 +278,8 @@ and a specif parents’s assignment</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta">
<code class="sig-name descname">variable_cim_xu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.fam_score_calculator.FamScoreCalculator.variable_cim_xu_marginal_likelihood_theta">
<code class="sig-name descname">variable_cim_xu_marginal_likelihood_theta</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">alpha_xxu</span><span class="p">:</span> <span class="n">float</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -301,19 +301,19 @@ and a specif parents’s assignment</p>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators.parameters_estimator">
<span id="pyctbn-pyctbn-estimators-parameters-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.parameters_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.parameters_estimator" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.estimators.parameters_estimator">
<span id="pyctbn-pyctbn-estimators-parameters-estimator-module"></span><h2>pyctbn.legacy.estimators.parameters_estimator module<a class="headerlink" href="#module-pyctbn.legacy.estimators.parameters_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.parameters_estimator.</code><code class="sig-name descname">ParametersEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectories</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">net_graph</span><span class="p">:</span> <span class="n"><a class="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><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.parameters_estimator.ParametersEstimator">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.estimators.parameters_estimator.</code><code class="sig-name descname">ParametersEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectories</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.trajectory.Trajectory" title="pyctbn.legacy.structure_graph.trajectory.Trajectory">pyctbn.legacy.structure_graph.trajectory.Trajectory</a></span></em>, <em class="sig-param"><span class="n">net_graph</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.network_graph.NetworkGraph" title="pyctbn.legacy.structure_graph.network_graph.NetworkGraph">pyctbn.legacy.structure_graph.network_graph.NetworkGraph</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.parameters_estimator.ParametersEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of computing the cims of particular node given the trajectories and the net structure
in the graph <code class="docutils literal notranslate"><span class="pre">_net_graph</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>trajectories</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory" title="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory"><em>Trajectory</em></a>) – the trajectories</p></li>
<li><p><strong>net_graph</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"><em>NetworkGraph</em></a>) – the net structure</p></li>
<li><p><strong>trajectories</strong> (<a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.trajectory.Trajectory" title="pyctbn.legacy.structure_graph.trajectory.Trajectory"><em>Trajectory</em></a>) – the trajectories</p></li>
<li><p><strong>net_graph</strong> (<a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.network_graph.NetworkGraph" title="pyctbn.legacy.structure_graph.network_graph.NetworkGraph"><em>NetworkGraph</em></a>) – the net structure</p></li>
</ul>
</dd>
<dt class="field-even">_single_set_of_cims</dt>
@ -321,8 +321,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node">
<code class="sig-name descname">compute_parameters_for_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; <a class="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><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.parameters_estimator.ParametersEstimator.compute_parameters_for_node">
<code class="sig-name descname">compute_parameters_for_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; <a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims" title="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims">pyctbn.legacy.structure_graph.set_of_cims.SetOfCims</a><a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">node_id</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -332,14 +332,14 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
<dd class="field-even"><p>A SetOfCims object filled with the computed CIMS</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p><a class="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">SetOfCims</a></p>
<dd class="field-odd"><p><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims" title="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims">SetOfCims</a></p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node">
<em class="property">static </em><code class="sig-name descname">compute_state_res_time_for_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">times</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cols_filter</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">scalar_indexes_struct</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">T</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.parameters_estimator.ParametersEstimator.compute_state_res_time_for_node">
<em class="property">static </em><code class="sig-name descname">compute_state_res_time_for_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">times</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cols_filter</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">scalar_indexes_struct</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">T</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">T</span></code> with the results</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -356,8 +356,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node">
<em class="property">static </em><code class="sig-name descname">compute_state_transitions_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cols_filter</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">scalar_indexing</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">M</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.parameters_estimator.ParametersEstimator.compute_state_transitions_for_a_node">
<em class="property">static </em><code class="sig-name descname">compute_state_transitions_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cols_filter</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">scalar_indexing</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">M</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">M</span></code> with the results.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -373,8 +373,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.fast_init">
<code class="sig-name descname">fast_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.parameters_estimator.ParametersEstimator.fast_init" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.parameters_estimator.ParametersEstimator.fast_init">
<code class="sig-name descname">fast_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">node_id</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -386,17 +386,17 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">
<span id="pyctbn-pyctbn-estimators-structure-constraint-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.estimators.structure_constraint_based_estimator">
<span id="pyctbn-pyctbn-estimators-structure-constraint-based-estimator-module"></span><h2>pyctbn.legacy.estimators.structure_constraint_based_estimator module<a class="headerlink" href="#module-pyctbn.legacy.estimators.structure_constraint_based_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.</code><code class="sig-name descname">StructureConstraintBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">exp_test_alfa</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">chi_test_alfa</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">[]</span></em>, <em class="sig-param"><span class="n">thumb_threshold</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">25</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></code></a></p>
<dt id="pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.estimators.structure_constraint_based_estimator.</code><code class="sig-name descname">StructureConstraintBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.sample_path.SamplePath" title="pyctbn.legacy.structure_graph.sample_path.SamplePath">pyctbn.legacy.structure_graph.sample_path.SamplePath</a></span></em>, <em class="sig-param"><span class="n">exp_test_alfa</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">chi_test_alfa</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">[]</span></em>, <em class="sig-param"><span class="n">thumb_threshold</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">25</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#pyctbn.legacy.estimators.structure_estimator.StructureEstimator" title="pyctbn.legacy.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyctbn.legacy.estimators.structure_estimator.StructureEstimator</span></code></a></p>
<p>Has the task of estimating the network structure given the trajectories in samplepath by using a constraint-based approach.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>sample_path</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>sample_path</strong> (<a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.sample_path.SamplePath" title="pyctbn.legacy.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>exp_test_alfa</strong> (<em>float</em>) – the significance level for the exponential Hp test</p></li>
<li><p><strong>chi_test_alfa</strong> (<em>float</em>) – the significance level for the chi Hp test</p></li>
<li><p><strong>known_edges</strong> (<em>List</em>) – the prior known edges in the net structure if present</p></li>
@ -420,8 +420,8 @@ in the graph <code class="docutils literal notranslate"><span class="pre">_net_g
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test">
<code class="sig-name descname">complete_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">test_parent</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">test_child</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">parent_set</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">child_states_numb</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parent_indx</span></em>, <em class="sig-param"><span class="n">child_indx</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test">
<code class="sig-name descname">complete_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">test_parent</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">test_child</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">parent_set</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">child_states_numb</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parent_indx</span></em>, <em class="sig-param"><span class="n">child_indx</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.complete_test" title="Permalink to this definition"></a></dt>
<dd><p>Performs a complete independence test on the directed graphs G1 = {test_child U parent_set}
G2 = {G1 U test_parent} (added as an additional parent of the test_child).
Generates all the necessary structures and datas to perform the tests.</p>
@ -445,8 +445,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value">
<code class="sig-name descname">compute_thumb_value</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parent_val</span></em>, <em class="sig-param"><span class="n">child_val</span></em>, <em class="sig-param"><span class="n">parent_set_vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.compute_thumb_value">
<code class="sig-name descname">compute_thumb_value</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parent_val</span></em>, <em class="sig-param"><span class="n">child_val</span></em>, <em class="sig-param"><span class="n">parent_set_vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -466,8 +466,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm">
<code class="sig-name descname">ctpc_algorithm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.ctpc_algorithm">
<code class="sig-name descname">ctpc_algorithm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -482,8 +482,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure">
<code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure">
<code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute the constraint-based algorithm to find the optimal structure</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -498,8 +498,8 @@ Generates all the necessary structures and datas to perform the tests.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test">
<code class="sig-name descname">independence_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">child_states_numb</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cim1</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">cim2</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">thumb_value</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">parent_indx</span></em>, <em class="sig-param"><span class="n">child_indx</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test">
<code class="sig-name descname">independence_test</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">child_states_numb</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cim1</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">cim2</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix</a></span></em>, <em class="sig-param"><span class="n">thumb_value</span><span class="p">:</span> <span class="n">float</span></em>, <em class="sig-param"><span class="n">parent_indx</span></em>, <em class="sig-param"><span class="n">child_indx</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.independence_test" title="Permalink to this definition"></a></dt>
<dd><p>Compute the actual independence test using two cims.
It is performed first the exponential test and if the null hypothesis is not rejected,
it is performed also the chi_test.</p>
@ -507,8 +507,8 @@ it is performed also the chi_test.</p>
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>child_states_numb</strong> (<em>int</em>) – the cardinality of the test child</p></li>
<li><p><strong>cim1</strong> (<a class="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"><em>ConditionalIntensityMatrix</em></a>) – a cim belonging to the graph without test parent</p></li>
<li><p><strong>cim2</strong> (<a class="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"><em>ConditionalIntensityMatrix</em></a>) – a cim belonging to the graph with test parent</p></li>
<li><p><strong>cim1</strong> (<a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"><em>ConditionalIntensityMatrix</em></a>) – a cim belonging to the graph without test parent</p></li>
<li><p><strong>cim2</strong> (<a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix"><em>ConditionalIntensityMatrix</em></a>) – a cim belonging to the graph with test parent</p></li>
</ul>
</dd>
<dt class="field-even">Returns</dt>
@ -521,8 +521,8 @@ it is performed also the chi_test.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm">
<code class="sig-name descname">one_iteration_of_CTPC_algorithm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">var_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_constraint_based_estimator.StructureConstraintBasedEstimator.one_iteration_of_CTPC_algorithm">
<code class="sig-name descname">one_iteration_of_CTPC_algorithm</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">var_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">var_id</span></code> as <code class="docutils literal notranslate"><span class="pre">test_child</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -534,17 +534,17 @@ it is performed also the chi_test.</p>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators.structure_estimator">
<span id="pyctbn-pyctbn-estimators-structure-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_estimator" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.estimators.structure_estimator">
<span id="pyctbn-pyctbn-estimators-structure-estimator-module"></span><h2>pyctbn.legacy.estimators.structure_estimator module<a class="headerlink" href="#module-pyctbn.legacy.estimators.structure_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_estimator.</code><code class="sig-name descname">StructureEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.estimators.structure_estimator.</code><code class="sig-name descname">StructureEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.sample_path.SamplePath" title="pyctbn.legacy.structure_graph.sample_path.SamplePath">pyctbn.legacy.structure_graph.sample_path.SamplePath</a></span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.structure_estimator.StructureEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Has the task of estimating the network structure given the trajectories in <code class="docutils literal notranslate"><span class="pre">samplepath</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>sample_path</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>sample_path</strong> (<a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.sample_path.SamplePath" title="pyctbn.legacy.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>known_edges</strong> (<em>List</em>) – the prior known edges in the net structure if present</p></li>
</ul>
</dd>
@ -562,8 +562,8 @@ it is performed also the chi_test.</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix">
<code class="sig-name descname">adjacency_matrix</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.adjacency_matrix" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator.adjacency_matrix">
<code class="sig-name descname">adjacency_matrix</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#pyctbn.legacy.estimators.structure_estimator.StructureEstimator.adjacency_matrix" title="Permalink to this definition"></a></dt>
<dd><p>Converts the estimated structure <code class="docutils literal notranslate"><span class="pre">_complete_graph</span></code> to a boolean adjacency matrix representation.</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
@ -576,8 +576,8 @@ it is performed also the chi_test.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_complete_graph">
<em class="property">static </em><code class="sig-name descname">build_complete_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_ids</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; networkx.classes.digraph.DiGraph<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_complete_graph" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator.build_complete_graph">
<em class="property">static </em><code class="sig-name descname">build_complete_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_ids</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; networkx.classes.digraph.DiGraph<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">node_ids</span></code>:</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -593,8 +593,8 @@ it is performed also the chi_test.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix">
<code class="sig-name descname">build_removable_edges_matrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator.build_removable_edges_matrix">
<code class="sig-name descname">build_removable_edges_matrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -610,8 +610,8 @@ it is performed also the chi_test.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure">
<em class="property">abstract </em><code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator.estimate_structure">
<em class="property">abstract </em><code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.estimators.structure_estimator.StructureEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dd><p>Abstract method to estimate the structure</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
@ -624,8 +624,8 @@ it is performed also the chi_test.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size">
<em class="property">static </em><code class="sig-name descname">generate_possible_sub_sets_of_size</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">u</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">size</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parent_label</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator.generate_possible_sub_sets_of_size">
<em class="property">static </em><code class="sig-name descname">generate_possible_sub_sets_of_size</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">u</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">size</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parent_label</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">u</span></code> of size <code class="docutils literal notranslate"><span class="pre">size</span></code>,
that do not contains a the node identified by <code class="docutils literal notranslate"><span class="pre">parent_label</span></code>.</p>
<dl class="field-list simple">
@ -646,8 +646,8 @@ that do not contains a the node identified by <code class="docutils literal notr
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph">
<code class="sig-name descname">save_plot_estimated_structure_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph">
<code class="sig-name descname">save_plot_estimated_structure_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.estimators.structure_estimator.StructureEstimator.save_plot_estimated_structure_graph" title="Permalink to this definition"></a></dt>
<dd><p>Plot the estimated structure in a graphical model style, use .png extension.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -660,8 +660,8 @@ that do not contains a the node identified by <code class="docutils literal notr
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_results">
<code class="sig-name descname">save_results</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.save_results" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator.save_results">
<code class="sig-name descname">save_results</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -671,8 +671,8 @@ that do not contains a the node identified by <code class="docutils literal notr
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges">
<code class="sig-name descname">spurious_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator.spurious_edges" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_estimator.StructureEstimator.spurious_edges">
<code class="sig-name descname">spurious_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.estimators.structure_estimator.StructureEstimator.spurious_edges" title="Permalink to this definition"></a></dt>
<dd><dl class="simple">
<dt>Return the spurious edges present in the estimated structure, if a prior net structure is present in</dt><dd><p><code class="docutils literal notranslate"><span class="pre">_sample_path.structure</span></code>.</p>
</dd>
@ -690,18 +690,18 @@ that do not contains a the node identified by <code class="docutils literal notr
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">
<span id="pyctbn-pyctbn-estimators-structure-score-based-estimator-module"></span><h2>PyCTBN.PyCTBN.estimators.structure_score_based_estimator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.estimators.structure_score_based_estimator">
<span id="pyctbn-pyctbn-estimators-structure-score-based-estimator-module"></span><h2>pyctbn.legacy.estimators.structure_score_based_estimator module<a class="headerlink" href="#module-pyctbn.legacy.estimators.structure_score_based_estimator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.estimators.structure_score_based_estimator.</code><code class="sig-name descname">StructureScoreBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">1</span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">[]</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator" title="PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.estimators.structure_estimator.StructureEstimator</span></code></a></p>
<dt id="pyctbn.legacy.estimators.structure_score_based_estimator.StructureScoreBasedEstimator">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.estimators.structure_score_based_estimator.</code><code class="sig-name descname">StructureScoreBasedEstimator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_path</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.sample_path.SamplePath" title="pyctbn.legacy.structure_graph.sample_path.SamplePath">pyctbn.legacy.structure_graph.sample_path.SamplePath</a></span></em>, <em class="sig-param"><span class="n">tau_xu</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0.1</span></em>, <em class="sig-param"><span class="n">alpha_xu</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">1</span></em>, <em class="sig-param"><span class="n">known_edges</span><span class="p">:</span> <span class="n">List</span> <span class="o">=</span> <span class="default_value">[]</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.structure_score_based_estimator.StructureScoreBasedEstimator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#pyctbn.legacy.estimators.structure_estimator.StructureEstimator" title="pyctbn.legacy.estimators.structure_estimator.StructureEstimator"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyctbn.legacy.estimators.structure_estimator.StructureEstimator</span></code></a></p>
<p>Has the task of estimating the network structure given the trajectories in samplepath by
using a score based approach and differt kinds of optimization algorithms.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>sample_path</strong> (<a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>sample_path</strong> (<a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.sample_path.SamplePath" title="pyctbn.legacy.structure_graph.sample_path.SamplePath"><em>SamplePath</em></a>) – the _sample_path object containing the trajectories and the real structure</p></li>
<li><p><strong>tau_xu</strong> (<em>float</em><em>, </em><em>optional</em>) – hyperparameter over the CTBN’s q parameters, default to 0.1</p></li>
<li><p><strong>alpha_xu</strong> (<em>float</em><em>, </em><em>optional</em>) – hyperparameter over the CTBN’s q parameters, default to 1</p></li>
<li><p><strong>known_edges</strong> (<em>List</em><em>, </em><em>optional</em>) – List of known edges, default to []</p></li>
@ -709,8 +709,8 @@ using a score based approach and differt kinds of optimization algorithms.</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents">
<code class="sig-name descname">estimate_parents</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">10</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">5</span></em>, <em class="sig-param"><span class="n">optimizer</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'hill'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents">
<code class="sig-name descname">estimate_parents</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">10</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">5</span></em>, <em class="sig-param"><span class="n">optimizer</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'hill'</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_parents" title="Permalink to this definition"></a></dt>
<dd><p>Use the FamScore of a node in order to find the best parent nodes</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -734,8 +734,8 @@ using a score based approach and differt kinds of optimization algorithms.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure">
<code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">optimizer</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'tabu'</span></em>, <em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure">
<code class="sig-name descname">estimate_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">optimizer</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">'tabu'</span></em>, <em class="sig-param"><span class="n">disable_multiprocessing</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em>, <em class="sig-param"><span class="n">processes_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.estimate_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute the score-based algorithm to find the optimal structure</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -756,8 +756,8 @@ using a score based approach and differt kinds of optimization algorithms.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph">
<code class="sig-name descname">get_score_from_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.estimators.structure_score_based_estimator.StructureScoreBasedEstimator.get_score_from_graph">
<code class="sig-name descname">get_score_from_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.network_graph.NetworkGraph" title="pyctbn.legacy.structure_graph.network_graph.NetworkGraph">pyctbn.legacy.structure_graph.network_graph.NetworkGraph</a></span></em>, <em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -778,8 +778,8 @@ using a score based approach and differt kinds of optimization algorithms.</p>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.estimators">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.estimators" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.estimators">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyctbn.legacy.estimators" title="Permalink to this headline"></a></h2>
</section>
</section>
@ -789,10 +789,10 @@ using a score based approach and differt kinds of optimization algorithms.</p>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.optimizers.html" class="btn btn-neutral float-right" title="PyCTBN.PyCTBN.optimizers package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="pyctbn.legacy.optimizers.html" class="btn btn-neutral float-right" title="pyctbn.legacy.optimizers package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="PyCTBN.PyCTBN.html" class="btn btn-neutral" title="PyCTBN.PyCTBN package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
<a href="pyctbn.legacy.html" class="btn btn-neutral" title="pyctbn.legacy package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PyCTBN.PyCTBN package &mdash; PyCTBN 2.0 documentation</title>
<title>pyctbn.legacy package &mdash; PyCTBN 2.0 documentation</title>
@ -27,7 +27,7 @@
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
<link rel="next" title="PyCTBN.PyCTBN.estimators package" href="PyCTBN.PyCTBN.estimators.html"/>
<link rel="next" title="pyctbn.legacy.estimators package" href="pyctbn.legacy.estimators.html"/>
<link rel="prev" title="Welcome to PyCTBN’s documentation!" href="index.html"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
@ -62,9 +62,9 @@
<p><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="current reference internal" href="#">PyCTBN.PyCTBN package</a><ul>
<li class="toctree-l1 current"><a class="current reference internal" href="#">pyctbn.legacy package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="#subpackages">Subpackages</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-PyCTBN.PyCTBN">Module contents</a></li>
<li class="toctree-l2"><a class="reference internal" href="#module-pyctbn.legacy">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="examples.html">Examples</a><ul>
@ -115,59 +115,59 @@
<div id="content" class="hfeed entry-container hentry">
<section id="pyctbn-pyctbn-package">
<h1>PyCTBN.PyCTBN package<a class="headerlink" href="#pyctbn-pyctbn-package" title="Permalink to this headline"></a></h1>
<h1>pyctbn.legacy package<a class="headerlink" href="#pyctbn-pyctbn-package" title="Permalink to this headline"></a></h1>
<section id="subpackages">
<h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline"></a></h2>
<div class="toctree-wrapper compound">
<ul>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html">PyCTBN.PyCTBN.estimators package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.fam_score_calculator">PyCTBN.PyCTBN.estimators.fam_score_calculator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.parameters_estimator">PyCTBN.PyCTBN.estimators.parameters_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_estimator">PyCTBN.PyCTBN.estimators.structure_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">PyCTBN.PyCTBN.estimators.structure_score_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators">Module contents</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyctbn.legacy.estimators.html">pyctbn.legacy.estimators package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.fam_score_calculator">pyctbn.legacy.estimators.fam_score_calculator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.parameters_estimator">pyctbn.legacy.estimators.parameters_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.structure_constraint_based_estimator">pyctbn.legacy.estimators.structure_constraint_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.structure_estimator">pyctbn.legacy.estimators.structure_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.structure_score_based_estimator">pyctbn.legacy.estimators.structure_score_based_estimator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html">PyCTBN.PyCTBN.optimizers package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">PyCTBN.PyCTBN.optimizers.hill_climbing_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.optimizer">PyCTBN.PyCTBN.optimizers.optimizer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.tabu_search">PyCTBN.PyCTBN.optimizers.tabu_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers">Module contents</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyctbn.legacy.optimizers.html">pyctbn.legacy.optimizers package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers.constraint_based_optimizer">pyctbn.legacy.optimizers.constraint_based_optimizer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers.hill_climbing_search">pyctbn.legacy.optimizers.hill_climbing_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers.optimizer">pyctbn.legacy.optimizers.optimizer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers.tabu_search">pyctbn.legacy.optimizers.tabu_search module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyctbn.legacy.structure_graph.html">pyctbn.legacy.structure_graph package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.conditional_intensity_matrix">pyctbn.legacy.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.network_generator">pyctbn.legacy.structure_graph.network_generator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.network_graph">pyctbn.legacy.structure_graph.network_graph module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.sample_path">pyctbn.legacy.structure_graph.sample_path module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.set_of_cims">pyctbn.legacy.structure_graph.set_of_cims module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.structure">pyctbn.legacy.structure_graph.structure module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.trajectory">pyctbn.legacy.structure_graph.trajectory module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.trajectory_generator">pyctbn.legacy.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l1"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
<li class="toctree-l1"><a class="reference internal" href="pyctbn.legacy.utility.html">pyctbn.legacy.utility package</a><ul>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.utility.html#submodules">Submodules</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.abstract_exporter">pyctbn.legacy.utility.abstract_exporter module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.abstract_importer">pyctbn.legacy.utility.abstract_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.cache">pyctbn.legacy.utility.cache module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.json_exporter">pyctbn.legacy.utility.json_exporter module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.json_importer">pyctbn.legacy.utility.json_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.sample_importer">pyctbn.legacy.utility.sample_importer module</a></li>
<li class="toctree-l2"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility">Module contents</a></li>
</ul>
</li>
</ul>
</div>
</section>
<section id="module-PyCTBN.PyCTBN">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyctbn.legacy" title="Permalink to this headline"></a></h2>
</section>
</section>
@ -177,7 +177,7 @@
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.estimators.html" class="btn btn-neutral float-right" title="PyCTBN.PyCTBN.estimators package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="pyctbn.legacy.estimators.html" class="btn btn-neutral float-right" title="pyctbn.legacy.estimators package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="index.html" class="btn btn-neutral" title="Welcome to PyCTBN’s documentation!"><span class="fa fa-arrow-circle-left"></span> Previous</a>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PyCTBN.PyCTBN.optimizers package &mdash; PyCTBN 2.0 documentation</title>
<title>pyctbn.legacy.optimizers package &mdash; PyCTBN 2.0 documentation</title>
@ -27,9 +27,9 @@
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
<link rel="up" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.html"/>
<link rel="next" title="PyCTBN.PyCTBN.structure_graph package" href="PyCTBN.PyCTBN.structure_graph.html"/>
<link rel="prev" title="PyCTBN.PyCTBN.estimators package" href="PyCTBN.PyCTBN.estimators.html"/>
<link rel="up" title="pyctbn.legacy package" href="pyctbn.legacy.html"/>
<link rel="next" title="pyctbn.legacy.structure_graph package" href="pyctbn.legacy.structure_graph.html"/>
<link rel="prev" title="pyctbn.legacy.estimators package" href="pyctbn.legacy.estimators.html"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="public" />
@ -63,9 +63,9 @@
<p><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul class="current">
<li class="toctree-l2 current"><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>
<li class="toctree-l1 current"><a class="reference internal" href="pyctbn.legacy.html">pyctbn.legacy package</a><ul class="current">
<li class="toctree-l2 current"><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>
@ -116,16 +116,16 @@
<div id="content" class="hfeed entry-container hentry">
<section id="pyctbn-pyctbn-optimizers-package">
<h1>PyCTBN.PyCTBN.optimizers package<a class="headerlink" href="#pyctbn-pyctbn-optimizers-package" title="Permalink to this headline"></a></h1>
<h1>pyctbn.legacy.optimizers package<a class="headerlink" href="#pyctbn-pyctbn-optimizers-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.PyCTBN.optimizers.constraint_based_optimizer">
<span id="pyctbn-pyctbn-optimizers-constraint-based-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.optimizers.constraint_based_optimizer">
<span id="pyctbn-pyctbn-optimizers-constraint-based-optimizer-module"></span><h2>pyctbn.legacy.optimizers.constraint_based_optimizer module<a class="headerlink" href="#module-pyctbn.legacy.optimizers.constraint_based_optimizer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.</code><code class="sig-name descname">ConstraintBasedOptimizer</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<dt id="pyctbn.legacy.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.optimizers.constraint_based_optimizer.</code><code class="sig-name descname">ConstraintBasedOptimizer</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.estimators.html#pyctbn.legacy.estimators.structure_estimator.StructureEstimator" title="pyctbn.legacy.estimators.structure_estimator.StructureEstimator">pyctbn.legacy.estimators.structure_estimator.StructureEstimator</a></span></em>, <em class="sig-param"><span class="n">tot_vars_count</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#pyctbn.legacy.optimizers.optimizer.Optimizer" title="pyctbn.legacy.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyctbn.legacy.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement a CTPC Algorithm</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -137,8 +137,8 @@
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.optimizers.constraint_based_optimizer.ConstraintBasedOptimizer.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
@ -153,12 +153,12 @@
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">
<span id="pyctbn-pyctbn-optimizers-hill-climbing-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.hill_climbing_search module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.optimizers.hill_climbing_search">
<span id="pyctbn-pyctbn-optimizers-hill-climbing-search-module"></span><h2>pyctbn.legacy.optimizers.hill_climbing_search module<a class="headerlink" href="#module-pyctbn.legacy.optimizers.hill_climbing_search" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.hill_climbing_search.</code><code class="sig-name descname">HillClimbing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<dt id="pyctbn.legacy.optimizers.hill_climbing_search.HillClimbing">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.optimizers.hill_climbing_search.</code><code class="sig-name descname">HillClimbing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.estimators.html#pyctbn.legacy.estimators.structure_estimator.StructureEstimator" title="pyctbn.legacy.estimators.structure_estimator.StructureEstimator">pyctbn.legacy.estimators.structure_estimator.StructureEstimator</a></span></em>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.optimizers.hill_climbing_search.HillClimbing" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#pyctbn.legacy.optimizers.optimizer.Optimizer" title="pyctbn.legacy.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyctbn.legacy.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement Hill Climbing Search</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -172,8 +172,8 @@
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.hill_climbing_search.HillClimbing.optimize_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.optimizers.hill_climbing_search.HillClimbing.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
@ -188,11 +188,11 @@
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.optimizers.optimizer">
<span id="pyctbn-pyctbn-optimizers-optimizer-module"></span><h2>PyCTBN.PyCTBN.optimizers.optimizer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.optimizer" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.optimizers.optimizer">
<span id="pyctbn-pyctbn-optimizers-optimizer-module"></span><h2>pyctbn.legacy.optimizers.optimizer module<a class="headerlink" href="#module-pyctbn.legacy.optimizers.optimizer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.optimizer.</code><code class="sig-name descname">Optimizer</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="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><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.optimizers.optimizer.Optimizer">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.optimizers.optimizer.</code><code class="sig-name descname">Optimizer</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.estimators.html#pyctbn.legacy.estimators.structure_estimator.StructureEstimator" title="pyctbn.legacy.estimators.structure_estimator.StructureEstimator">pyctbn.legacy.estimators.structure_estimator.StructureEstimator</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.optimizers.optimizer.Optimizer" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Interface class for all the optimizer’s child PyCTBN</p>
<dl class="field-list simple">
@ -204,8 +204,8 @@
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer.optimize_structure">
<em class="property">abstract </em><code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer.optimize_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.optimizers.optimizer.Optimizer.optimize_structure">
<em class="property">abstract </em><code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.optimizers.optimizer.Optimizer.optimize_structure" title="Permalink to this definition"></a></dt>
<dd><p>Compute Optimization process for a structure_estimator</p>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
@ -220,12 +220,12 @@
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.optimizers.tabu_search">
<span id="pyctbn-pyctbn-optimizers-tabu-search-module"></span><h2>PyCTBN.PyCTBN.optimizers.tabu_search module<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers.tabu_search" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.optimizers.tabu_search">
<span id="pyctbn-pyctbn-optimizers-tabu-search-module"></span><h2>pyctbn.legacy.optimizers.tabu_search module<a class="headerlink" href="#module-pyctbn.legacy.optimizers.tabu_search" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.optimizers.tabu_search.</code><code class="sig-name descname">TabuSearch</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="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>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.optimizers.optimizer.Optimizer" title="PyCTBN.PyCTBN.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.optimizers.optimizer.Optimizer</span></code></a></p>
<dt id="pyctbn.legacy.optimizers.tabu_search.TabuSearch">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.optimizers.tabu_search.</code><code class="sig-name descname">TabuSearch</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_estimator</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.estimators.html#pyctbn.legacy.estimators.structure_estimator.StructureEstimator" title="pyctbn.legacy.estimators.structure_estimator.StructureEstimator">pyctbn.legacy.estimators.structure_estimator.StructureEstimator</a></span></em>, <em class="sig-param"><span class="n">max_parents</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">iterations_number</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">40</span></em>, <em class="sig-param"><span class="n">patience</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_length</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">tabu_rules_duration</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.optimizers.tabu_search.TabuSearch" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#pyctbn.legacy.optimizers.optimizer.Optimizer" title="pyctbn.legacy.optimizers.optimizer.Optimizer"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyctbn.legacy.optimizers.optimizer.Optimizer</span></code></a></p>
<p>Optimizer class that implement Tabu Search</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -241,8 +241,8 @@
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.optimizers.tabu_search.TabuSearch.optimize_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.optimizers.tabu_search.TabuSearch.optimize_structure">
<code class="sig-name descname">optimize_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
@ -257,8 +257,8 @@
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.optimizers">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.optimizers" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.optimizers">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyctbn.legacy.optimizers" title="Permalink to this headline"></a></h2>
</section>
</section>
@ -268,10 +268,10 @@
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.structure_graph.html" class="btn btn-neutral float-right" title="PyCTBN.PyCTBN.structure_graph package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="pyctbn.legacy.structure_graph.html" class="btn btn-neutral float-right" title="pyctbn.legacy.structure_graph package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="PyCTBN.PyCTBN.estimators.html" class="btn btn-neutral" title="PyCTBN.PyCTBN.estimators package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
<a href="pyctbn.legacy.estimators.html" class="btn btn-neutral" title="pyctbn.legacy.estimators package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PyCTBN.PyCTBN.structure_graph package &mdash; PyCTBN 2.0 documentation</title>
<title>pyctbn.legacy.structure_graph package &mdash; PyCTBN 2.0 documentation</title>
@ -27,9 +27,9 @@
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
<link rel="up" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.html"/>
<link rel="next" title="PyCTBN.PyCTBN.utility package" href="PyCTBN.PyCTBN.utility.html"/>
<link rel="prev" title="PyCTBN.PyCTBN.optimizers package" href="PyCTBN.PyCTBN.optimizers.html"/>
<link rel="up" title="pyctbn.legacy package" href="pyctbn.legacy.html"/>
<link rel="next" title="pyctbn.legacy.utility package" href="pyctbn.legacy.utility.html"/>
<link rel="prev" title="pyctbn.legacy.optimizers package" href="pyctbn.legacy.optimizers.html"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="public" />
@ -63,9 +63,9 @@
<p><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul class="current">
<li class="toctree-l2 current"><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>
<li class="toctree-l1 current"><a class="reference internal" href="pyctbn.legacy.html">pyctbn.legacy package</a><ul class="current">
<li class="toctree-l2 current"><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>
@ -116,15 +116,15 @@
<div id="content" class="hfeed entry-container hentry">
<section id="pyctbn-pyctbn-structure-graph-package">
<h1>PyCTBN.PyCTBN.structure_graph package<a class="headerlink" href="#pyctbn-pyctbn-structure-graph-package" title="Permalink to this headline"></a></h1>
<h1>pyctbn.legacy.structure_graph package<a class="headerlink" href="#pyctbn-pyctbn-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.PyCTBN.structure_graph.conditional_intensity_matrix">
<span id="pyctbn-pyctbn-structure-graph-conditional-intensity-matrix-module"></span><h2>PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph.conditional_intensity_matrix">
<span id="pyctbn-pyctbn-structure-graph-conditional-intensity-matrix-module"></span><h2>pyctbn.legacy.structure_graph.conditional_intensity_matrix module<a class="headerlink" href="#module-pyctbn.legacy.structure_graph.conditional_intensity_matrix" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.</code><code class="sig-name descname">ConditionalIntensityMatrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">state_residence_times</span><span class="p">:</span> <span class="n">numpy.array</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">state_transition_matrix</span><span class="p">:</span> <span class="n">numpy.array</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n">numpy.array</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.structure_graph.conditional_intensity_matrix.</code><code class="sig-name descname">ConditionalIntensityMatrix</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">state_residence_times</span><span class="p">:</span> <span class="n">numpy.array</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">state_transition_matrix</span><span class="p">:</span> <span class="n">numpy.array</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">cim</span><span class="p">:</span> <span class="n">numpy.array</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Abstracts the Conditional Intesity matrix of a node as aggregation of the state residence times vector
and state transition matrix and the actual CIM matrix.</p>
@ -140,35 +140,35 @@ and state transition matrix and the actual CIM matrix.</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim">
<em class="property">property </em><code class="sig-name descname">cim</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim">
<em class="property">property </em><code class="sig-name descname">cim</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.cim" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients">
<code class="sig-name descname">compute_cim_coefficients</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients">
<code class="sig-name descname">compute_cim_coefficients</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.compute_cim_coefficients" title="Permalink to this definition"></a></dt>
<dd><p>Compute the coefficients of the matrix _cim by using the following equality q_xx’ = M[x, x’] / T[x].
The class member <code class="docutils literal notranslate"><span class="pre">_cim</span></code> will contain the computed cim</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times">
<em class="property">property </em><code class="sig-name descname">state_residence_times</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times">
<em class="property">property </em><code class="sig-name descname">state_residence_times</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_residence_times" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix">
<em class="property">property </em><code class="sig-name descname">state_transition_matrix</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix">
<em class="property">property </em><code class="sig-name descname">state_transition_matrix</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.conditional_intensity_matrix.ConditionalIntensityMatrix.state_transition_matrix" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.structure_graph.network_generator">
<span id="pyctbn-pyctbn-structure-graph-network-generator-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_generator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.network_generator" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph.network_generator">
<span id="pyctbn-pyctbn-structure-graph-network-generator-module"></span><h2>pyctbn.legacy.structure_graph.network_generator module<a class="headerlink" href="#module-pyctbn.legacy.structure_graph.network_generator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.network_generator.</code><code class="sig-name descname">NetworkGenerator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">labels</span></em>, <em class="sig-param"><span class="n">vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_generator.NetworkGenerator">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.structure_graph.network_generator.</code><code class="sig-name descname">NetworkGenerator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">labels</span></em>, <em class="sig-param"><span class="n">vals</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_generator.NetworkGenerator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Provides the methods to generate a network graph and the CIMs related to it
Items in _labels, _vals and _indxs are related, and therefore respect the same order</p>
@ -179,23 +179,23 @@ Items in _labels, _vals and _indxs are related, and therefore respect the same o
<li><p><strong>_vals</strong> (<em>List</em>) – List of cardinalities of the variables in network (defined in the same order as _labels)</p></li>
<li><p><strong>_indxs</strong> (<em>List</em>) – List of the nodes indexes</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>_graph</strong> (<a class="reference internal" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph"><em>NetworkGraph</em></a>) – The NetworkGraph object representing the generated structure</p></li>
<li><p><strong>_graph</strong> (<a class="reference internal" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph" title="pyctbn.legacy.structure_graph.network_graph.NetworkGraph"><em>NetworkGraph</em></a>) – The NetworkGraph object representing the generated structure</p></li>
</ul>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.cims">
<em class="property">property </em><code class="sig-name descname">cims</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.cims" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.cims">
<em class="property">property </em><code class="sig-name descname">cims</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.dyn_str">
<em class="property">property </em><code class="sig-name descname">dyn_str</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.dyn_str" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.dyn_str">
<em class="property">property </em><code class="sig-name descname">dyn_str</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.dyn_str" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_cims">
<code class="sig-name descname">generate_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">min_val</span></em>, <em class="sig-param"><span class="n">max_val</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_cims" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.generate_cims">
<code class="sig-name descname">generate_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">min_val</span></em>, <em class="sig-param"><span class="n">max_val</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.generate_cims" title="Permalink to this definition"></a></dt>
<dd><dl class="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>
@ -212,8 +212,8 @@ This method must obviously be executed after the graph has been generated.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_graph">
<code class="sig-name descname">generate_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">density</span></em>, <em class="sig-param"><span class="n">fixed</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.generate_graph" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.generate_graph">
<code class="sig-name descname">generate_graph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">density</span></em>, <em class="sig-param"><span class="n">fixed</span><span class="p">:</span> <span class="n">bool</span> <span class="o">=</span> <span class="default_value">False</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.generate_graph" title="Permalink to this definition"></a></dt>
<dd><dl class="simple">
<dt>Generate the edges according to specified density, and then instantiate the NetworkGraph object</dt><dd><p>to represent the network</p>
</dd>
@ -229,29 +229,29 @@ This method must obviously be executed after the graph has been generated.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.graph">
<em class="property">property </em><code class="sig-name descname">graph</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.graph" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.graph">
<em class="property">property </em><code class="sig-name descname">graph</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.graph" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.variables">
<em class="property">property </em><code class="sig-name descname">variables</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_generator.NetworkGenerator.variables" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.variables">
<em class="property">property </em><code class="sig-name descname">variables</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_generator.NetworkGenerator.variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.structure_graph.network_graph">
<span id="pyctbn-pyctbn-structure-graph-network-graph-module"></span><h2>PyCTBN.PyCTBN.structure_graph.network_graph module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.network_graph" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph.network_graph">
<span id="pyctbn-pyctbn-structure-graph-network-graph-module"></span><h2>pyctbn.legacy.structure_graph.network_graph module<a class="headerlink" href="#module-pyctbn.legacy.structure_graph.network_graph" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.network_graph.</code><code class="sig-name descname">NetworkGraph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph_struct</span><span class="p">:</span> <span class="n"><a class="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><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.structure_graph.network_graph.</code><code class="sig-name descname">NetworkGraph</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">graph_struct</span><span class="p">:</span> <span class="n"><a class="reference internal" href="#pyctbn.legacy.structure_graph.structure.Structure" title="pyctbn.legacy.structure_graph.structure.Structure">pyctbn.legacy.structure_graph.structure.Structure</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Abstracts the infos contained in the Structure class in the form of a directed graph.
Has the task of creating all the necessary filtering and indexing structures for parameters estimation</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>graph_struct</strong> (<a class="reference internal" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure" title="PyCTBN.PyCTBN.structure_graph.structure.Structure"><em>Structure</em></a>) – the <code class="docutils literal notranslate"><span class="pre">Structure</span></code> object from which infos about the net will be extracted</p>
<dd class="field-odd"><p><strong>graph_struct</strong> (<a class="reference internal" href="#pyctbn.legacy.structure_graph.structure.Structure" title="pyctbn.legacy.structure_graph.structure.Structure"><em>Structure</em></a>) – the <code class="docutils literal notranslate"><span class="pre">Structure</span></code> object from which infos about the net will be extracted</p>
</dd>
<dt class="field-even">_graph</dt>
<dd class="field-even"><p>directed graph</p>
@ -278,8 +278,8 @@ from one state to another</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_edges">
<code class="sig-name descname">add_edges</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_edges" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.add_edges">
<code class="sig-name descname">add_edges</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.add_edges" title="Permalink to this definition"></a></dt>
<dd><p>Add the edges to the <code class="docutils literal notranslate"><span class="pre">_graph</span></code> contained in the list <code class="docutils literal notranslate"><span class="pre">list_of_edges</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -289,8 +289,8 @@ from one state to another</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes">
<code class="sig-name descname">add_nodes</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_nodes</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.add_nodes" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.add_nodes">
<code class="sig-name descname">add_nodes</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_nodes</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.add_nodes" title="Permalink to this definition"></a></dt>
<dd><p>Adds the nodes to the <code class="docutils literal notranslate"><span class="pre">_graph</span></code> contained in the list of nodes <code class="docutils literal notranslate"><span class="pre">list_of_nodes</span></code>.
Sets all the properties that identify a nodes (index, positional index, cardinality)</p>
<dl class="field-list simple">
@ -301,8 +301,8 @@ Sets all the properties that identify a nodes (index, positional index, cardinal
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_p_comb_structure_for_a_node">
<em class="property">static </em><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><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_p_comb_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.build_p_comb_structure_for_a_node">
<em class="property">static </em><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><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#pyctbn.legacy.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
<code class="docutils literal notranslate"><span class="pre">parents_values</span></code>.</p>
<dl class="field-list simple">
@ -319,8 +319,8 @@ Sets all the properties that identify a nodes (index, positional index, cardinal
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_columns_filtering_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_time_columns_filtering_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_indxs</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_columns_filtering_for_a_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.build_time_columns_filtering_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_time_columns_filtering_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_indxs</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">node_indx</span></code> and <code class="docutils literal notranslate"><span class="pre">p_indxs</span></code>
in the dataset.
This structute will be used in the computation of the state res times.
@ -333,8 +333,8 @@ This structute will be used in the computation of the state res times.
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_scalar_indexing_structure_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_time_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_states</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parents_vals</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_time_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.build_time_scalar_indexing_structure_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_time_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_states</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parents_vals</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -353,8 +353,8 @@ This structute will be used in the computation of the state res times.
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_filtering_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_transition_filtering_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_indxs</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">nodes_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_filtering_for_a_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.build_transition_filtering_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_transition_filtering_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_indxs</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">nodes_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">node_indx</span></code> and <code class="docutils literal notranslate"><span class="pre">p_indxs</span></code>
in the dataset.
This structure will be used in the computation of the state transitions values.
@ -369,8 +369,8 @@ This structure will be used in the computation of the state transitions values.
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_scalar_indexing_structure_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_transition_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_states_number</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parents_vals</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.build_transition_scalar_indexing_structure_for_a_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.build_transition_scalar_indexing_structure_for_a_node">
<em class="property">static </em><code class="sig-name descname">build_transition_scalar_indexing_structure_for_a_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_states_number</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">parents_vals</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -389,19 +389,19 @@ This structure will be used in the computation of the state transitions values.
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.clear_indexing_filtering_structures">
<code class="sig-name descname">clear_indexing_filtering_structures</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.clear_indexing_filtering_structures" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.clear_indexing_filtering_structures">
<code class="sig-name descname">clear_indexing_filtering_structures</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges">
<em class="property">property </em><code class="sig-name descname">edges</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.edges" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.edges">
<em class="property">property </em><code class="sig-name descname">edges</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.edges" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.fast_init">
<code class="sig-name descname">fast_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.fast_init" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.fast_init">
<code class="sig-name descname">fast_init</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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
node_id</p>
<dl class="field-list simple">
@ -412,13 +412,13 @@ node_id</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_node_indx">
<code class="sig-name descname">get_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_node_indx" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.get_node_indx">
<code class="sig-name descname">get_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.get_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_ordered_by_indx_set_of_parents">
<code class="sig-name descname">get_ordered_by_indx_set_of_parents</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; Tuple<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_ordered_by_indx_set_of_parents" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.get_ordered_by_indx_set_of_parents">
<code class="sig-name descname">get_ordered_by_indx_set_of_parents</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; Tuple<a class="headerlink" href="#pyctbn.legacy.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
(parents_labels, parents_indexes, parents_cardinalities).</p>
<dl class="field-list simple">
@ -435,8 +435,8 @@ node_id</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_parents_by_id">
<code class="sig-name descname">get_parents_by_id</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_parents_by_id" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.get_parents_by_id">
<code class="sig-name descname">get_parents_by_id</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">node_id</span></code></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -452,18 +452,18 @@ node_id</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_positional_node_indx">
<code class="sig-name descname">get_positional_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_positional_node_indx" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.get_positional_node_indx">
<code class="sig-name descname">get_positional_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.get_positional_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_states_number">
<code class="sig-name descname">get_states_number</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.get_states_number" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.get_states_number">
<code class="sig-name descname">get_states_number</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.get_states_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.has_edge">
<code class="sig-name descname">has_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.has_edge" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.has_edge">
<code class="sig-name descname">has_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="simple">
<dt>Parameters:</dt><dd><p>edge: a tuple that rappresents the edge</p>
@ -474,28 +474,28 @@ node_id</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes">
<em class="property">property </em><code class="sig-name descname">nodes</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.nodes">
<em class="property">property </em><code class="sig-name descname">nodes</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.nodes" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes">
<em class="property">property </em><code class="sig-name descname">nodes_indexes</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_indexes" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.nodes_indexes">
<em class="property">property </em><code class="sig-name descname">nodes_indexes</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.nodes_indexes" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values">
<em class="property">property </em><code class="sig-name descname">nodes_values</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.nodes_values" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.nodes_values">
<em class="property">property </em><code class="sig-name descname">nodes_values</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.nodes_values" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs">
<em class="property">property </em><code class="sig-name descname">p_combs</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.p_combs" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.p_combs">
<em class="property">property </em><code class="sig-name descname">p_combs</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.p_combs" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_edges">
<code class="sig-name descname">remove_edges</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_edges" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.remove_edges">
<code class="sig-name descname">remove_edges</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_edges</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -505,47 +505,47 @@ node_id</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_node">
<code class="sig-name descname">remove_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.remove_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.remove_node">
<code class="sig-name descname">remove_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.remove_node" title="Permalink to this definition"></a></dt>
<dd><p>Remove the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code> from all the class members.
Initialize all the filtering/indexing structures.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering">
<em class="property">property </em><code class="sig-name descname">time_filtering</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_filtering" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.time_filtering">
<em class="property">property </em><code class="sig-name descname">time_filtering</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.time_filtering" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure">
<em class="property">property </em><code class="sig-name descname">time_scalar_indexing_strucure</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure">
<em class="property">property </em><code class="sig-name descname">time_scalar_indexing_strucure</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.time_scalar_indexing_strucure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering">
<em class="property">property </em><code class="sig-name descname">transition_filtering</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_filtering" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.transition_filtering">
<em class="property">property </em><code class="sig-name descname">transition_filtering</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.transition_filtering" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure">
<em class="property">property </em><code class="sig-name descname">transition_scalar_indexing_structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure">
<em class="property">property </em><code class="sig-name descname">transition_scalar_indexing_structure</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.network_graph.NetworkGraph.transition_scalar_indexing_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.structure_graph.sample_path">
<span id="pyctbn-pyctbn-structure-graph-sample-path-module"></span><h2>PyCTBN.PyCTBN.structure_graph.sample_path module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.sample_path" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph.sample_path">
<span id="pyctbn-pyctbn-structure-graph-sample-path-module"></span><h2>pyctbn.legacy.structure_graph.sample_path module<a class="headerlink" href="#module-pyctbn.legacy.structure_graph.sample_path" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.sample_path.</code><code class="sig-name descname">SamplePath</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">importer</span><span class="p">:</span> <span class="n"><a class="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><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.sample_path.SamplePath">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.structure_graph.sample_path.</code><code class="sig-name descname">SamplePath</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">importer</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.utility.html#pyctbn.legacy.utility.abstract_importer.AbstractImporter" title="pyctbn.legacy.utility.abstract_importer.AbstractImporter">pyctbn.legacy.utility.abstract_importer.AbstractImporter</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.sample_path.SamplePath" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<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 <code class="docutils literal notranslate"><span class="pre">Trajectory</span></code> and <code class="docutils literal notranslate"><span class="pre">Structure</span></code> that will
contain the mentioned data.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><p><strong>importer</strong> (<a class="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>
<dd class="field-odd"><p><strong>importer</strong> (<a class="reference internal" href="pyctbn.legacy.utility.html#pyctbn.legacy.utility.abstract_importer.AbstractImporter" title="pyctbn.legacy.utility.abstract_importer.AbstractImporter"><em>AbstractImporter</em></a>) – the Importer object which contains the imported and processed data</p>
</dd>
<dt class="field-even">_trajectories</dt>
<dd class="field-even"><p>the <code class="docutils literal notranslate"><span class="pre">Trajectory</span></code> object that will contain all the concatenated trajectories</p>
@ -558,51 +558,51 @@ contain the mentioned data.</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_structure">
<code class="sig-name descname">build_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.sample_path.SamplePath.build_structure">
<code class="sig-name descname">build_structure</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.structure_graph.sample_path.SamplePath.build_structure" title="Permalink to this definition"></a></dt>
<dd><p>Builds the <code class="docutils literal notranslate"><span class="pre">Structure</span></code> object that aggregates all the infos about the net.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_trajectories">
<code class="sig-name descname">build_trajectories</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.build_trajectories" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.sample_path.SamplePath.build_trajectories">
<code class="sig-name descname">build_trajectories</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.structure_graph.sample_path.SamplePath.build_trajectories" title="Permalink to this definition"></a></dt>
<dd><p>Builds the Trajectory object that will contain all the trajectories.
Clears all the unused dataframes in <code class="docutils literal notranslate"><span class="pre">_importer</span></code> Object</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.clear_memory">
<code class="sig-name descname">clear_memory</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.clear_memory" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.sample_path.SamplePath.clear_memory">
<code class="sig-name descname">clear_memory</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.sample_path.SamplePath.clear_memory" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure">
<em class="property">property </em><code class="sig-name descname">has_prior_net_structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.has_prior_net_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.sample_path.SamplePath.has_prior_net_structure">
<em class="property">property </em><code class="sig-name descname">has_prior_net_structure</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.sample_path.SamplePath.has_prior_net_structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure">
<em class="property">property </em><code class="sig-name descname">structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.sample_path.SamplePath.structure">
<em class="property">property </em><code class="sig-name descname">structure</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.sample_path.SamplePath.structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count">
<em class="property">property </em><code class="sig-name descname">total_variables_count</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.total_variables_count" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.sample_path.SamplePath.total_variables_count">
<em class="property">property </em><code class="sig-name descname">total_variables_count</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.sample_path.SamplePath.total_variables_count" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories">
<em class="property">property </em><code class="sig-name descname">trajectories</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.sample_path.SamplePath.trajectories" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.sample_path.SamplePath.trajectories">
<em class="property">property </em><code class="sig-name descname">trajectories</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.sample_path.SamplePath.trajectories" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.structure_graph.set_of_cims">
<span id="pyctbn-pyctbn-structure-graph-set-of-cims-module"></span><h2>PyCTBN.PyCTBN.structure_graph.set_of_cims module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.set_of_cims" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph.set_of_cims">
<span id="pyctbn-pyctbn-structure-graph-set-of-cims-module"></span><h2>pyctbn.legacy.structure_graph.set_of_cims module<a class="headerlink" href="#module-pyctbn.legacy.structure_graph.set_of_cims" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.set_of_cims.</code><code class="sig-name descname">SetOfCims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">parents_states_number</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">node_states_number</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_combs</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.ndarray</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.structure_graph.set_of_cims.</code><code class="sig-name descname">SetOfCims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">parents_states_number</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">node_states_number</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">p_combs</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">cims</span><span class="p">:</span> <span class="n">numpy.ndarray</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Aggregates all the CIMS of the node identified by the label _node_id.</p>
<dl class="field-list simple">
@ -625,13 +625,13 @@ Clears all the unused dataframes in <code class="docutils literal notranslate"><
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims">
<em class="property">property </em><code class="sig-name descname">actual_cims</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.actual_cims" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.actual_cims">
<em class="property">property </em><code class="sig-name descname">actual_cims</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.actual_cims" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_cims">
<code class="sig-name descname">build_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">state_res_times</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">transition_matrices</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_cims" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.build_cims">
<code class="sig-name descname">build_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">state_res_times</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">transition_matrices</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.build_cims" title="Permalink to this definition"></a></dt>
<dd><p>Build the <code class="docutils literal notranslate"><span class="pre">ConditionalIntensityMatrix</span></code> objects given the state residence times and transitions matrices.
Compute the cim coefficients.The class member <code class="docutils literal notranslate"><span class="pre">_actual_cims</span></code> will contain the computed cims.</p>
<dl class="field-list simple">
@ -645,14 +645,14 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_times_and_transitions_structures">
<code class="sig-name descname">build_times_and_transitions_structures</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.build_times_and_transitions_structures" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.build_times_and_transitions_structures">
<code class="sig-name descname">build_times_and_transitions_structures</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask">
<code class="sig-name descname">filter_cims_with_mask</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">mask_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">comb</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.filter_cims_with_mask">
<code class="sig-name descname">filter_cims_with_mask</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">mask_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">comb</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; numpy.ndarray<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">_actual_cims</span></code> given the boolean mask <code class="docutils literal notranslate"><span class="pre">mask_arr</span></code> and the index
<code class="docutils literal notranslate"><span class="pre">comb</span></code>.</p>
<dl class="field-list simple">
@ -672,23 +672,23 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number">
<code class="sig-name descname">get_cims_number</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.get_cims_number" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.get_cims_number">
<code class="sig-name descname">get_cims_number</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.get_cims_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs">
<em class="property">property </em><code class="sig-name descname">p_combs</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.set_of_cims.SetOfCims.p_combs" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.p_combs">
<em class="property">property </em><code class="sig-name descname">p_combs</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims.p_combs" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.structure_graph.structure">
<span id="pyctbn-pyctbn-structure-graph-structure-module"></span><h2>PyCTBN.PyCTBN.structure_graph.structure module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.structure" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph.structure">
<span id="pyctbn-pyctbn-structure-graph-structure-module"></span><h2>pyctbn.legacy.structure_graph.structure module<a class="headerlink" href="#module-pyctbn.legacy.structure_graph.structure" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.structure.</code><code class="sig-name descname">Structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">nodes_labels_list</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">nodes_indexes_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">nodes_vals_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">edges_list</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">total_variables_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.structure_graph.structure.</code><code class="sig-name descname">Structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">nodes_labels_list</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">nodes_indexes_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">nodes_vals_arr</span><span class="p">:</span> <span class="n">numpy.ndarray</span></em>, <em class="sig-param"><span class="n">edges_list</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">total_variables_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Contains all the infos about the network structure(nodes labels, nodes caridinalites, edges, indexes)</p>
<dl class="field-list simple">
@ -703,28 +703,28 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge">
<code class="sig-name descname">add_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.add_edge" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.add_edge">
<code class="sig-name descname">add_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.add_edge" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges">
<code class="sig-name descname">clean_structure_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.clean_structure_edges" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.clean_structure_edges">
<code class="sig-name descname">clean_structure_edges</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.clean_structure_edges" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge">
<code class="sig-name descname">contains_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.contains_edge" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.contains_edge">
<code class="sig-name descname">contains_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span> &#x2192; bool<a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.contains_edge" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.edges">
<em class="property">property </em><code class="sig-name descname">edges</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.edges" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.edges">
<em class="property">property </em><code class="sig-name descname">edges</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.edges" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_id">
<code class="sig-name descname">get_node_id</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_id" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.get_node_id">
<code class="sig-name descname">get_node_id</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_indx</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.get_node_id" title="Permalink to this definition"></a></dt>
<dd><p>Given the <code class="docutils literal notranslate"><span class="pre">node_index</span></code> returns the node label.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -740,8 +740,8 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_indx">
<code class="sig-name descname">get_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_node_indx" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.get_node_indx">
<code class="sig-name descname">get_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.get_node_indx" title="Permalink to this definition"></a></dt>
<dd><p>Given the <code class="docutils literal notranslate"><span class="pre">node_index</span></code> returns the node label.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -757,13 +757,13 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_positional_node_indx">
<code class="sig-name descname">get_positional_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_positional_node_indx" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.get_positional_node_indx">
<code class="sig-name descname">get_positional_node_indx</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.get_positional_node_indx" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number">
<code class="sig-name descname">get_states_number</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.get_states_number" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.get_states_number">
<code class="sig-name descname">get_states_number</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; int<a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.get_states_number" title="Permalink to this definition"></a></dt>
<dd><p>Given the node label <code class="docutils literal notranslate"><span class="pre">node</span></code> returns the cardinality of the node.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -779,45 +779,45 @@ Compute the cim coefficients.The class member <code class="docutils literal notr
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes">
<em class="property">property </em><code class="sig-name descname">nodes_indexes</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_indexes" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.nodes_indexes">
<em class="property">property </em><code class="sig-name descname">nodes_indexes</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.nodes_indexes" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels">
<em class="property">property </em><code class="sig-name descname">nodes_labels</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_labels" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.nodes_labels">
<em class="property">property </em><code class="sig-name descname">nodes_labels</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.nodes_labels" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values">
<em class="property">property </em><code class="sig-name descname">nodes_values</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.nodes_values" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.nodes_values">
<em class="property">property </em><code class="sig-name descname">nodes_values</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.nodes_values" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_edge">
<code class="sig-name descname">remove_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_edge" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.remove_edge">
<code class="sig-name descname">remove_edge</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">edge</span><span class="p">:</span> <span class="n">tuple</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.remove_edge" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_node">
<code class="sig-name descname">remove_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.remove_node" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.remove_node">
<code class="sig-name descname">remove_node</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">node_id</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.remove_node" title="Permalink to this definition"></a></dt>
<dd><p>Remove the node <code class="docutils literal notranslate"><span class="pre">node_id</span></code> from all the class members.
The class member <code class="docutils literal notranslate"><span class="pre">_total_variables_number</span></code> since it refers to the total number of variables in the dataset.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number">
<em class="property">property </em><code class="sig-name descname">total_variables_number</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.structure.Structure.total_variables_number" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.structure.Structure.total_variables_number">
<em class="property">property </em><code class="sig-name descname">total_variables_number</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.structure.Structure.total_variables_number" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.structure_graph.trajectory">
<span id="pyctbn-pyctbn-structure-graph-trajectory-module"></span><h2>PyCTBN.PyCTBN.structure_graph.trajectory module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.trajectory" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph.trajectory">
<span id="pyctbn-pyctbn-structure-graph-trajectory-module"></span><h2>pyctbn.legacy.structure_graph.trajectory module<a class="headerlink" href="#module-pyctbn.legacy.structure_graph.trajectory" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.trajectory.</code><code class="sig-name descname">Trajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_columns</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">original_cols_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory.Trajectory">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.structure_graph.trajectory.</code><code class="sig-name descname">Trajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">list_of_columns</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">original_cols_number</span><span class="p">:</span> <span class="n">int</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.trajectory.Trajectory" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Abstracts the infos about a complete set of trajectories, represented as a numpy array of doubles
(the time deltas) and a numpy matrix of ints (the changes of states).</p>
@ -836,40 +836,40 @@ The class member <code class="docutils literal notranslate"><span class="pre">_t
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory">
<em class="property">property </em><code class="sig-name descname">complete_trajectory</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.complete_trajectory" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory.Trajectory.complete_trajectory">
<em class="property">property </em><code class="sig-name descname">complete_trajectory</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.trajectory.Trajectory.complete_trajectory" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size">
<code class="sig-name descname">size</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.size" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory.Trajectory.size">
<code class="sig-name descname">size</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.trajectory.Trajectory.size" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times">
<em class="property">property </em><code class="sig-name descname">times</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.times" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory.Trajectory.times">
<em class="property">property </em><code class="sig-name descname">times</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.trajectory.Trajectory.times" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory">
<em class="property">property </em><code class="sig-name descname">trajectory</code><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory.Trajectory.trajectory" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory.Trajectory.trajectory">
<em class="property">property </em><code class="sig-name descname">trajectory</code><a class="headerlink" href="#pyctbn.legacy.structure_graph.trajectory.Trajectory.trajectory" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">
<span id="pyctbn-pyctbn-structure-graph-trajectory-generator-module"></span><h2>PyCTBN.PyCTBN.structure_graph.trajectory_generator module<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph.trajectory_generator">
<span id="pyctbn-pyctbn-structure-graph-trajectory-generator-module"></span><h2>pyctbn.legacy.structure_graph.trajectory_generator module<a class="headerlink" href="#module-pyctbn.legacy.structure_graph.trajectory_generator" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.structure_graph.trajectory_generator.</code><code class="sig-name descname">TrajectoryGenerator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">importer</span><span class="p">:</span> <span class="n"><a class="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> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_str</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_cims</span><span class="p">:</span> <span class="n">dict</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory_generator.TrajectoryGenerator">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.structure_graph.trajectory_generator.</code><code class="sig-name descname">TrajectoryGenerator</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">importer</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.utility.html#pyctbn.legacy.utility.abstract_importer.AbstractImporter" title="pyctbn.legacy.utility.abstract_importer.AbstractImporter">pyctbn.legacy.utility.abstract_importer.AbstractImporter</a></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_str</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_cims</span><span class="p">:</span> <span class="n">dict</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.trajectory_generator.TrajectoryGenerator" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>Provides the methods to generate a trajectory basing on the network defined
in the importer.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>_importer</strong> (<a class="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>_importer</strong> (<a class="reference internal" href="pyctbn.legacy.utility.html#pyctbn.legacy.utility.abstract_importer.AbstractImporter" title="pyctbn.legacy.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>
@ -878,8 +878,8 @@ in the importer.</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample">
<code class="sig-name descname">CTBN_Sample</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">t_end</span><span class="o">=</span><span class="default_value">- 1</span></em>, <em class="sig-param"><span class="n">max_tr</span><span class="o">=</span><span class="default_value">- 1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample">
<code class="sig-name descname">CTBN_Sample</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">t_end</span><span class="o">=</span><span class="default_value">- 1</span></em>, <em class="sig-param"><span class="n">max_tr</span><span class="o">=</span><span class="default_value">- 1</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.structure_graph.trajectory_generator.TrajectoryGenerator.CTBN_Sample" title="Permalink to this definition"></a></dt>
<dd><dl class="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
@ -897,8 +897,8 @@ conventional last row made up of -1.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.multi_trajectory">
<code class="sig-name descname">multi_trajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">t_ends</span><span class="p">:</span> <span class="n">list</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">max_trs</span><span class="p">:</span> <span class="n">list</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.multi_trajectory" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory_generator.TrajectoryGenerator.multi_trajectory">
<code class="sig-name descname">multi_trajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">t_ends</span><span class="p">:</span> <span class="n">list</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">max_trs</span><span class="p">:</span> <span class="n">list</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
@ -912,8 +912,8 @@ t_ends, if defined, or the number of items in max_trs otherwise</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.worker">
<code class="sig-name descname">worker</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">t_end</span></em>, <em class="sig-param"><span class="n">max_tr</span></em>, <em class="sig-param"><span class="n">trajectories</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.structure_graph.trajectory_generator.TrajectoryGenerator.worker" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.structure_graph.trajectory_generator.TrajectoryGenerator.worker">
<code class="sig-name descname">worker</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">t_end</span></em>, <em class="sig-param"><span class="n">max_tr</span></em>, <em class="sig-param"><span class="n">trajectories</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -929,8 +929,8 @@ t_ends, if defined, or the number of items in max_trs otherwise</p>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.structure_graph">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.structure_graph" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.structure_graph">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyctbn.legacy.structure_graph" title="Permalink to this headline"></a></h2>
</section>
</section>
@ -940,10 +940,10 @@ t_ends, if defined, or the number of items in max_trs otherwise</p>
<div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
<a href="PyCTBN.PyCTBN.utility.html" class="btn btn-neutral float-right" title="PyCTBN.PyCTBN.utility package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="pyctbn.legacy.utility.html" class="btn btn-neutral float-right" title="pyctbn.legacy.utility package">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="PyCTBN.PyCTBN.optimizers.html" class="btn btn-neutral" title="PyCTBN.PyCTBN.optimizers package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
<a href="pyctbn.legacy.optimizers.html" class="btn btn-neutral" title="pyctbn.legacy.optimizers package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>

@ -8,7 +8,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>PyCTBN.PyCTBN.utility package &mdash; PyCTBN 2.0 documentation</title>
<title>pyctbn.legacy.utility package &mdash; PyCTBN 2.0 documentation</title>
@ -27,9 +27,9 @@
href="genindex.html"/>
<link rel="search" title="Search" href="search.html"/>
<link rel="top" title="PyCTBN 2.0 documentation" href="index.html"/>
<link rel="up" title="PyCTBN.PyCTBN package" href="PyCTBN.PyCTBN.html"/>
<link rel="up" title="pyctbn.legacy package" href="pyctbn.legacy.html"/>
<link rel="next" title="Examples" href="examples.html"/>
<link rel="prev" title="PyCTBN.PyCTBN.structure_graph package" href="PyCTBN.PyCTBN.structure_graph.html"/>
<link rel="prev" title="pyctbn.legacy.structure_graph package" href="pyctbn.legacy.structure_graph.html"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="cache-control" content="public" />
@ -63,9 +63,9 @@
<p><span class="caption-text">Contents:</span></p>
<ul class="current">
<li class="toctree-l1 current"><a class="reference internal" href="PyCTBN.PyCTBN.html">PyCTBN.PyCTBN package</a><ul class="current">
<li class="toctree-l2 current"><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>
<li class="toctree-l1 current"><a class="reference internal" href="pyctbn.legacy.html">pyctbn.legacy package</a><ul class="current">
<li class="toctree-l2 current"><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>
@ -116,15 +116,15 @@
<div id="content" class="hfeed entry-container hentry">
<section id="pyctbn-pyctbn-utility-package">
<h1>PyCTBN.PyCTBN.utility package<a class="headerlink" href="#pyctbn-pyctbn-utility-package" title="Permalink to this headline"></a></h1>
<h1>pyctbn.legacy.utility package<a class="headerlink" href="#pyctbn-pyctbn-utility-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.PyCTBN.utility.abstract_exporter">
<span id="pyctbn-pyctbn-utility-abstract-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_exporter module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.abstract_exporter" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.utility.abstract_exporter">
<span id="pyctbn-pyctbn-utility-abstract-exporter-module"></span><h2>pyctbn.legacy.utility.abstract_exporter module<a class="headerlink" href="#module-pyctbn.legacy.utility.abstract_exporter" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.abstract_exporter.</code><code class="sig-name descname">AbstractExporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_str</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_cims</span><span class="p">:</span> <span class="n">dict</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_exporter.AbstractExporter">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.utility.abstract_exporter.</code><code class="sig-name descname">AbstractExporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_str</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_cims</span><span class="p">:</span> <span class="n">dict</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.abstract_exporter.AbstractExporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Abstract class that exposes the methods to save in json format a network information
along with one or more trajectories generated basing on it</p>
@ -139,8 +139,8 @@ along with one or more trajectories generated basing on it</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.add_trajectory">
<code class="sig-name descname">add_trajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">list</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.add_trajectory" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_exporter.AbstractExporter.add_trajectory">
<code class="sig-name descname">add_trajectory</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectory</span><span class="p">:</span> <span class="n">list</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.abstract_exporter.AbstractExporter.add_trajectory" title="Permalink to this definition"></a></dt>
<dd><p>Add a new trajectory to the current list</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -150,8 +150,8 @@ along with one or more trajectories generated basing on it</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file">
<em class="property">abstract </em><code class="sig-name descname">out_file</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">filename</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter.out_file" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_exporter.AbstractExporter.out_file">
<em class="property">abstract </em><code class="sig-name descname">out_file</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">filename</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.abstract_exporter.AbstractExporter.out_file" title="Permalink to this definition"></a></dt>
<dd><dl class="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>
@ -166,11 +166,11 @@ along with one or more trajectories generated basing on it</p>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.abstract_importer">
<span id="pyctbn-pyctbn-utility-abstract-importer-module"></span><h2>PyCTBN.PyCTBN.utility.abstract_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.abstract_importer" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.utility.abstract_importer">
<span id="pyctbn-pyctbn-utility-abstract-importer-module"></span><h2>pyctbn.legacy.utility.abstract_importer module<a class="headerlink" href="#module-pyctbn.legacy.utility.abstract_importer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.abstract_importer.</code><code class="sig-name descname">AbstractImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">trajectory_list</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">prior_net_structure</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.utility.abstract_importer.</code><code class="sig-name descname">AbstractImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">trajectory_list</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">prior_net_structure</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">abc.ABC</span></code></p>
<p>Abstract class that exposes all the necessary methods to process the trajectories and the net structure.</p>
<dl class="field-list simple">
@ -201,8 +201,8 @@ See the tutorial on how to construct a correct <code class="docutils literal not
<p>See :class:<code class="docutils literal notranslate"><span class="pre">JsonImporter</span></code> for an example implementation</p>
</div>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_list_of_samples_array">
<code class="sig-name descname">build_list_of_samples_array</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">concatenated_sample</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_list_of_samples_array" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.build_list_of_samples_array">
<code class="sig-name descname">build_list_of_samples_array</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">concatenated_sample</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -219,8 +219,8 @@ and converted</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter">
<em class="property">abstract </em><code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajecory_header</span><span class="p">:</span> <span class="n">object</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.build_sorter">
<em class="property">abstract </em><code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajecory_header</span><span class="p">:</span> <span class="n">object</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dd><p>Initializes the <code class="docutils literal notranslate"><span class="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>
<dl class="field-list simple">
@ -237,14 +237,14 @@ and keeping ONLY the variables symbolic labels, cutting out the time label in th
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.clear_concatenated_frame">
<code class="sig-name descname">clear_concatenated_frame</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.clear_concatenated_frame" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.clear_concatenated_frame">
<code class="sig-name descname">clear_concatenated_frame</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames">
<code class="sig-name descname">compute_row_delta_in_all_samples_frames</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">df_samples_list</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames">
<code class="sig-name descname">compute_row_delta_in_all_samples_frames</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">df_samples_list</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter.compute_row_delta_in_all_samples_frames" title="Permalink to this definition"></a></dt>
<dd><p>Calls the method <code class="docutils literal notranslate"><span class="pre">compute_row_delta_sigle_samples_frame</span></code> on every dataframe present in the list
<code class="docutils literal notranslate"><span class="pre">df_samples_list</span></code>.
Concatenates the result in the dataframe <code class="docutils literal notranslate"><span class="pre">concatanated_samples</span></code></p>
@ -267,8 +267,8 @@ and merged trajectories</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame">
<code class="sig-name descname">compute_row_delta_sigle_samples_frame</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em>, <em class="sig-param"><span class="n">columns_header</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">shifted_cols_header</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame">
<code class="sig-name descname">compute_row_delta_sigle_samples_frame</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em>, <em class="sig-param"><span class="n">columns_header</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">shifted_cols_header</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter.compute_row_delta_sigle_samples_frame" title="Permalink to this definition"></a></dt>
<dd><p>Computes the difference between each value present in th time column.
Copies and shift by one position up all the values present in the remaining columns.</p>
<dl class="field-list simple">
@ -294,45 +294,45 @@ Header of sample_frame = [Time | Variable values]</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples">
<em class="property">property </em><code class="sig-name descname">concatenated_samples</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.concatenated_samples" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.concatenated_samples">
<em class="property">property </em><code class="sig-name descname">concatenated_samples</code><a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter.concatenated_samples" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.dataset_id">
<em class="property">abstract </em><code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; object<a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.dataset_id" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.dataset_id">
<em class="property">abstract </em><code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; object<a class="headerlink" href="#pyctbn.legacy.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
dataset</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path">
<em class="property">property </em><code class="sig-name descname">file_path</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.file_path" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.file_path">
<em class="property">property </em><code class="sig-name descname">file_path</code><a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter.file_path" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter">
<em class="property">property </em><code class="sig-name descname">sorter</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.sorter" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.sorter">
<em class="property">property </em><code class="sig-name descname">sorter</code><a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter.sorter" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure">
<em class="property">property </em><code class="sig-name descname">structure</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.structure">
<em class="property">property </em><code class="sig-name descname">structure</code><a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter.structure" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables">
<em class="property">property </em><code class="sig-name descname">variables</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter.variables" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.abstract_importer.AbstractImporter.variables">
<em class="property">property </em><code class="sig-name descname">variables</code><a class="headerlink" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter.variables" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.cache">
<span id="pyctbn-pyctbn-utility-cache-module"></span><h2>PyCTBN.PyCTBN.utility.cache module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.cache" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.utility.cache">
<span id="pyctbn-pyctbn-utility-cache-module"></span><h2>pyctbn.legacy.utility.cache module<a class="headerlink" href="#module-pyctbn.legacy.utility.cache" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.cache.</code><code class="sig-name descname">Cache</code><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.cache.Cache">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.utility.cache.</code><code class="sig-name descname">Cache</code><a class="headerlink" href="#pyctbn.legacy.utility.cache.Cache" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <code class="xref py py-class docutils literal notranslate"><span class="pre">object</span></code></p>
<p>This class acts as a cache of <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> objects for a node.</p>
<dl class="field-list simple">
@ -345,14 +345,14 @@ index is related</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.clear">
<code class="sig-name descname">clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.clear" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.cache.Cache.clear">
<code class="sig-name descname">clear</code><span class="sig-paren">(</span><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.cache.Cache.clear" title="Permalink to this definition"></a></dt>
<dd><p>Clear the contents both of <code class="docutils literal notranslate"><span class="pre">__actual_cache</span></code> and <code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.find">
<code class="sig-name descname">find</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_comb</span><span class="p">:</span> <span class="n">Set</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.find" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.cache.Cache.find">
<code class="sig-name descname">find</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_comb</span><span class="p">:</span> <span class="n">Set</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.cache.Cache.find" title="Permalink to this definition"></a></dt>
<dd><p>Tries to find in cache given the symbolic parents combination <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> the <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code>
related to that <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code>.</p>
<dl class="field-list simple">
@ -364,21 +364,21 @@ related to that <code class="docutils literal notranslate"><span class="pre">par
None otherwise.</p>
</dd>
<dt class="field-odd">Return type</dt>
<dd class="field-odd"><p><a class="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">SetOfCims</a></p>
<dd class="field-odd"><p><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims" title="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims">SetOfCims</a></p>
</dd>
</dl>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.cache.Cache.put">
<code class="sig-name descname">put</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_comb</span><span class="p">:</span> <span class="n">Set</span></em>, <em class="sig-param"><span class="n">socim</span><span class="p">:</span> <span class="n"><a class="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><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.cache.Cache.put" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.cache.Cache.put">
<code class="sig-name descname">put</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">parents_comb</span><span class="p">:</span> <span class="n">Set</span></em>, <em class="sig-param"><span class="n">socim</span><span class="p">:</span> <span class="n"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims" title="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims">pyctbn.legacy.structure_graph.set_of_cims.SetOfCims</a></span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.cache.Cache.put" title="Permalink to this definition"></a></dt>
<dd><p>Place in cache the <code class="docutils literal notranslate"><span class="pre">SetOfCims</span></code> object, and the related symbolic index <code class="docutils literal notranslate"><span class="pre">parents_comb</span></code> in
<code class="docutils literal notranslate"><span class="pre">__list_of_sets_of_parents</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
<dd class="field-odd"><ul class="simple">
<li><p><strong>parents_comb</strong> (<em>Set</em>) – the symbolic set index</p></li>
<li><p><strong>socim</strong> (<a class="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"><em>SetOfCims</em></a>) – the related SetOfCims object</p></li>
<li><p><strong>socim</strong> (<a class="reference internal" href="pyctbn.legacy.structure_graph.html#pyctbn.legacy.structure_graph.set_of_cims.SetOfCims" title="pyctbn.legacy.structure_graph.set_of_cims.SetOfCims"><em>SetOfCims</em></a>) – the related SetOfCims object</p></li>
</ul>
</dd>
</dl>
@ -387,12 +387,12 @@ None otherwise.</p>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.json_exporter">
<span id="pyctbn-pyctbn-utility-json-exporter-module"></span><h2>PyCTBN.PyCTBN.utility.json_exporter module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.json_exporter" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.utility.json_exporter">
<span id="pyctbn-pyctbn-utility-json-exporter-module"></span><h2>pyctbn.legacy.utility.json_exporter module<a class="headerlink" href="#module-pyctbn.legacy.utility.json_exporter" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.json_exporter.</code><code class="sig-name descname">JsonExporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_str</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_cims</span><span class="p">:</span> <span class="n">dict</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter" title="PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_exporter.AbstractExporter</span></code></a></p>
<dt id="pyctbn.legacy.utility.json_exporter.JsonExporter">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.utility.json_exporter.</code><code class="sig-name descname">JsonExporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_str</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">dyn_cims</span><span class="p">:</span> <span class="n">dict</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.json_exporter.JsonExporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#pyctbn.legacy.utility.abstract_exporter.AbstractExporter" title="pyctbn.legacy.utility.abstract_exporter.AbstractExporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyctbn.legacy.utility.abstract_exporter.AbstractExporter</span></code></a></p>
<p>Provides the methods to save in json format a network information
along with one or more trajectories generated basing on it</p>
<dl class="field-list simple">
@ -406,13 +406,13 @@ along with one or more trajectories generated basing on it</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json">
<code class="sig-name descname">cims_to_json</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; dict<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.cims_to_json" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_exporter.JsonExporter.cims_to_json">
<code class="sig-name descname">cims_to_json</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; dict<a class="headerlink" href="#pyctbn.legacy.utility.json_exporter.JsonExporter.cims_to_json" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file">
<code class="sig-name descname">out_file</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">filename</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_exporter.JsonExporter.out_file" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_exporter.JsonExporter.out_file">
<code class="sig-name descname">out_file</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">filename</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.json_exporter.JsonExporter.out_file" title="Permalink to this definition"></a></dt>
<dd><dl class="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>
@ -427,12 +427,12 @@ along with one or more trajectories generated basing on it</p>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.json_importer">
<span id="pyctbn-pyctbn-utility-json-importer-module"></span><h2>PyCTBN.PyCTBN.utility.json_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.json_importer" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.utility.json_importer">
<span id="pyctbn-pyctbn-utility-json-importer-module"></span><h2>pyctbn.legacy.utility.json_importer module<a class="headerlink" href="#module-pyctbn.legacy.utility.json_importer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.json_importer.</code><code class="sig-name descname">JsonImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">samples_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">variables_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">time_key</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">variables_key</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">cims_label</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></code></a></p>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.utility.json_importer.</code><code class="sig-name descname">JsonImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">file_path</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">samples_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">structure_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">variables_label</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">time_key</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">variables_key</span><span class="p">:</span> <span class="n">str</span></em>, <em class="sig-param"><span class="n">cims_label</span><span class="p">:</span> <span class="n">str</span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.json_importer.JsonImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter" title="pyctbn.legacy.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyctbn.legacy.utility.abstract_importer.AbstractImporter</span></code></a></p>
<p>Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare
the data in json extension.</p>
<dl class="field-list simple">
@ -457,27 +457,27 @@ the data in json extension.</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.build_sorter">
<code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.build_sorter">
<code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.utility.json_importer.JsonImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dd><p>Implements the abstract method build_sorter of the <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code> for this dataset.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.clear_data_frame_list">
<code class="sig-name descname">clear_data_frame_list</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.clear_data_frame_list" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.clear_data_frame_list">
<code class="sig-name descname">clear_data_frame_list</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">_df_samples_list</span></code>.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.dataset_id">
<code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; object<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.dataset_id" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.dataset_id">
<code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; object<a class="headerlink" href="#pyctbn.legacy.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
dataset</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data">
<code class="sig-name descname">import_data</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_data" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.import_data">
<code class="sig-name descname">import_data</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span> <span class="o">=</span> <span class="default_value">0</span></em><span class="sig-paren">)</span> &#x2192; None<a class="headerlink" href="#pyctbn.legacy.utility.json_importer.JsonImporter.import_data" title="Permalink to this definition"></a></dt>
<dd><p>Implements the abstract method of <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -487,8 +487,8 @@ dataset</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims">
<code class="sig-name descname">import_sampled_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cims_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; Dict<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_sampled_cims" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.import_sampled_cims">
<code class="sig-name descname">import_sampled_cims</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">cims_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; Dict<a class="headerlink" href="#pyctbn.legacy.utility.json_importer.JsonImporter.import_sampled_cims" title="Permalink to this definition"></a></dt>
<dd><p>Imports the synthetic CIMS in the dataset in a dictionary, using variables labels
as keys for the set of CIMS of a particular node.</p>
<dl class="field-list simple">
@ -509,8 +509,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_structure">
<code class="sig-name descname">import_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_structure" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.import_structure">
<code class="sig-name descname">import_structure</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">_structure_label</span></code></p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -526,8 +526,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_trajectories">
<code class="sig-name descname">import_trajectories</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_trajectories" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.import_trajectories">
<code class="sig-name descname">import_trajectories</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.utility.json_importer.JsonImporter.import_trajectories" title="Permalink to this definition"></a></dt>
<dd><p>Imports the trajectories from the list of dicts <code class="docutils literal notranslate"><span class="pre">raw_data</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -543,8 +543,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables">
<code class="sig-name descname">import_variables</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.import_variables" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.import_variables">
<code class="sig-name descname">import_variables</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#pyctbn.legacy.utility.json_importer.JsonImporter.import_variables" title="Permalink to this definition"></a></dt>
<dd><p>Imports the data in <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the key <code class="docutils literal notranslate"><span class="pre">_variables_label</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -560,8 +560,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories">
<code class="sig-name descname">normalize_trajectories</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">trajectories_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.normalize_trajectories" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.normalize_trajectories">
<code class="sig-name descname">normalize_trajectories</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">trajectories_key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.utility.json_importer.JsonImporter.normalize_trajectories" title="Permalink to this definition"></a></dt>
<dd><p>Extracts the trajectories in <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the index <code class="docutils literal notranslate"><span class="pre">index</span></code> at the key <code class="docutils literal notranslate"><span class="pre">trajectories</span> <span class="pre">key</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -581,8 +581,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.one_level_normalizing">
<code class="sig-name descname">one_level_normalizing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.one_level_normalizing" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.one_level_normalizing">
<code class="sig-name descname">one_level_normalizing</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">raw_data</span><span class="p">:</span> <span class="n">List</span></em>, <em class="sig-param"><span class="n">indx</span><span class="p">:</span> <span class="n">int</span></em>, <em class="sig-param"><span class="n">key</span><span class="p">:</span> <span class="n">str</span></em><span class="sig-paren">)</span> &#x2192; pandas.core.frame.DataFrame<a class="headerlink" href="#pyctbn.legacy.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 <code class="docutils literal notranslate"><span class="pre">raw_data</span></code> at the index <code class="docutils literal notranslate"><span class="pre">indx</span></code> at the key <code class="docutils literal notranslate"><span class="pre">key</span></code>.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters</dt>
@ -602,8 +602,8 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.json_importer.JsonImporter.read_json_file">
<code class="sig-name descname">read_json_file</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.json_importer.JsonImporter.read_json_file" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.json_importer.JsonImporter.read_json_file">
<code class="sig-name descname">read_json_file</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.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>
<dl class="field-list simple">
<dt class="field-odd">Returns</dt>
@ -618,12 +618,12 @@ as keys for the set of CIMS of a particular node.</p>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility.sample_importer">
<span id="pyctbn-pyctbn-utility-sample-importer-module"></span><h2>PyCTBN.PyCTBN.utility.sample_importer module<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility.sample_importer" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.utility.sample_importer">
<span id="pyctbn-pyctbn-utility-sample-importer-module"></span><h2>pyctbn.legacy.utility.sample_importer module<a class="headerlink" href="#module-pyctbn.legacy.utility.sample_importer" title="Permalink to this headline"></a></h2>
<dl class="py class">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter">
<em class="property">class </em><code class="sig-prename descclassname">PyCTBN.PyCTBN.utility.sample_importer.</code><code class="sig-name descname">SampleImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectory_list</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">prior_net_structure</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter" title="PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">PyCTBN.PyCTBN.utility.abstract_importer.AbstractImporter</span></code></a></p>
<dt id="pyctbn.legacy.utility.sample_importer.SampleImporter">
<em class="property">class </em><code class="sig-prename descclassname">pyctbn.legacy.utility.sample_importer.</code><code class="sig-name descname">SampleImporter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">trajectory_list</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">variables</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em>, <em class="sig-param"><span class="n">prior_net_structure</span><span class="p">:</span> <span class="n">Union<span class="p">[</span>pandas.core.frame.DataFrame<span class="p">, </span>numpy.ndarray<span class="p">, </span>List<span class="p">]</span></span> <span class="o">=</span> <span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.sample_importer.SampleImporter" title="Permalink to this definition"></a></dt>
<dd><p>Bases: <a class="reference internal" href="#pyctbn.legacy.utility.abstract_importer.AbstractImporter" title="pyctbn.legacy.utility.abstract_importer.AbstractImporter"><code class="xref py py-class docutils literal notranslate"><span class="pre">pyctbn.legacy.utility.abstract_importer.AbstractImporter</span></code></a></p>
<p>Implements the abstracts methods of AbstractImporter and adds all the necessary methods to process and prepare
the data loaded directly by using DataFrame</p>
<dl class="field-list simple">
@ -642,28 +642,28 @@ the data loaded directly by using DataFrame</p>
</dd>
</dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.build_sorter">
<code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.sample_importer.SampleImporter.build_sorter">
<code class="sig-name descname">build_sorter</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">sample_frame</span><span class="p">:</span> <span class="n">pandas.core.frame.DataFrame</span></em><span class="sig-paren">)</span> &#x2192; List<a class="headerlink" href="#pyctbn.legacy.utility.sample_importer.SampleImporter.build_sorter" title="Permalink to this definition"></a></dt>
<dd><p>Implements the abstract method build_sorter of the <code class="xref py py-class docutils literal notranslate"><span class="pre">AbstractImporter</span></code> in order to get the ordered variables list.</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.dataset_id">
<code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.dataset_id" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.sample_importer.SampleImporter.dataset_id">
<code class="sig-name descname">dataset_id</code><span class="sig-paren">(</span><span class="sig-paren">)</span> &#x2192; str<a class="headerlink" href="#pyctbn.legacy.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
dataset</p>
</dd></dl>
<dl class="py method">
<dt id="PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data">
<code class="sig-name descname">import_data</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">header_column</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#PyCTBN.PyCTBN.utility.sample_importer.SampleImporter.import_data" title="Permalink to this definition"></a></dt>
<dt id="pyctbn.legacy.utility.sample_importer.SampleImporter.import_data">
<code class="sig-name descname">import_data</code><span class="sig-paren">(</span><em class="sig-param"><span class="n">header_column</span><span class="o">=</span><span class="default_value">None</span></em><span class="sig-paren">)</span><a class="headerlink" href="#pyctbn.legacy.utility.sample_importer.SampleImporter.import_data" title="Permalink to this definition"></a></dt>
<dd></dd></dl>
</dd></dl>
</section>
<section id="module-PyCTBN.PyCTBN.utility">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-PyCTBN.PyCTBN.utility" title="Permalink to this headline"></a></h2>
<section id="module-pyctbn.legacy.utility">
<span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-pyctbn.legacy.utility" title="Permalink to this headline"></a></h2>
</section>
</section>
@ -676,7 +676,7 @@ dataset</p>
<a href="examples.html" class="btn btn-neutral float-right" title="Examples">Next <span class="fa fa-arrow-circle-right"></span></a>
<a href="PyCTBN.PyCTBN.structure_graph.html" class="btn btn-neutral" title="PyCTBN.PyCTBN.structure_graph package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
<a href="pyctbn.legacy.structure_graph.html" class="btn btn-neutral" title="pyctbn.legacy.structure_graph package"><span class="fa fa-arrow-circle-left"></span> Previous</a>
</div>

@ -60,9 +60,9 @@
<p><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>
<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>
@ -118,54 +118,54 @@
<h2>Subpackages<a class="headerlink" href="#subpackages" title="Permalink to this headline"></a></h2>
<div class="toctree-wrapper compound">
<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><ul>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html">PyCTBN.PyCTBN.estimators package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.fam_score_calculator">PyCTBN.PyCTBN.estimators.fam_score_calculator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.parameters_estimator">PyCTBN.PyCTBN.estimators.parameters_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator">PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_estimator">PyCTBN.PyCTBN.estimators.structure_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators.structure_score_based_estimator">PyCTBN.PyCTBN.estimators.structure_score_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.estimators.html#module-PyCTBN.PyCTBN.estimators">Module contents</a></li>
<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><ul>
<li class="toctree-l3"><a class="reference internal" href="pyctbn.legacy.estimators.html">pyctbn.legacy.estimators package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.estimators.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.fam_score_calculator">pyctbn.legacy.estimators.fam_score_calculator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.parameters_estimator">pyctbn.legacy.estimators.parameters_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.structure_constraint_based_estimator">pyctbn.legacy.estimators.structure_constraint_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.structure_estimator">pyctbn.legacy.estimators.structure_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators.structure_score_based_estimator">pyctbn.legacy.estimators.structure_score_based_estimator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.estimators.html#module-pyctbn.legacy.estimators">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html">PyCTBN.PyCTBN.optimizers package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.constraint_based_optimizer">PyCTBN.PyCTBN.optimizers.constraint_based_optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.hill_climbing_search">PyCTBN.PyCTBN.optimizers.hill_climbing_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.optimizer">PyCTBN.PyCTBN.optimizers.optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers.tabu_search">PyCTBN.PyCTBN.optimizers.tabu_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.optimizers.html#module-PyCTBN.PyCTBN.optimizers">Module contents</a></li>
<li class="toctree-l3"><a class="reference internal" href="pyctbn.legacy.optimizers.html">pyctbn.legacy.optimizers package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.optimizers.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers.constraint_based_optimizer">pyctbn.legacy.optimizers.constraint_based_optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers.hill_climbing_search">pyctbn.legacy.optimizers.hill_climbing_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers.optimizer">pyctbn.legacy.optimizers.optimizer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers.tabu_search">pyctbn.legacy.optimizers.tabu_search module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.optimizers.html#module-pyctbn.legacy.optimizers">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html">PyCTBN.PyCTBN.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix">PyCTBN.PyCTBN.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_generator">PyCTBN.PyCTBN.structure_graph.network_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.network_graph">PyCTBN.PyCTBN.structure_graph.network_graph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.sample_path">PyCTBN.PyCTBN.structure_graph.sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.set_of_cims">PyCTBN.PyCTBN.structure_graph.set_of_cims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.structure">PyCTBN.PyCTBN.structure_graph.structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory">PyCTBN.PyCTBN.structure_graph.trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph.trajectory_generator">PyCTBN.PyCTBN.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.structure_graph.html#module-PyCTBN.PyCTBN.structure_graph">Module contents</a></li>
<li class="toctree-l3"><a class="reference internal" href="pyctbn.legacy.structure_graph.html">pyctbn.legacy.structure_graph package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.conditional_intensity_matrix">pyctbn.legacy.structure_graph.conditional_intensity_matrix module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.network_generator">pyctbn.legacy.structure_graph.network_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.network_graph">pyctbn.legacy.structure_graph.network_graph module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.sample_path">pyctbn.legacy.structure_graph.sample_path module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.set_of_cims">pyctbn.legacy.structure_graph.set_of_cims module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.structure">pyctbn.legacy.structure_graph.structure module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.trajectory">pyctbn.legacy.structure_graph.trajectory module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph.trajectory_generator">pyctbn.legacy.structure_graph.trajectory_generator module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.structure_graph.html#module-pyctbn.legacy.structure_graph">Module contents</a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html">PyCTBN.PyCTBN.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_exporter">PyCTBN.PyCTBN.utility.abstract_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.abstract_importer">PyCTBN.PyCTBN.utility.abstract_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.cache">PyCTBN.PyCTBN.utility.cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_exporter">PyCTBN.PyCTBN.utility.json_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.json_importer">PyCTBN.PyCTBN.utility.json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility.sample_importer">PyCTBN.PyCTBN.utility.sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="PyCTBN.PyCTBN.utility.html#module-PyCTBN.PyCTBN.utility">Module contents</a></li>
<li class="toctree-l3"><a class="reference internal" href="pyctbn.legacy.utility.html">pyctbn.legacy.utility package</a><ul>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.utility.html#submodules">Submodules</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.abstract_exporter">pyctbn.legacy.utility.abstract_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.abstract_importer">pyctbn.legacy.utility.abstract_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.cache">pyctbn.legacy.utility.cache module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.json_exporter">pyctbn.legacy.utility.json_exporter module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.json_importer">pyctbn.legacy.utility.json_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility.sample_importer">pyctbn.legacy.utility.sample_importer module</a></li>
<li class="toctree-l4"><a class="reference internal" href="pyctbn.legacy.utility.html#module-pyctbn.legacy.utility">Module contents</a></li>
</ul>
</li>
</ul>
</li>
<li class="toctree-l2"><a class="reference internal" href="PyCTBN.PyCTBN.html#module-PyCTBN.PyCTBN">Module contents</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="PyCTBN.tests.html">PyCTBN.tests package</a><ul>

@ -60,9 +60,9 @@
<p><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>
<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>

@ -60,9 +60,9 @@
<p><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>
<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>

@ -60,9 +60,9 @@
<p><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>
<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>

@ -60,9 +60,9 @@
<p><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>
<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>

@ -60,9 +60,9 @@
<p><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>
<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>

@ -1,45 +1,45 @@
PyCTBN.PyCTBN.estimators package
pyctbn.legacy.estimators package
================================
Submodules
----------
PyCTBN.PyCTBN.estimators.fam\_score\_calculator module
pyctbn.legacy.estimators.fam\_score\_calculator module
------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.fam_score_calculator
.. automodule:: pyctbn.legacy.estimators.fam_score_calculator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.parameters\_estimator module
pyctbn.legacy.estimators.parameters\_estimator module
-----------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.parameters_estimator
.. automodule:: pyctbn.legacy.estimators.parameters_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_constraint\_based\_estimator module
pyctbn.legacy.estimators.structure\_constraint\_based\_estimator module
-----------------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_constraint_based_estimator
.. automodule:: pyctbn.legacy.estimators.structure_constraint_based_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_estimator module
pyctbn.legacy.estimators.structure\_estimator module
----------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_estimator
.. automodule:: pyctbn.legacy.estimators.structure_estimator
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.estimators.structure\_score\_based\_estimator module
pyctbn.legacy.estimators.structure\_score\_based\_estimator module
------------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.estimators.structure_score_based_estimator
.. automodule:: pyctbn.legacy.estimators.structure_score_based_estimator
:members:
:undoc-members:
:show-inheritance:
@ -47,7 +47,7 @@ PyCTBN.PyCTBN.estimators.structure\_score\_based\_estimator module
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.estimators
.. automodule:: pyctbn.legacy.estimators
:members:
:undoc-members:
:show-inheritance:

@ -1,37 +1,37 @@
PyCTBN.PyCTBN.optimizers package
pyctbn.legacy.optimizers package
================================
Submodules
----------
PyCTBN.PyCTBN.optimizers.constraint\_based\_optimizer module
pyctbn.legacy.optimizers.constraint\_based\_optimizer module
------------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.constraint_based_optimizer
.. automodule:: pyctbn.legacy.optimizers.constraint_based_optimizer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.hill\_climbing\_search module
pyctbn.legacy.optimizers.hill\_climbing\_search module
------------------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.hill_climbing_search
.. automodule:: pyctbn.legacy.optimizers.hill_climbing_search
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.optimizer module
pyctbn.legacy.optimizers.optimizer module
-----------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.optimizer
.. automodule:: pyctbn.legacy.optimizers.optimizer
:members:
:undoc-members:
:show-inheritance:
PyCTBN.PyCTBN.optimizers.tabu\_search module
pyctbn.legacy.optimizers.tabu\_search module
--------------------------------------------
.. automodule:: PyCTBN.PyCTBN.optimizers.tabu_search
.. automodule:: pyctbn.legacy.optimizers.tabu_search
:members:
:undoc-members:
:show-inheritance:
@ -39,7 +39,7 @@ PyCTBN.PyCTBN.optimizers.tabu\_search module
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN.optimizers
.. automodule:: pyctbn.legacy.optimizers
:members:
:undoc-members:
:show-inheritance:

@ -1,4 +1,4 @@
PyCTBN.PyCTBN package
pyctbn.legacy package
=====================
Subpackages
@ -7,15 +7,15 @@ Subpackages
.. toctree::
:maxdepth: 4
PyCTBN.PyCTBN.estimators
PyCTBN.PyCTBN.optimizers
PyCTBN.PyCTBN.structure_graph
PyCTBN.PyCTBN.utility
pyctbn.legacy.estimators
pyctbn.legacy.optimizers
pyctbn.legacy.structure_graph
pyctbn.legacy.utility
Module contents
---------------
.. automodule:: PyCTBN.PyCTBN
.. automodule:: pyctbn.legacy
:members:
:undoc-members:
:show-inheritance:

Some files were not shown because too many files have changed in this diff Show More