compiled-knowledge 4.0.0a17__tar.gz → 4.0.0a19__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.
- compiled_knowledge-4.0.0a19/MANIFEST.in +1 -0
- {compiled_knowledge-4.0.0a17/src/compiled_knowledge.egg-info → compiled_knowledge-4.0.0a19}/PKG-INFO +1 -1
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/pyproject.toml +5 -1
- compiled_knowledge-4.0.0a19/setup.py +70 -0
- compiled_knowledge-4.0.0a19/src/ck/circuit/__init__.py +17 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit/_circuit_cy.c +11059 -11682
- compiled_knowledge-4.0.0a19/src/ck/circuit/_circuit_cy.pxd +32 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit/_circuit_cy.pyx +157 -182
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit/_circuit_py.py +2 -2
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/cython_vm_compiler/_compiler.c +5685 -2913
- compiled_knowledge-4.0.0a19/src/ck/circuit_compiler/cython_vm_compiler/_compiler.pyx +380 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/cython_vm_compiler/cython_vm_compiler.py +29 -4
- compiled_knowledge-4.0.0a19/src/ck/circuit_compiler/support/circuit_analyser/__init__.py +13 -0
- compiled_knowledge-4.0.0a19/src/ck/circuit_compiler/support/circuit_analyser/_circuit_analyser_cy.c +10442 -0
- compiled_knowledge-4.0.0a19/src/ck/circuit_compiler/support/circuit_analyser/_circuit_analyser_cy.pyx +98 -0
- compiled_knowledge-4.0.0a17/src/ck/circuit_compiler/support/circuit_analyser.py → compiled_knowledge-4.0.0a19/src/ck/circuit_compiler/support/circuit_analyser/_circuit_analyser_py.py +14 -2
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/ace/__init__.py +1 -1
- compiled_knowledge-4.0.0a19/src/ck/pgm_compiler/support/circuit_table/__init__.py +17 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/support/circuit_table/_circuit_table_cy.c +2301 -1987
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/support/circuit_table/_circuit_table_cy.pyx +44 -37
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/support/circuit_table/_circuit_table_py.py +76 -41
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/support/named_compiler_maker.py +12 -2
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/utils/iter_extras.py +8 -1
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/ace/demo_ace.py +5 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/utils/compare.py +5 -1
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19/src/compiled_knowledge.egg-info}/PKG-INFO +1 -1
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/compiled_knowledge.egg-info/SOURCES.txt +5 -2
- compiled_knowledge-4.0.0a17/MANIFEST.in +0 -1
- compiled_knowledge-4.0.0a17/setup.py +0 -42
- compiled_knowledge-4.0.0a17/src/ck/circuit/__init__.py +0 -13
- compiled_knowledge-4.0.0a17/src/ck/circuit_compiler/cython_vm_compiler/_compiler.pyx +0 -266
- compiled_knowledge-4.0.0a17/src/ck/pgm_compiler/support/circuit_table/__init__.py +0 -9
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/LICENSE.txt +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/README.md +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/setup.cfg +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit/tmp_const.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/circuit_compiler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/cython_vm_compiler/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/interpret_compiler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/llvm_compiler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/llvm_vm_compiler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/named_circuit_compilers.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/support/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/support/input_vars.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/circuit_compiler/support/llvm_ir_function.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/alarm.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/asia.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/binary_clique.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/bow_tie.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/cancer.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/chain.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/child.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/clique.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/cnf_pgm.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/diamond_square.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/earthquake.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/empty.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/hailfinder.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/hepar2.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/insurance.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/loop.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/mildew.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/munin.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/pathfinder.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/rain.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/rectangle.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/run.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/sachs.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/sprinkler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/star.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/stress.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/student.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/survey.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/triangle_square.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/example/truss.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/parse_ace_lmap.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/parse_ace_nnf.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/parse_net.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/parser_utils.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/pgm_pickle.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/pgm_python.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/render_bugs.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/render_net.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/in_out/render_pomegranate.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/marginals_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/mpe_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/pgm_circuit.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/program_with_slotmap.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/slot_map.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/support/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/support/compile_circuit.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/target_marginals_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_circuit/wmc_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/ace/ace.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/factor_elimination.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/named_pgm_compilers.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/pgm_compiler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/recursive_conditioning.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/support/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/support/clusters.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/support/factor_tables.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/support/join_tree.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/pgm_compiler/variable_elimination.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/probability/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/probability/empirical_probability_space.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/probability/pgm_probability_space.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/probability/probability_space.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/program/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/program/program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/program/program_buffer.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/program/raw_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/forward_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/marginals_direct_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/sampler_support.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/uniform_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/wmc_direct_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/wmc_gibbs_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/wmc_metropolis_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/sampling/wmc_rejection_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/utils/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/utils/local_config.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/utils/map_list.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/utils/map_set.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/utils/np_extras.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/utils/random_extras.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck/utils/tmp_dir.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/ace/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/ace/copy_ace_to_ck.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/all_demos.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/circuit/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/circuit/demo_circuit_dump.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/circuit/demo_derivatives.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/circuit_compiler/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/circuit_compiler/compare_circuit_compilers.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/circuit_compiler/show_llvm_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm/demo_pgm_dump.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm/demo_pgm_dump_stress.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm/demo_pgm_string_rendering.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm/show_examples.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/compare_pgm_compilers.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_compiler_dump.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_factor_elimination.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_join_tree.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_marginals_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_mpe_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_pgm_compiler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_recursive_conditioning.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_variable_elimination.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/demo_wmc_program.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_compiler/time_fe_compiler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_inference/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_inference/demo_inferencing_basic.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_inference/demo_inferencing_mpe_cancer.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_inference/demo_inferencing_wmc_and_mpe_sprinkler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/pgm_inference/demo_inferencing_wmc_student.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/programs/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/programs/demo_program_buffer.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/programs/demo_program_multi.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/programs/demo_program_none.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/programs/demo_program_single.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/programs/demo_raw_program_interpreted.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/programs/demo_raw_program_llvm.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/sampling/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/sampling/check_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/sampling/demo_marginal_direct_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/sampling/demo_uniform_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/sampling/demo_wmc_direct_sampler.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/utils/__init__.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/utils/convert_network.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/utils/sample_model.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/ck_demos/utils/stop_watch.py +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/compiled_knowledge.egg-info/dependency_links.txt +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/compiled_knowledge.egg-info/requires.txt +0 -0
- {compiled_knowledge-4.0.0a17 → compiled_knowledge-4.0.0a19}/src/compiled_knowledge.egg-info/top_level.txt +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
global-include *.pyx *.pxd
|
{compiled_knowledge-4.0.0a17/src/compiled_knowledge.egg-info → compiled_knowledge-4.0.0a19}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: compiled-knowledge
|
|
3
|
-
Version: 4.0.
|
|
3
|
+
Version: 4.0.0a19
|
|
4
4
|
Summary: A Python package for compiling and querying discrete probabilistic graphical models.
|
|
5
5
|
Author-email: Barry Drake <barry@compiledknowledge.org>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[project]
|
|
2
2
|
name = "compiled-knowledge"
|
|
3
|
-
version = "4.0.
|
|
3
|
+
version = "4.0.0a19"
|
|
4
4
|
description = "A Python package for compiling and querying discrete probabilistic graphical models."
|
|
5
5
|
readme = "README.md"
|
|
6
6
|
license = "MIT"
|
|
@@ -18,6 +18,10 @@ classifiers = [
|
|
|
18
18
|
"Operating System :: OS Independent",
|
|
19
19
|
]
|
|
20
20
|
|
|
21
|
+
[doc_extra]
|
|
22
|
+
version_note = "This is a prerelease version made available for community feedback. Features and API may change."
|
|
23
|
+
|
|
24
|
+
|
|
21
25
|
[project.urls]
|
|
22
26
|
Homepage = "https://github.com/ropeless/compiled_knowledge"
|
|
23
27
|
Issues = "https://github.com/ropeless/compiled_knowledge/issues"
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# setup.py
|
|
2
|
+
#
|
|
3
|
+
# Usage:
|
|
4
|
+
# python setup.py build_ext --inplace
|
|
5
|
+
# python setup.py sdist bdist_wheel
|
|
6
|
+
import sys
|
|
7
|
+
from pathlib import Path
|
|
8
|
+
from typing import List, Tuple
|
|
9
|
+
|
|
10
|
+
import numpy as np
|
|
11
|
+
from Cython.Build import cythonize
|
|
12
|
+
from setuptools import Extension
|
|
13
|
+
from setuptools import setup
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
MODULE_CIRCUIT: str = 'ck.circuit._circuit_cy'
|
|
17
|
+
MODULE_CIRCUIT_TABLE: str = 'ck.pgm_compiler.support.circuit_table._circuit_table_cy'
|
|
18
|
+
MODULE_CIRCUIT_ANALYSER: str = 'ck.circuit_compiler.support.circuit_analyser._circuit_analyser_cy'
|
|
19
|
+
MODULE_CIRCUIT_COMPILER: str = 'ck.circuit_compiler.cython_vm_compiler._compiler'
|
|
20
|
+
|
|
21
|
+
CYTHON_MODULES: List[str] = [MODULE_CIRCUIT, MODULE_CIRCUIT_TABLE, MODULE_CIRCUIT_COMPILER]
|
|
22
|
+
|
|
23
|
+
COMPILER_ARGS: List[str] = []
|
|
24
|
+
if sys.platform == 'darwin':
|
|
25
|
+
COMPILER_ARGS += ['-Wno-unreachable-code', '-Wno-unused-function', '-O3']
|
|
26
|
+
if sys.platform == 'win32':
|
|
27
|
+
COMPILER_ARGS += ['/O2']
|
|
28
|
+
|
|
29
|
+
DEFINE_MACROS: List[Tuple[str, str]] = [('NPY_NO_DEPRECATED_API', '1')]
|
|
30
|
+
|
|
31
|
+
INCLUDE_CK: str = str(Path('src').absolute())
|
|
32
|
+
INCLUDE_NP: str = np.get_include()
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def pyx(module: str) -> str:
|
|
36
|
+
return 'src/' + module.replace('.', '/') + '.pyx'
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
CYTHON_EXTENSIONS: List[Extension] = [
|
|
40
|
+
Extension(
|
|
41
|
+
MODULE_CIRCUIT,
|
|
42
|
+
[pyx(MODULE_CIRCUIT)],
|
|
43
|
+
include_dirs=[INCLUDE_NP],
|
|
44
|
+
define_macros=DEFINE_MACROS,
|
|
45
|
+
extra_compile_args=COMPILER_ARGS,
|
|
46
|
+
),
|
|
47
|
+
Extension(
|
|
48
|
+
MODULE_CIRCUIT_TABLE,
|
|
49
|
+
[pyx(MODULE_CIRCUIT_TABLE)],
|
|
50
|
+
include_dirs=[INCLUDE_NP],
|
|
51
|
+
define_macros=DEFINE_MACROS,
|
|
52
|
+
extra_compile_args=COMPILER_ARGS,
|
|
53
|
+
),
|
|
54
|
+
Extension(
|
|
55
|
+
MODULE_CIRCUIT_ANALYSER,
|
|
56
|
+
[pyx(MODULE_CIRCUIT_ANALYSER)],
|
|
57
|
+
include_dirs=[INCLUDE_NP],
|
|
58
|
+
define_macros=DEFINE_MACROS,
|
|
59
|
+
extra_compile_args=COMPILER_ARGS,
|
|
60
|
+
),
|
|
61
|
+
Extension(
|
|
62
|
+
MODULE_CIRCUIT_COMPILER,
|
|
63
|
+
[pyx(MODULE_CIRCUIT_COMPILER)],
|
|
64
|
+
include_dirs=[INCLUDE_NP],
|
|
65
|
+
define_macros=DEFINE_MACROS,
|
|
66
|
+
extra_compile_args=COMPILER_ARGS,
|
|
67
|
+
),
|
|
68
|
+
]
|
|
69
|
+
|
|
70
|
+
setup(ext_modules=cythonize(CYTHON_EXTENSIONS, include_path=[INCLUDE_CK]))
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# There are two implementations of the `circuit` module are provided
|
|
2
|
+
# for developer R&D purposes. One is pure Python and the other is Cython.
|
|
3
|
+
# Which implementation is used can be selected here.
|
|
4
|
+
|
|
5
|
+
# from ._circuit_py import (
|
|
6
|
+
from ._circuit_cy import (
|
|
7
|
+
Circuit,
|
|
8
|
+
CircuitNode,
|
|
9
|
+
VarNode,
|
|
10
|
+
ConstNode,
|
|
11
|
+
OpNode,
|
|
12
|
+
Args,
|
|
13
|
+
ConstValue,
|
|
14
|
+
MUL,
|
|
15
|
+
ADD,
|
|
16
|
+
)
|
|
17
|
+
from .tmp_const import TmpConst
|