compiled-knowledge 4.0.0a5__tar.gz → 4.0.0a7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of compiled-knowledge might be problematic. Click here for more details.

Files changed (170) hide show
  1. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/LICENSE.txt +21 -21
  2. {compiled_knowledge-4.0.0a5/src/compiled_knowledge.egg-info → compiled_knowledge-4.0.0a7}/PKG-INFO +50 -51
  3. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/README.md +33 -33
  4. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/pyproject.toml +44 -44
  5. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/setup.cfg +4 -4
  6. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/setup.py +36 -28
  7. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit/__init__.py +13 -13
  8. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit/circuit.c +38749 -38749
  9. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit/circuit_py.py +807 -807
  10. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit/tmp_const.py +74 -74
  11. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/__init__.py +2 -2
  12. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/circuit_compiler.py +26 -26
  13. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/cython_vm_compiler/__init__.py +1 -1
  14. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/cython_vm_compiler/_compiler.c +17373 -17373
  15. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/cython_vm_compiler/cython_vm_compiler.py +96 -96
  16. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/interpret_compiler.py +223 -223
  17. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/llvm_compiler.py +388 -388
  18. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/llvm_vm_compiler.py +546 -546
  19. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/named_circuit_compilers.py +57 -57
  20. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/support/circuit_analyser.py +81 -81
  21. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/support/input_vars.py +148 -148
  22. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/support/llvm_ir_function.py +234 -234
  23. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/__init__.py +53 -53
  24. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/alarm.py +366 -366
  25. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/asia.py +28 -28
  26. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/binary_clique.py +32 -32
  27. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/bow_tie.py +33 -33
  28. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/cancer.py +37 -37
  29. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/chain.py +38 -38
  30. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/child.py +199 -199
  31. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/clique.py +33 -33
  32. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/cnf_pgm.py +39 -39
  33. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/diamond_square.py +68 -68
  34. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/earthquake.py +36 -36
  35. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/empty.py +10 -10
  36. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/hailfinder.py +539 -539
  37. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/hepar2.py +628 -628
  38. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/insurance.py +504 -504
  39. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/loop.py +40 -40
  40. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/mildew.py +38161 -38161
  41. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/munin.py +22982 -22982
  42. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/pathfinder.py +53674 -53674
  43. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/rain.py +39 -39
  44. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/rectangle.py +161 -161
  45. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/run.py +30 -30
  46. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/sachs.py +129 -129
  47. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/sprinkler.py +30 -30
  48. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/star.py +44 -44
  49. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/stress.py +64 -64
  50. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/student.py +43 -43
  51. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/survey.py +46 -46
  52. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/triangle_square.py +54 -54
  53. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/example/truss.py +49 -49
  54. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/__init__.py +3 -3
  55. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/parse_ace_lmap.py +216 -216
  56. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/parse_ace_nnf.py +288 -288
  57. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/parse_net.py +480 -480
  58. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/parser_utils.py +185 -185
  59. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/pgm_pickle.py +42 -42
  60. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/pgm_python.py +268 -268
  61. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/render_bugs.py +111 -111
  62. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/render_net.py +177 -177
  63. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/in_out/render_pomegranate.py +184 -184
  64. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm.py +3494 -3494
  65. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/__init__.py +1 -1
  66. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/marginals_program.py +352 -352
  67. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/mpe_program.py +237 -237
  68. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/pgm_circuit.py +75 -75
  69. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/program_with_slotmap.py +234 -234
  70. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/slot_map.py +35 -35
  71. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/support/compile_circuit.py +83 -83
  72. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/target_marginals_program.py +103 -103
  73. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/wmc_program.py +323 -323
  74. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/__init__.py +2 -2
  75. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/ace/__init__.py +1 -1
  76. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/ace/ace.py +252 -252
  77. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/factor_elimination.py +383 -383
  78. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/named_pgm_compilers.py +63 -63
  79. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/pgm_compiler.py +19 -19
  80. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/recursive_conditioning.py +226 -226
  81. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/support/circuit_table/__init__.py +9 -9
  82. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/support/circuit_table/circuit_table.c +16042 -16042
  83. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/support/circuit_table/circuit_table_py.py +269 -269
  84. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/support/clusters.py +556 -556
  85. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/support/factor_tables.py +398 -398
  86. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/support/join_tree.py +275 -275
  87. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/support/named_compiler_maker.py +33 -33
  88. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/variable_elimination.py +89 -89
  89. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/probability/empirical_probability_space.py +47 -47
  90. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/probability/probability_space.py +568 -568
  91. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/program/__init__.py +3 -3
  92. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/program/program.py +129 -129
  93. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/program/program_buffer.py +180 -180
  94. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/program/raw_program.py +61 -61
  95. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/forward_sampler.py +211 -211
  96. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/marginals_direct_sampler.py +113 -113
  97. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/sampler.py +62 -62
  98. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/sampler_support.py +232 -232
  99. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/uniform_sampler.py +66 -66
  100. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/wmc_direct_sampler.py +169 -169
  101. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/wmc_gibbs_sampler.py +147 -147
  102. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/wmc_metropolis_sampler.py +159 -159
  103. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/wmc_rejection_sampler.py +113 -113
  104. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/utils/iter_extras.py +153 -153
  105. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/utils/map_list.py +128 -128
  106. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/utils/map_set.py +128 -128
  107. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/utils/np_extras.py +51 -51
  108. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/utils/random_extras.py +64 -64
  109. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/utils/tmp_dir.py +94 -94
  110. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/ace/copy_ace_to_ck.py +15 -15
  111. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/ace/demo_ace.py +44 -44
  112. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/all_demos.py +88 -88
  113. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/circuit/demo_circuit_dump.py +22 -22
  114. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/circuit/demo_derivatives.py +43 -43
  115. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/circuit_compiler/compare_circuit_compilers.py +32 -32
  116. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/circuit_compiler/show_llvm_program.py +26 -26
  117. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm/demo_pgm_dump.py +18 -18
  118. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm/demo_pgm_dump_stress.py +18 -18
  119. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm/demo_pgm_string_rendering.py +15 -15
  120. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm/show_examples.py +25 -25
  121. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/compare_pgm_compilers.py +50 -50
  122. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_compiler_dump.py +50 -50
  123. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_factor_elimination.py +47 -47
  124. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_join_tree.py +25 -25
  125. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_marginals_program.py +53 -53
  126. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_mpe_program.py +55 -55
  127. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_pgm_compiler.py +38 -38
  128. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_recursive_conditioning.py +33 -33
  129. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_variable_elimination.py +33 -33
  130. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/demo_wmc_program.py +29 -29
  131. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_inference/demo_inferencing_basic.py +188 -188
  132. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_inference/demo_inferencing_mpe_cancer.py +45 -45
  133. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_inference/demo_inferencing_wmc_and_mpe_sprinkler.py +154 -154
  134. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_inference/demo_inferencing_wmc_student.py +110 -110
  135. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/programs/demo_program_buffer.py +24 -24
  136. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/programs/demo_program_multi.py +24 -24
  137. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/programs/demo_program_none.py +19 -19
  138. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/programs/demo_program_single.py +23 -23
  139. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/programs/demo_raw_program_interpreted.py +21 -21
  140. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/programs/demo_raw_program_llvm.py +21 -21
  141. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/sampling/check_sampler.py +71 -71
  142. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/sampling/demo_marginal_direct_sampler.py +40 -40
  143. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/sampling/demo_uniform_sampler.py +38 -38
  144. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/sampling/demo_wmc_direct_sampler.py +40 -40
  145. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/utils/compare.py +88 -88
  146. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/utils/convert_network.py +45 -45
  147. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/utils/sample_model.py +216 -216
  148. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/utils/stop_watch.py +384 -384
  149. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7/src/compiled_knowledge.egg-info}/PKG-INFO +50 -51
  150. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/compiled_knowledge.egg-info/SOURCES.txt +0 -3
  151. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/compiled_knowledge.egg-info/requires.txt +0 -1
  152. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/__init__.py +0 -0
  153. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/circuit_compiler/support/__init__.py +0 -0
  154. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_circuit/support/__init__.py +0 -0
  155. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/pgm_compiler/support/__init__.py +0 -0
  156. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/probability/__init__.py +0 -0
  157. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/sampling/__init__.py +0 -0
  158. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck/utils/__init__.py +0 -0
  159. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/__init__.py +0 -0
  160. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/ace/__init__.py +0 -0
  161. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/circuit/__init__.py +0 -0
  162. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/circuit_compiler/__init__.py +0 -0
  163. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm/__init__.py +0 -0
  164. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_compiler/__init__.py +0 -0
  165. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/pgm_inference/__init__.py +0 -0
  166. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/programs/__init__.py +0 -0
  167. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/sampling/__init__.py +0 -0
  168. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/ck_demos/utils/__init__.py +0 -0
  169. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/compiled_knowledge.egg-info/dependency_links.txt +0 -0
  170. {compiled_knowledge-4.0.0a5 → compiled_knowledge-4.0.0a7}/src/compiled_knowledge.egg-info/top_level.txt +0 -0
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2025 Barry Drake
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Barry Drake
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1,51 +1,50 @@
1
- Metadata-Version: 2.4
2
- Name: compiled-knowledge
3
- Version: 4.0.0a5
4
- Summary: A Python package for compiling and querying discrete probabilistic graphical models.
5
- Author-email: Barry Drake <barry@compiledknowledge.org>
6
- License-Expression: MIT
7
- Project-URL: Homepage, https://github.com/ropeless/compiled_knowledge
8
- Project-URL: Issues, https://github.com/ropeless/compiled_knowledge/issues
9
- Classifier: Programming Language :: Python :: 3
10
- Classifier: Operating System :: OS Independent
11
- Requires-Python: >=3.12
12
- Description-Content-Type: text/markdown
13
- License-File: LICENSE.txt
14
- Requires-Dist: llvmlite
15
- Requires-Dist: numpy
16
- Requires-Dist: jupyter
17
- Dynamic: license-file
18
-
19
- CompiledKnowledge
20
- =================
21
-
22
- CompiledKnowledge is a Python package for compiling and querying discrete probabilistic graphical models.
23
-
24
- The aim of this repository is:
25
- - to provide a Python library for compiling and querying
26
- probabilistic graphical models, specifically discrete factor graphs
27
- - to be extremely efficient, flexible, and easy to use
28
- - to exhibit excellent design, code, and documentation
29
- - support researchers and businesses wanting to explore and use
30
- probabilistic artificial intelligence.
31
-
32
- License
33
- =======
34
-
35
- See the file `LICENSE.txt`.
36
-
37
-
38
- More Information
39
- ================
40
-
41
- For documentation see the Jupyter notebooks in the directory `docs`.
42
-
43
- For many example scripts, see the package `ck_demos`.
44
-
45
- For unit tests, see the package `ck_tests`.
46
-
47
- For information about contributing to this library, see `CONTRIBUTING.md`.
48
-
49
- The primary code repository for Compiled Knowledge is https://github.com/ropeless/compiled_knowledge.
50
-
51
- For more information email [info@compiledknowledge.org](mailto:info@compiledknowledge.org).
1
+ Metadata-Version: 2.4
2
+ Name: compiled-knowledge
3
+ Version: 4.0.0a7
4
+ Summary: A Python package for compiling and querying discrete probabilistic graphical models.
5
+ Author-email: Barry Drake <barry@compiledknowledge.org>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/ropeless/compiled_knowledge
8
+ Project-URL: Issues, https://github.com/ropeless/compiled_knowledge/issues
9
+ Classifier: Programming Language :: Python :: 3
10
+ Classifier: Operating System :: OS Independent
11
+ Requires-Python: >=3.12
12
+ Description-Content-Type: text/markdown
13
+ License-File: LICENSE.txt
14
+ Requires-Dist: llvmlite
15
+ Requires-Dist: numpy
16
+ Dynamic: license-file
17
+
18
+ CompiledKnowledge
19
+ =================
20
+
21
+ CompiledKnowledge is a Python package for compiling and querying discrete probabilistic graphical models.
22
+
23
+ The aim of this repository is:
24
+ - to provide a Python library for compiling and querying
25
+ probabilistic graphical models, specifically discrete factor graphs
26
+ - to be extremely efficient, flexible, and easy to use
27
+ - to exhibit excellent design, code, and documentation
28
+ - support researchers and businesses wanting to explore and use
29
+ probabilistic artificial intelligence.
30
+
31
+ License
32
+ =======
33
+
34
+ See the file `LICENSE.txt`.
35
+
36
+
37
+ More Information
38
+ ================
39
+
40
+ For documentation see the Jupyter notebooks in the directory `docs`.
41
+
42
+ For many example scripts, see the package `ck_demos`.
43
+
44
+ For unit tests, see the package `ck_tests`.
45
+
46
+ For information about contributing to this library, see `CONTRIBUTING.md`.
47
+
48
+ The primary code repository for Compiled Knowledge is https://github.com/ropeless/compiled_knowledge.
49
+
50
+ For more information email [info@compiledknowledge.org](mailto:info@compiledknowledge.org).
@@ -1,33 +1,33 @@
1
- CompiledKnowledge
2
- =================
3
-
4
- CompiledKnowledge is a Python package for compiling and querying discrete probabilistic graphical models.
5
-
6
- The aim of this repository is:
7
- - to provide a Python library for compiling and querying
8
- probabilistic graphical models, specifically discrete factor graphs
9
- - to be extremely efficient, flexible, and easy to use
10
- - to exhibit excellent design, code, and documentation
11
- - support researchers and businesses wanting to explore and use
12
- probabilistic artificial intelligence.
13
-
14
- License
15
- =======
16
-
17
- See the file `LICENSE.txt`.
18
-
19
-
20
- More Information
21
- ================
22
-
23
- For documentation see the Jupyter notebooks in the directory `docs`.
24
-
25
- For many example scripts, see the package `ck_demos`.
26
-
27
- For unit tests, see the package `ck_tests`.
28
-
29
- For information about contributing to this library, see `CONTRIBUTING.md`.
30
-
31
- The primary code repository for Compiled Knowledge is https://github.com/ropeless/compiled_knowledge.
32
-
33
- For more information email [info@compiledknowledge.org](mailto:info@compiledknowledge.org).
1
+ CompiledKnowledge
2
+ =================
3
+
4
+ CompiledKnowledge is a Python package for compiling and querying discrete probabilistic graphical models.
5
+
6
+ The aim of this repository is:
7
+ - to provide a Python library for compiling and querying
8
+ probabilistic graphical models, specifically discrete factor graphs
9
+ - to be extremely efficient, flexible, and easy to use
10
+ - to exhibit excellent design, code, and documentation
11
+ - support researchers and businesses wanting to explore and use
12
+ probabilistic artificial intelligence.
13
+
14
+ License
15
+ =======
16
+
17
+ See the file `LICENSE.txt`.
18
+
19
+
20
+ More Information
21
+ ================
22
+
23
+ For documentation see the Jupyter notebooks in the directory `docs`.
24
+
25
+ For many example scripts, see the package `ck_demos`.
26
+
27
+ For unit tests, see the package `ck_tests`.
28
+
29
+ For information about contributing to this library, see `CONTRIBUTING.md`.
30
+
31
+ The primary code repository for Compiled Knowledge is https://github.com/ropeless/compiled_knowledge.
32
+
33
+ For more information email [info@compiledknowledge.org](mailto:info@compiledknowledge.org).
@@ -1,44 +1,44 @@
1
- [project]
2
- name = "compiled-knowledge"
3
- version = "4.0.0a5"
4
- description = "A Python package for compiling and querying discrete probabilistic graphical models."
5
- readme = "README.md"
6
- license = "MIT"
7
- license-files = ["LICEN[CS]E*"]
8
- authors = [
9
- {name = "Barry Drake", email ="barry@compiledknowledge.org"},
10
- ]
11
- dependencies = [
12
- "llvmlite",
13
- "numpy",
14
- "jupyter", # for documentation
15
- ]
16
- requires-python = ">= 3.12"
17
- classifiers = [
18
- "Programming Language :: Python :: 3",
19
- "Operating System :: OS Independent",
20
- ]
21
-
22
- [project.urls]
23
- Homepage = "https://github.com/ropeless/compiled_knowledge"
24
- Issues = "https://github.com/ropeless/compiled_knowledge/issues"
25
-
26
- [tool.poetry]
27
- package-mode = false # only using poetry for dependency management
28
-
29
- [tool.poetry.group.dev.dependencies]
30
- cython = "^3.0.0"
31
- setuptools = "*"
32
- build = "*"
33
- jupyter-book = "*"
34
- twine = "*"
35
-
36
- [tool.poetry.group.test.dependencies]
37
- coverage = "*"
38
-
39
- [build-system]
40
- requires = ["setuptools", "cython", "numpy"]
41
- build-backend = "setuptools.build_meta"
42
-
43
- [tool.setuptools.packages.find]
44
- where = ["src"]
1
+ [project]
2
+ name = "compiled-knowledge"
3
+ version = "4.0.0a7"
4
+ description = "A Python package for compiling and querying discrete probabilistic graphical models."
5
+ readme = "README.md"
6
+ license = "MIT"
7
+ license-files = ["LICEN[CS]E*"]
8
+ authors = [
9
+ {name = "Barry Drake", email ="barry@compiledknowledge.org"},
10
+ ]
11
+ dependencies = [
12
+ "llvmlite",
13
+ "numpy",
14
+ ]
15
+ requires-python = ">= 3.12"
16
+ classifiers = [
17
+ "Programming Language :: Python :: 3",
18
+ "Operating System :: OS Independent",
19
+ ]
20
+
21
+ [project.urls]
22
+ Homepage = "https://github.com/ropeless/compiled_knowledge"
23
+ Issues = "https://github.com/ropeless/compiled_knowledge/issues"
24
+
25
+ [tool.poetry]
26
+ package-mode = false # only using poetry for dependency management
27
+
28
+ [tool.poetry.group.dev.dependencies]
29
+ cython = "^3.0.0"
30
+ jupyter = "*"
31
+ setuptools = "*"
32
+ build = "*"
33
+ jupyter-book = "*"
34
+ twine = "*"
35
+
36
+ [tool.poetry.group.test.dependencies]
37
+ coverage = "*"
38
+
39
+ [build-system]
40
+ requires = ["setuptools", "cython", "numpy"]
41
+ build-backend = "setuptools.build_meta"
42
+
43
+ [tool.setuptools.packages.find]
44
+ where = ["src"]
@@ -1,4 +1,4 @@
1
- [egg_info]
2
- tag_build =
3
- tag_date = 0
4
-
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -1,28 +1,36 @@
1
- # setup.py
2
- #
3
- # Usage:
4
- # python setup.py build_ext --inplace
5
-
6
- import numpy as np
7
- from Cython.Build import cythonize
8
- from setuptools import Extension
9
- from setuptools import setup
10
-
11
- CYTHON_MODULES = [
12
- 'ck.circuit.circuit',
13
- 'ck.pgm_compiler.support.circuit_table.circuit_table',
14
- 'ck.circuit_compiler.cython_vm_compiler._compiler'
15
- ]
16
-
17
- NP_INCLUDES = np.get_include()
18
-
19
- CYTHON_EXTENSIONS = [
20
- Extension(
21
- module,
22
- ['src/' + module.replace('.', '/') + '.pyx'],
23
- include_dirs=[NP_INCLUDES],
24
- )
25
- for module in CYTHON_MODULES
26
- ]
27
-
28
- setup(ext_modules=cythonize(CYTHON_EXTENSIONS))
1
+ # setup.py
2
+ #
3
+ # Usage:
4
+ # python setup.py build_ext --inplace
5
+
6
+ import numpy as np
7
+ from Cython.Build import cythonize
8
+ from setuptools import Extension
9
+ from setuptools import setup
10
+
11
+ CYTHON_MODULES = [
12
+ 'ck.circuit.circuit',
13
+ 'ck.pgm_compiler.support.circuit_table.circuit_table',
14
+ 'ck.circuit_compiler.cython_vm_compiler._compiler'
15
+ ]
16
+
17
+ CYTHON_SOURCE = [
18
+ 'src/' + module.replace('.', '/') + '.pyx'
19
+ for module in CYTHON_MODULES
20
+ ]
21
+
22
+ NP_INCLUDES = np.get_include()
23
+
24
+ CYTHON_EXTENSIONS = [
25
+ Extension(
26
+ module,
27
+ [cython_file],
28
+ include_dirs=[NP_INCLUDES],
29
+ define_macros=[('NPY_NO_DEPRECATED_API', 1)],
30
+ extra_compile_args=['-Wno-unreachable-code'],
31
+ include_package_data=True,
32
+ )
33
+ for module, cython_file in zip(CYTHON_MODULES, CYTHON_SOURCE)
34
+ ]
35
+
36
+ setup(ext_modules=cythonize(CYTHON_EXTENSIONS), quiet=True)
@@ -1,13 +1,13 @@
1
- # from .circuit_py import (
2
- from .circuit import (
3
- Circuit,
4
- CircuitNode,
5
- VarNode,
6
- ConstNode,
7
- OpNode,
8
- Args,
9
- ConstValue,
10
- MUL,
11
- ADD,
12
- )
13
- from .tmp_const import TmpConst
1
+ # from .circuit_py import (
2
+ from .circuit import (
3
+ Circuit,
4
+ CircuitNode,
5
+ VarNode,
6
+ ConstNode,
7
+ OpNode,
8
+ Args,
9
+ ConstValue,
10
+ MUL,
11
+ ADD,
12
+ )
13
+ from .tmp_const import TmpConst