diff --git a/testbed/pgmpy__pgmpy/.codacy.yaml b/testbed/pgmpy__pgmpy/.codacy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..f31c83f7f8e40c1e98af797dec162f542fbd4c3a --- /dev/null +++ b/testbed/pgmpy__pgmpy/.codacy.yaml @@ -0,0 +1,5 @@ +exclude_paths: + - '**.md' + - 'pgmpy/tests/**' + - 'docs/**' + - 'pgmpy/extern/**' diff --git a/testbed/pgmpy__pgmpy/.gitignore b/testbed/pgmpy__pgmpy/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..1b133ceaad5b916a876c219ddda26c43c46ff27a --- /dev/null +++ b/testbed/pgmpy__pgmpy/.gitignore @@ -0,0 +1,44 @@ +*.py[cod] +*.swp +.idea/* +# C extensions +*.so + +# Packages +*.egg +*.egg-info +dist +build +_build +eggs +parts +bin +var +sdist +develop-eggs +.installed.cfg +lib +lib64 + +# Installer logs +pip-log.txt + +# Unit test / coverage reports +.coverage +.tox +nosetests.xml + +# Translations +*.mo + +# Mr Developer +.mr.developer.cfg +.project +.pydevproject + +# Auto examples generated +docs/auto_examples/* +docs/examples/* + +# Macos files +.DS_Store diff --git a/testbed/pgmpy__pgmpy/.gitmodules b/testbed/pgmpy__pgmpy/.gitmodules new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/testbed/pgmpy__pgmpy/.pre-commit-config.yaml b/testbed/pgmpy__pgmpy/.pre-commit-config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..a4938113d47b4a3ec844633867107b2a814cc1f0 --- /dev/null +++ b/testbed/pgmpy__pgmpy/.pre-commit-config.yaml @@ -0,0 +1,16 @@ +repos: + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: v4.6.0 + hooks: + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace + - repo: https://github.com/pycqa/isort + rev: 5.13.2 + hooks: + - id: isort + args: ["--profile", "black", "--filter-files"] + - repo: https://github.com/psf/black + rev: 24.8.0 + hooks: + - id: black diff --git a/testbed/pgmpy__pgmpy/.test_durations b/testbed/pgmpy__pgmpy/.test_durations new file mode 100644 index 0000000000000000000000000000000000000000..e07eeaacc901148116f5bc2a7c4e2c02859177cd --- /dev/null +++ b/testbed/pgmpy__pgmpy/.test_durations @@ -0,0 +1,1198 @@ +{ + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_edge_nonstring": 0.0005615720001515001, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_edge_string": 0.00018027800251729786, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_edge_weight": 0.00013728699923376553, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_edges_from_nonstring": 0.00012837999747716822, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_edges_from_string": 0.00014715699944645166, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_edges_from_weight": 0.0001370879981550388, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_node_nonstring": 0.00011857799836434424, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_node_string": 0.0001264890051970724, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_node_weight": 0.00012217899711686186, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_nodes_from_non_string": 0.0001317389942414593, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_nodes_from_string": 0.0001349890007986687, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_add_nodes_from_weight": 0.000138947998493677, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_class_init_with_data_string": 0.000457974001619732, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_class_init_without_data": 0.00012456699914764613, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_get_ancestral_graph": 0.0002123869999195449, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_get_leaves": 0.00013229900287115015, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_get_roots": 0.00013743700401391834, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_init_with_cycle": 0.00028900599500047974, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_minimal_dseparator": 0.0005649409977195319, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_random_dag": 0.00737417600248591, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_to_daft": 0.12166716199863004, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_update_node_parents": 0.0001762570027494803, + "pgmpy/tests/test_base/test_DAG.py::TestDAGCreation::test_update_node_parents_bm_constructor": 0.00020247799693606794, + "pgmpy/tests/test_base/test_DAG.py::TestDAGMoralization::test_get_children": 0.00017255899729207158, + "pgmpy/tests/test_base/test_DAG.py::TestDAGMoralization::test_get_parents": 0.00012538800001493655, + "pgmpy/tests/test_base/test_DAG.py::TestDAGMoralization::test_moralize": 0.00017715699868858792, + "pgmpy/tests/test_base/test_DAG.py::TestDAGMoralization::test_moralize_disconnected": 0.00024612500055809505, + "pgmpy/tests/test_base/test_DAG.py::TestDoOperator::test_do": 0.00024649599436088465, + "pgmpy/tests/test_base/test_DAG.py::TestPDAG::test_copy": 0.0002100080018863082, + "pgmpy/tests/test_base/test_DAG.py::TestPDAG::test_init_normal": 0.0002122959995176643, + "pgmpy/tests/test_base/test_DAG.py::TestPDAG::test_pdag_to_dag": 0.00040371299837715924, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_edge_nonstring": 0.00015698900097049773, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_edge_string": 0.00014163699597702362, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_edges_from_nonstring": 0.00011891799658769742, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_edges_from_string": 0.0001343179974355735, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_node_nonstring": 0.00012687999696936458, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_node_string": 0.00011271900075371377, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_node_with_weight": 0.0001144479974755086, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_nodes_from_non_string": 0.00011193799946340732, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_nodes_from_string": 0.00011705699944286607, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_add_nodes_from_with_weight": 0.00012076799612259492, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_class_init_with_data_string": 0.00012542700278572738, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_class_init_without_data": 0.0001074779975169804, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphCreation::test_number_of_neighbors": 0.00011903800259460695, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphMethods::test_is_clique": 0.00014670699965790845, + "pgmpy/tests/test_base/test_UndirectedGraph.py::TestUndirectedGraphMethods::test_is_triangulated": 0.00038252399826887995, + "pgmpy/tests/test_estimators/test_BaseEstimator.py::TestBaseEstimator::test_missing_data": 0.004521077000390505, + "pgmpy/tests/test_estimators/test_BaseEstimator.py::TestBaseEstimator::test_state_count": 0.0030611570000473876, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimator::test_error_latent_model": 0.010791318003612105, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimator::test_estimate_cpd_dirichlet": 0.0059026379967690445, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimator::test_estimate_cpd_improper_prior": 0.0022470979965873994, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimator::test_estimate_cpd_shortcuts": 0.003423870999540668, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimator::test_get_parameters": 0.00492052199842874, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimator::test_get_parameters2": 0.004732334000436822, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimator::test_get_parameters3": 0.0046852140039845835, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimatorTorch::test_error_latent_model": 0.0011870640009874478, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimatorTorch::test_estimate_cpd_dirichlet": 0.004466328999114921, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimatorTorch::test_estimate_cpd_improper_prior": 0.002232579001429258, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimatorTorch::test_estimate_cpd_shortcuts": 0.003433401001530001, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimatorTorch::test_get_parameters": 0.004668284000217682, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimatorTorch::test_get_parameters2": 0.005196307996811811, + "pgmpy/tests/test_estimators/test_BayesianEstimator.py::TestBayesianEstimatorTorch::test_get_parameters3": 0.005537482000363525, + "pgmpy/tests/test_estimators/test_CITests.py::TestDiscreteTests::test_chisquare_adult_dataset": 0.2577823419997003, + "pgmpy/tests/test_estimators/test_CITests.py::TestDiscreteTests::test_discrete_tests": 0.28030144599688356, + "pgmpy/tests/test_estimators/test_CITests.py::TestDiscreteTests::test_exactly_same_vars": 0.011286591994576156, + "pgmpy/tests/test_estimators/test_CITests.py::TestPearsonr::test_pearsonr": 0.013518589996238006, + "pgmpy/tests/test_estimators/test_CITests.py::TestResidualMethod::test_pearsonr": 0.007486904003599193, + "pgmpy/tests/test_estimators/test_CITests.py::TestResidualMethod::test_pillai": 1.0944937969979947, + "pgmpy/tests/test_estimators/test_EM.py::TestEM::test_get_parameters": 0.8188812739936111, + "pgmpy/tests/test_estimators/test_EM.py::TestEM::test_get_parameters_initial_cpds": 0.7304075360007118, + "pgmpy/tests/test_estimators/test_EM.py::TestEMTorch::test_get_parameters": 0.6966462199998205, + "pgmpy/tests/test_estimators/test_EM.py::TestEMTorch::test_get_parameters_initial_cpds": 0.7426252139994176, + "pgmpy/tests/test_estimators/test_ExhaustiveSearch.py::TestBaseEstimator::test_all_dags": 0.03930601699539693, + "pgmpy/tests/test_estimators/test_ExhaustiveSearch.py::TestBaseEstimator::test_all_scores": 0.008712918002856895, + "pgmpy/tests/test_estimators/test_ExhaustiveSearch.py::TestBaseEstimator::test_estimate_rand": 0.010111517003679182, + "pgmpy/tests/test_estimators/test_ExhaustiveSearch.py::TestBaseEstimator::test_estimate_titanic": 0.00853769900277257, + "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_estimate": 0.13036012899829075, + "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_estimate_rand": 0.017398125000909204, + "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_estimate_titanic": 0.010997356002917513, + "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_legal_operations": 0.008724017003260087, + "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_legal_operations_blacklist_whitelist": 0.008307763000630075, + "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_legal_operations_titanic": 0.05577343599725282, + "pgmpy/tests/test_estimators/test_HillClimbSearch.py::TestHillClimbEstimator::test_no_legal_operation": 0.005037058999732835, + "pgmpy/tests/test_estimators/test_MarginalEstimator.py::TestMarginalEstimator::test_class_init": 0.0016246570048679132, + "pgmpy/tests/test_estimators/test_MarginalEstimator.py::TestMarginalEstimator::test_clique_to_marginal": 0.0005591039989667479, + "pgmpy/tests/test_estimators/test_MarginalEstimator.py::TestMarginalEstimator::test_clique_to_marginal_no_matching_cliques": 0.0005274329996609595, + "pgmpy/tests/test_estimators/test_MarginalEstimator.py::TestMarginalEstimator::test_marginal_loss": 0.0019430730026215315, + "pgmpy/tests/test_estimators/test_MarginalEstimator.py::TestMarginalEstimatorTorch::test_class_init": 0.0017763059986464214, + "pgmpy/tests/test_estimators/test_MarginalEstimator.py::TestMarginalEstimatorTorch::test_clique_to_marginal": 0.0009872569971776102, + "pgmpy/tests/test_estimators/test_MarginalEstimator.py::TestMarginalEstimatorTorch::test_clique_to_marginal_no_matching_cliques": 0.0009754249986144714, + "pgmpy/tests/test_estimators/test_MarginalEstimator.py::TestMarginalEstimatorTorch::test_marginal_loss": 0.003131418001430575, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_class_init": 0.006890473003295483, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_error_latent_model": 0.0035693989957508165, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_estimate_cpd": 0.005049247996794293, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_estimate_potentials": 0.00447974600319867, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_estimate_potentials_smoke_test": 0.005255766001937445, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_get_parameters_incomplete_data": 0.0065504180020070635, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_missing_data": 0.006694255003822036, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_nonoccurring_values": 0.006597146999411052, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_partition_function": 0.005229215999861481, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_state_names1": 0.004576946001179749, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLE::test_state_names2": 0.004923642001813278, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_class_init": 0.0070639199984725565, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_error_latent_model": 0.0037105070005054586, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_estimate_cpd": 0.005393813997216057, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_estimate_potentials": 0.004624685003363993, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_estimate_potentials_smoke_test": 0.005551440997805912, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_get_parameters_incomplete_data": 0.006963950996578205, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_missing_data": 0.00731353700030013, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_nonoccurring_values": 0.007144570001401007, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_partition_function": 0.005494384004123276, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_state_names1": 0.004771803000039654, + "pgmpy/tests/test_estimators/test_MaximumLikelihoodEstimator.py::TestMLETorch::test_state_names2": 0.005137958003615495, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimator::test_estimate_example_smoke_test": 0.02736395600004471, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimator::test_mirror_descent_estimator_l1": 0.002710620996367652, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimator::test_mirror_descent_estimator_l2": 0.002786410997941857, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimator::test_mirror_descent_warm_start": 0.004586375998769654, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimator::test_multi_clique_tree": 0.07238151299679885, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimatorTorch::test_estimate_example_smoke_test": 0.06612837200373178, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimatorTorch::test_mirror_descent_estimator_l1": 0.0043569990011746995, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimatorTorch::test_mirror_descent_estimator_l2": 0.00435159799963003, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimatorTorch::test_mirror_descent_warm_start": 0.006619746003707405, + "pgmpy/tests/test_estimators/test_MirrorDescentEstimator.py::TestMarginalEstimatorTorch::test_multi_clique_tree": 0.15356122299999697, + "pgmpy/tests/test_estimators/test_MmhcEstimator.py::TestMmhcEstimator::test_estimate": 0.42801968999992823, + "pgmpy/tests/test_estimators/test_PC.py::TestPCEstimatorFromContinuousData::test_build_dag": 5.245944288002647, + "pgmpy/tests/test_estimators/test_PC.py::TestPCEstimatorFromContinuousData::test_build_skeleton": 7.208714206000877, + "pgmpy/tests/test_estimators/test_PC.py::TestPCEstimatorFromDiscreteData::test_build_dag": 2.250766872002714, + "pgmpy/tests/test_estimators/test_PC.py::TestPCEstimatorFromDiscreteData::test_build_skeleton": 2.7755407490039943, + "pgmpy/tests/test_estimators/test_PC.py::TestPCEstimatorFromDiscreteData::test_build_skeleton_chi_square": 14.088278213999729, + "pgmpy/tests/test_estimators/test_PC.py::TestPCEstimatorFromIndependencies::test_build_skeleton_from_ind": 2.218617628001084, + "pgmpy/tests/test_estimators/test_PC.py::TestPCEstimatorFromIndependencies::test_estimate_dag": 0.0053926750042592175, + "pgmpy/tests/test_estimators/test_PC.py::TestPCEstimatorFromIndependencies::test_skeleton_to_pdag": 0.0011471930047264323, + "pgmpy/tests/test_estimators/test_PC.py::TestPCFakeCITest::test_build_skeleton_orig": 0.0015863480002735741, + "pgmpy/tests/test_estimators/test_PC.py::TestPCFakeCITest::test_build_skeleton_stable": 0.0013128130049153697, + "pgmpy/tests/test_estimators/test_PC.py::TestPCRealModels::test_pc_alarm": 221.06903660399985, + "pgmpy/tests/test_estimators/test_PC.py::TestPCRealModels::test_pc_asia": 0.6566419880000467, + "pgmpy/tests/test_estimators/test_ParameterEstimator.py::TestParameterEstimator::test_missing_data": 0.0018469639944669325, + "pgmpy/tests/test_estimators/test_ParameterEstimator.py::TestParameterEstimator::test_state_count": 0.0016804159968160093, + "pgmpy/tests/test_estimators/test_SEMEstimator.py::TestIVEstimator::test_fit": 0.03238805100045283, + "pgmpy/tests/test_estimators/test_SEMEstimator.py::TestSEMEstimator::test_custom_estimator_random_init": 0.00022562700178241357, + "pgmpy/tests/test_estimators/test_SEMEstimator.py::TestSEMEstimator::test_custom_estimator_std_init": 0.00013923800361226313, + "pgmpy/tests/test_estimators/test_SEMEstimator.py::TestSEMEstimator::test_demo_estimator_random_init": 0.00012768799933837727, + "pgmpy/tests/test_estimators/test_SEMEstimator.py::TestSEMEstimator::test_get_init_values": 0.00012134700227761641, + "pgmpy/tests/test_estimators/test_SEMEstimator.py::TestSEMEstimator::test_union_estimator_random_init": 0.0001184799984912388, + "pgmpy/tests/test_estimators/test_SEMEstimator.py::TestSEMEstimator::test_union_estimator_std_init": 0.00012687699927482754, + "pgmpy/tests/test_estimators/test_ScoreCache.py::TestScoreCache::test_caching": 0.00028552699950523674, + "pgmpy/tests/test_estimators/test_ScoreCache.py::TestScoreCache::test_remove_least_recently_used": 0.00022630799867329188, + "pgmpy/tests/test_estimators/test_ScoreCache.py::TestScoreCache::test_score_cache": 0.0007664990007469896, + "pgmpy/tests/test_estimators/test_ScoreCache.py::TestScoreCache::test_score_cache_invalid_scorer": 0.00016270900232484564, + "pgmpy/tests/test_estimators/test_ScoreCache.py::TestScoreCache::test_small_cache": 0.0002162569981010165, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestAICScore::test_score": 0.004976668995368527, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestAICScore::test_score_titanic": 0.004462646000320092, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestBDeuScore::test_score": 0.006014764992869459, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestBDeuScore::test_score_titanic": 0.005429603999800747, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestBDsScore::test_score": 0.0031236860013450496, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestBicScore::test_score": 0.0055802010028855875, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestBicScore::test_score_titanic": 0.005291715995554114, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestK2Score::test_score": 0.005584251000982476, + "pgmpy/tests/test_estimators/test_StructureScore.py::TestK2Score::test_score_titanic": 0.005383013001846848, + "pgmpy/tests/test_estimators/test_TreeSearch.py::TestTreeSearch::test_estimate_chow_liu": 0.638813850000588, + "pgmpy/tests/test_estimators/test_TreeSearch.py::TestTreeSearch::test_estimate_chow_liu_auto_root_node": 1.2856294580014946, + "pgmpy/tests/test_estimators/test_TreeSearch.py::TestTreeSearch::test_estimate_tan": 0.6643614280001202, + "pgmpy/tests/test_estimators/test_TreeSearch.py::TestTreeSearch::test_estimate_tan_auto_class_node": 1.6958427379977365, + "pgmpy/tests/test_estimators/test_TreeSearch.py::TestTreeSearchRealDataSet::test_tan": 2.1388139429982402, + "pgmpy/tests/test_estimators/test_expert.py::TestExpertInLoop::test_estimate": 0.0001349480007775128, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_class_init": 0.0011055949980800506, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_factor_dict_addition": 0.0005777520018455107, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_factor_dict_addition_scalar": 0.0005472020056913607, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_factor_dict_from_pandas_categorical": 0.0023238860012497753, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_factor_dict_from_pandas_nans": 0.0005425529961939901, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_factor_dict_from_pandas_numeric": 0.0015929279979900457, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_factor_dict_from_pandas_titanic": 0.0032736929970269557, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_factor_dict_from_pandas_wrong_column": 0.0006622210021305364, + "pgmpy/tests/test_factors/test_FactorDict.py::TestFactorDict::test_factor_dict_multiplication": 0.0005641419993480667, + "pgmpy/tests/test_factors/test_FactorSet.py::TestFactorSet::test_class_init": 0.00034029500238830224, + "pgmpy/tests/test_factors/test_FactorSet.py::TestFactorSet::test_factorset_add_remove_factors": 0.0002033259988820646, + "pgmpy/tests/test_factors/test_FactorSet.py::TestFactorSet::test_factorset_divide": 0.00044628399700741284, + "pgmpy/tests/test_factors/test_FactorSet.py::TestFactorSet::test_factorset_marginalize_inplace": 0.00035501700040185824, + "pgmpy/tests/test_factors/test_FactorSet.py::TestFactorSet::test_factorset_marginalize_not_inplace": 0.0003767650014196988, + "pgmpy/tests/test_factors/test_FactorSet.py::TestFactorSet::test_factorset_product": 0.00034515400329837576, + "pgmpy/tests/test_factors/test_continuous/test_Canonical_Factor.py::TestCanonicalFactor::test_class_init": 0.0004611930016835686, + "pgmpy/tests/test_factors/test_continuous/test_Canonical_Factor.py::TestCanonicalFactor::test_class_init_valueerror": 0.00016668700118316337, + "pgmpy/tests/test_factors/test_continuous/test_Canonical_Factor.py::TestJGDMethods::test_assignment": 0.00022743600129615515, + "pgmpy/tests/test_factors/test_continuous/test_Canonical_Factor.py::TestJGDMethods::test_copy": 0.0005321229982655495, + "pgmpy/tests/test_factors/test_continuous/test_Canonical_Factor.py::TestJGDMethods::test_marginalize": 0.0006369900002027862, + "pgmpy/tests/test_factors/test_continuous/test_Canonical_Factor.py::TestJGDMethods::test_operate": 0.00035616400055005215, + "pgmpy/tests/test_factors/test_continuous/test_Canonical_Factor.py::TestJGDMethods::test_reduce": 0.0006165330050862394, + "pgmpy/tests/test_factors/test_continuous/test_Canonical_Factor.py::TestJGDMethods::test_to_joint_gaussian": 0.00031719500111648813, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactor::test_class_init": 0.00018256800103699788, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactor::test_class_init_typeerror": 0.00015156800509430468, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactor::test_class_init_valueerror": 0.00013985799887450412, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_assignment": 0.008111714003462112, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_copy": 0.00018020700008491985, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_marginalize": 1.9519055019954976, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_marginalize_error": 0.00016894799773581326, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_normalize": 1.810621014003118, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_operate": 0.004263538998202421, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_operate_error": 0.00020838599812122993, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_reduce": 0.001515349002147559, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_reduce_error": 0.0001746380003169179, + "pgmpy/tests/test_factors/test_continuous/test_ContinuousFactor.py::TestContinuousFactorMethods::test_scope": 0.00014316700253402814, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistribution::test_class_init": 0.00015901900405879132, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistribution::test_class_init_typeerror": 0.00014900699898134917, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistribution::test_class_init_valueerror": 0.00013984000179334544, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_assignment": 0.00029923599868197925, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_copy": 0.00018264599566464312, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_marginalize": 1.959423232001427, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_marginalize_error": 0.00017501799447927624, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_normalize": 1.808089567002753, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_operate": 0.004140799999731826, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_operate_error": 0.00019270799748483114, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_reduce": 0.0014888689984218217, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_reduce_error": 0.0001580279968038667, + "pgmpy/tests/test_factors/test_continuous/test_CustomDistribution.py::TestCustomDistributionMethods::test_variables": 0.00013915700037614442, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestGDInit::test_class_init": 0.00044679299753624946, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestGDInit::test_class_init_valueerror": 0.00020079900059499778, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_assignment": 0.0005231329960224684, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_copy": 0.00032039499637903646, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_divide": 0.00014055700012249872, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_eq": 0.00013260900232126005, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_marginalize": 0.0003464340006757993, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_normalize": 0.00022701800116919912, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_precision_matrix": 0.0003154459991492331, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_product": 0.00013763799506705254, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_reduce": 0.0005341020005289465, + "pgmpy/tests/test_factors/test_continuous/test_JointGaussianDistribution.py::TestJGDMethods::test_repr": 0.0001481990002503153, + "pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_class_init": 0.0001713780002319254, + "pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_copy": 0.0001459179984522052, + "pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_maximum_likelihood_estimator": 0.01499908700134256, + "pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_pdf": 0.0001474069940741174, + "pgmpy/tests/test_factors/test_continuous/test_Linear_Gaussian_CPD.py::TestLGCPD::test_str": 0.0001895870009320788, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorInit::test_class_init": 0.0003592750035750214, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorInit::test_class_init_int_var": 0.0002033180026046466, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorInit::test_class_init_nonlist_statename": 0.0001472369986004196, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorInit::test_class_init_repeated_statename": 0.00014644799739471637, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorInit::test_class_init_sizeerror": 0.00013920899800723419, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorInit::test_class_init_statenames": 0.00019700700067915022, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorInit::test_class_init_typeerror": 0.0001368569974147249, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorInit::test_init_size_var_card_not_equal": 0.0001467100046284031, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_assignment": 0.0004216030029056128, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_assignment_indexerror": 0.00029918500149506144, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_complete_reduce": 0.00041005499952007085, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_eq": 0.0003456539998296648, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_eq1": 0.0003472839998721611, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_eq_state_names_order": 0.0002994759997818619, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_divide": 0.0003659150024759583, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_divide_invalid": 0.000312015999952564, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_divide_no_common_scope": 0.0003127060044789687, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_divide_non_factor_arg": 0.00025870699755614623, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_divide_truediv": 0.00036856399310636334, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_mul": 0.00034588700145832263, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_product": 0.00046378200204344466, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_product_non_factor_arg": 0.0002575779981270898, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_sum": 0.00041656299799797125, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_factor_sum_product": 0.6400632199984102, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_get_cardinality": 0.00031170500005828217, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_get_cardinality_scopeerror": 0.0002724150035646744, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_get_cardinality_typeerror": 0.0002533170008973684, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_get_value": 0.5533869079990836, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_hash": 0.0004304230023990385, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_identity_factor": 0.0004182439988653641, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_marginalize": 0.0005409930017776787, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_marginalize_scopeerror": 0.0002961860009236261, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_marginalize_shape": 0.0003918230031558778, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_marginalize_typeerror": 0.0002615169978525955, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_maximize_list": 0.000330205999489408, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_maximize_scopeerror": 0.0002617249956529122, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_maximize_shape": 0.0003688159958983306, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_maximize_single": 0.0004120230005355552, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_maximize_typeerror": 0.00025234699933207594, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_normalize": 0.000392885001929244, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_product": 0.00042919399493257515, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_reduce": 0.0003523439991113264, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_reduce1": 0.0003357560017320793, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_reduce_scopeerror": 0.00026689500009524636, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_reduce_shape": 0.0003640239992819261, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_reduce_sizeerror": 0.00036192599873174913, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_reduce_typeerror": 0.00026493500263313763, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_sample": 0.08341280699823983, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_scope": 0.00033906599855981767, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestFactorMethods::test_set_value": 0.5528640959964832, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionInit::test_jpd_init": 0.0002488370009814389, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionInit::test_jpd_init_exception": 0.00016625699936412275, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionMethods::test_check_independence": 0.0010740840007201768, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionMethods::test_conditional_distribution_list": 0.0003676839951367583, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionMethods::test_get_independencies": 0.001050665003276663, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionMethods::test_is_imap": 0.00043139400077052414, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionMethods::test_jpd_marginal_distribution_list": 0.00037514499854296446, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionMethods::test_marginal_distribution_str": 0.00034230700111947954, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionMethods::test_minimal_imap": 0.001908543003082741, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestJointProbabilityDistributionMethods::test_repr": 0.00023619700004928745, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDInit::test_cpd_init": 0.0009041379962582141, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDInit::test_cpd_init_cardinality_not_specified": 0.00015178700050455518, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDInit::test_cpd_init_event_card_not_int": 0.00013346000196179375, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDInit::test_cpd_init_value_not_2d": 0.00013048700202489272, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDInit::test_too_wide_cdp_table": 0.007673059997614473, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test__repr__": 0.00026929600062430836, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_copy": 0.00023694599804002792, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_copy_original_safe": 0.0002668269989953842, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_copy_state_names": 0.00018961600289912894, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_get_random": 0.0006054409968783148, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_get_values": 0.00020791600036318414, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_marginalize_1": 0.00024870600464055315, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_marginalize_2": 0.00017138700059149414, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_marginalize_3": 0.0002678679993550759, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_normalize": 0.0002265170041937381, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_normalize_not_in_place": 0.0002420069977233652, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_normalize_original_safe": 0.0002332660005777143, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reduce_1": 0.00021204800214036368, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reduce_2": 0.00021055599790997803, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reduce_3": 0.00020776600285898894, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reduce_4": 0.000162357999215601, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reduce_5": 0.00025851499958662316, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reorder_parents": 0.0002125269966199994, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reorder_parents_inplace": 0.00022375600019586273, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reorder_parents_no_effect": 0.00020936899454682134, + "pgmpy/tests/test_factors/test_discrete/test_Factor.py::TestTabularCPDMethods::test_reorder_parents_warning": 0.00022167600036482327, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorInitTorch::test_class_init": 0.0004054040000482928, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorInitTorch::test_class_init_int_var": 0.0002586269984021783, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorInitTorch::test_class_init_nonlist_statename": 0.00018260599972563796, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorInitTorch::test_class_init_repeated_statename": 0.00017421699885744601, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorInitTorch::test_class_init_sizeerror": 0.00016620799578959122, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorInitTorch::test_class_init_statenames": 0.0002464159988448955, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorInitTorch::test_class_init_typeerror": 0.00016676799714332446, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorInitTorch::test_init_size_var_card_not_equal": 0.00015663700105505995, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_assignment": 0.008904154001356801, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_assignment_indexerror": 0.000610372004302917, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_complete_reduce": 0.0005769220006186515, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_eq": 0.0005312430002959445, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_eq1": 0.0005431220015452709, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_eq_state_names_order": 0.0004777549984282814, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_divide": 0.0005741419954574667, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_divide_invalid": 0.0004732119996333495, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_divide_no_common_scope": 0.000435752997873351, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_divide_non_factor_arg": 0.00036872400232823566, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_divide_truediv": 0.0005690730031346902, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_mul": 0.0005426539973996114, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_product": 0.0007348490034928545, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_product_non_factor_arg": 0.0003932349973183591, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_sum": 0.000629791000392288, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_factor_sum_product": 0.652641100998153, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_get_cardinality": 0.0004786240024259314, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_get_cardinality_scopeerror": 0.0004129029985051602, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_get_cardinality_typeerror": 0.0003923440017388202, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_get_value": 0.5638977600028738, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_hash": 0.0007068690028972924, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_identity_factor": 0.000597001999267377, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_marginalize": 0.0008225070014304947, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_marginalize_scopeerror": 0.0004336729980423115, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_marginalize_shape": 0.0005614809997496195, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_marginalize_typeerror": 0.0003921160023310222, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_maximize_list": 0.0005196230013098102, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_maximize_scopeerror": 0.00038436400063801557, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_maximize_shape": 0.0005199229999561794, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_maximize_single": 0.0006365129993355367, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_maximize_typeerror": 0.00038546399810002185, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_normalize": 0.0005642329997499473, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_product": 0.0008304200018756092, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_reduce": 0.0005208330039749853, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_reduce1": 0.0005193220058572479, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_reduce_scopeerror": 0.0003879550022247713, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_reduce_shape": 0.0005149320022610482, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_reduce_sizeerror": 0.009364946003188379, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_reduce_typeerror": 0.00040154300222638994, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_sample": 0.08218836399828433, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_scope": 0.0004989320004824549, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestFactorMethodsTorch::test_set_value": 0.5576121680023789, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDInitTorch::test_cpd_init": 0.0015026670007500798, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDInitTorch::test_cpd_init_cardinality_not_specified": 0.0001566580031067133, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDInitTorch::test_cpd_init_event_card_not_int": 0.0001295790025324095, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDInitTorch::test_cpd_init_value_not_2d": 0.0001462680011172779, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDInitTorch::test_too_wide_cpd_table": 0.007607470997754717, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test__repr__": 0.000325714994687587, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_copy": 0.0003103649978584144, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_copy_original_safe": 0.0003564239959814586, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_copy_state_names": 0.00025281699709012173, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_get_random": 0.0007868080028856639, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_get_values": 0.00027854499785462394, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_marginalize_1": 0.00034336699900450185, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_marginalize_2": 0.00022147699564811774, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_marginalize_3": 0.00033914400410139933, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_normalize": 0.0003177460021106526, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_normalize_not_in_place": 0.00032563599961576983, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_normalize_original_safe": 0.00032904599720495753, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reduce_1": 0.0002976260038849432, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reduce_2": 0.0002817559980030637, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reduce_3": 0.0002883650013245642, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reduce_4": 0.0002080690064758528, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reduce_5": 0.0003168740004184656, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reorder_parents": 0.0002981569959956687, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reorder_parents_inplace": 0.00033489400084363297, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reorder_parents_no_effect": 0.0002853459991456475, + "pgmpy/tests/test_factors/test_discrete/test_FactorTorch.py::TestTabularCPDMethodsTorch::test_reorder_parents_warning": 0.00029354699654504657, + "pgmpy/tests/test_global_vars.py::TestConfig::test_defaults": 0.0001641080052650068, + "pgmpy/tests/test_global_vars.py::TestConfig::test_no_progress": 0.00011543899745447561, + "pgmpy/tests/test_global_vars.py::TestConfig::test_torch_cpu": 0.00011968900071224198, + "pgmpy/tests/test_global_vars.py::TestConfig::test_torch_gpu": 0.00013572699754149653, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependeciesAssertionEq::test_eq1": 0.00015165700096986257, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependeciesAssertionEq::test_eq2": 0.0001211179987876676, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependeciesAssertionEq::test_eq3": 0.00012844800221500918, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependenceAssertion::test_get_assertion": 0.00025724599981913343, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependenceAssertion::test_init": 0.00012258799688424915, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependenceAssertion::test_init_exceptions": 0.00012638900079764426, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependenceAssertion::test_return_list_if_not_collection": 0.00012032900121994317, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependencies::test_add_assertions": 0.00016021699775592424, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependencies::test_closure": 0.01728199500212213, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependencies::test_entails": 0.005405163999967044, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependencies::test_eq": 0.00015250700380420312, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependencies::test_get_all_variables": 0.0001357689980068244, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependencies::test_get_assertions": 0.00012820700067095459, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependencies::test_init": 0.0001245869971171487, + "pgmpy/tests/test_independencies/test_Independencies.py::TestIndependencies::test_is_equivalent": 0.0003849840031762142, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceBN::test_query_evidence": 1.456974586002616, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceBN::test_query_marg": 1.1017365469997458, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceBN::test_virtual_evidence": 1.763731832998019, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceBNTorch::test_query_evidence": 1.2869079870033602, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceBNTorch::test_query_marg": 1.123723182005051, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceBNTorch::test_virtual_evidence": 1.784672990001127, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceDBN::test_evidence": 0.10474665400397498, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceDBN::test_inference": 0.10294001899819705, + "pgmpy/tests/test_inference/test_ApproxInference.py::TestApproxInferenceDBN::test_virtual_evidence": 0.09006223200049135, + "pgmpy/tests/test_inference/test_CausalInference.py::TestAdjustmentSet::test_get_minimal_adjustment_set": 0.0007153010010370053, + "pgmpy/tests/test_inference/test_CausalInference.py::TestAdjustmentSet::test_is_valid_adjustment_set": 0.0003514460004225839, + "pgmpy/tests/test_inference/test_CausalInference.py::TestAdjustmentSet::test_issue_1710": 0.000274384998192545, + "pgmpy/tests/test_inference/test_CausalInference.py::TestAdjustmentSet::test_proper_backdoor_graph": 0.00022441700275521725, + "pgmpy/tests/test_inference/test_CausalInference.py::TestAdjustmentSet::test_proper_backdoor_graph_error": 0.00018598600217956118, + "pgmpy/tests/test_inference/test_CausalInference.py::TestBackdoorPaths::test_game1": 0.00019225800133426674, + "pgmpy/tests/test_inference/test_CausalInference.py::TestBackdoorPaths::test_game2": 0.0001953489991137758, + "pgmpy/tests/test_inference/test_CausalInference.py::TestBackdoorPaths::test_game3": 0.0002013769990298897, + "pgmpy/tests/test_inference/test_CausalInference.py::TestBackdoorPaths::test_game4": 0.00016109799980768003, + "pgmpy/tests/test_inference/test_CausalInference.py::TestBackdoorPaths::test_game5": 0.00029683500179089606, + "pgmpy/tests/test_inference/test_CausalInference.py::TestBackdoorPaths::test_game6": 0.0004320940024626907, + "pgmpy/tests/test_inference/test_CausalInference.py::TestCausalGraphMethods::test_backdoor_validation": 0.00040416499905404635, + "pgmpy/tests/test_inference/test_CausalInference.py::TestCausalGraphMethods::test_is_d_separated": 0.0002830279991030693, + "pgmpy/tests/test_inference/test_CausalInference.py::TestDoQuery::test_adjustment_query": 0.009869531000731513, + "pgmpy/tests/test_inference/test_CausalInference.py::TestDoQuery::test_issue_1459": 0.0016619070011074655, + "pgmpy/tests/test_inference/test_CausalInference.py::TestDoQuery::test_query": 0.01144049699723837, + "pgmpy/tests/test_inference/test_CausalInference.py::TestDoQuery::test_query_error": 0.000433304001489887, + "pgmpy/tests/test_inference/test_CausalInference.py::TestEstimator::test_create_estimator": 0.0018259940006828401, + "pgmpy/tests/test_inference/test_CausalInference.py::TestEstimator::test_estimate_fail_no_adjustment": 0.0007452899953932501, + "pgmpy/tests/test_inference/test_CausalInference.py::TestEstimator::test_estimate_frontdoor": 0.0033636110019870102, + "pgmpy/tests/test_inference/test_CausalInference.py::TestEstimator::test_estimate_multiple_paths": 0.004774251996423118, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_calibrate_clique_belief": 0.0008294070030387957, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_calibrate_sepset_belief": 0.0008836169981805142, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_issue_1048": 0.011438167999585858, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_map_query": 0.0020543799982988276, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_map_query_common_var": 0.0008506269987265114, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_map_query_with_evidence": 0.0020782809988304507, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_max_calibrate_clique_belief": 0.0007909490013844334, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_max_calibrate_sepset_belief": 0.0007819909988029394, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_query_common_var": 0.0011923739984922577, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_query_multiple_variable": 0.0020105310031794943, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_query_multiple_variable_with_evidence": 0.0019808719989669044, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_query_single_variable": 0.0019675930016092025, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagation::test_query_single_variable_with_evidence": 0.0019787339952017646, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_allows_multiple_virtual_evidence_per_variable": 0.0018836950039258227, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_error_obs_var_has_evidence": 0.0015477870001632255, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_multiple_variable": 0.0018526329986343626, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_multiple_variable_returns_each_message_once": 0.0017509739991510287, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_multiple_variable_with_evidence": 0.0016703869987395592, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_multiple_variable_with_multiple_evidence_and_virtual_evidence": 0.0018102629983332008, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_single_variable": 0.0016594270018686075, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_single_variable_can_return_all_computed_messages": 0.0016899459988053422, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_single_variable_with_evidence": 0.0016743349988246337, + "pgmpy/tests/test_inference/test_ExactInference.py::TestBeliefPropagationWithMessagePassing::test_query_single_variable_with_virtual_evidence": 0.0016629970014037099, + "pgmpy/tests/test_inference/test_ExactInference.py::TestSnowNetwork::test_elimination_order": 0.007542362993262941, + "pgmpy/tests/test_inference/test_ExactInference.py::TestSnowNetwork::test_joint_distribution": 0.0038741749995097052, + "pgmpy/tests/test_inference/test_ExactInference.py::TestSnowNetwork::test_queries": 0.0037373590021161363, + "pgmpy/tests/test_inference/test_ExactInference.py::TestSnowNetwork::test_virt_evidence": 0.13547962899974664, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_elimination_order": 0.003412461999687366, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_induced_graph": 0.0007375200002570637, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_induced_width": 0.0005579610005952418, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_map_query": 0.0023819449997972697, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_map_query_common_var": 0.0005067329984740354, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_map_query_with_evidence": 0.0012507510000432376, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_max_marginal": 0.0008751669993216638, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_max_marginal_common_var": 0.0004840340006921906, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_max_marginal_var": 0.0007979690017236862, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_max_marginal_var1": 0.0008776680042501539, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_max_marginal_var2": 0.0010353959987696726, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_query_common_var": 0.0005090230006317142, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_query_multiple_times": 0.017554132002260303, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_query_multiple_variable": 0.0029608069999085274, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_query_multiple_variable_with_evidence": 0.0033841219992609695, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_query_single_variable": 0.002517153996450361, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableElimination::test_query_single_variable_with_evidence": 0.002120199002092704, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationDuplicatedFactors::test_duplicated_factors": 0.00031886499709798954, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_induced_graph": 0.0003212570009054616, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_induced_width": 0.0002979080018121749, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_issue_1421": 0.0006152100031613372, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_map_query": 0.0003562640049494803, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_map_query_with_evidence": 0.00040762600110610947, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_max_marginal": 0.0003354840009706095, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_max_marginal_var": 0.0006631200012634508, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_max_marginal_var1": 0.0006036429986124858, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_max_marginal_var2": 0.00059600200256682, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_query_multiple_times": 0.0013197209991631098, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_query_multiple_variable": 0.0004159829986747354, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_query_multiple_variable_with_evidence": 0.00038868499905220233, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_query_single_variable": 0.0004046729955007322, + "pgmpy/tests/test_inference/test_ExactInference.py::TestVariableEliminationMarkov::test_query_single_variable_with_evidence": 0.00039942400326253846, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_calibrate_clique_belief": 0.0014251690008677542, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_calibrate_sepset_belief": 0.0013408300037554, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_issue_1048": 0.020218323996232357, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_map_query": 0.003250483005103888, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_map_query_common_var": 0.0013267820031614974, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_map_query_with_evidence": 0.003190974999597529, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_max_calibrate_clique_belief": 0.0012756309988617431, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_max_calibrate_sepset_belief": 0.0011850640003103763, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_query_common_var": 0.0016594679982517846, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_query_multiple_variable": 0.0031874150008661672, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_query_multiple_variable_with_evidence": 0.003158216004521819, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_query_single_variable": 0.003158483999868622, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestBeliefPropagation::test_query_single_variable_with_evidence": 0.003146096001728438, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestSnowNetworkTorch::test_elimination_order": 0.009887488999083871, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestSnowNetworkTorch::test_joint_distribution": 0.005532230996323051, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestSnowNetworkTorch::test_queries": 0.005794847002107417, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestSnowNetworkTorch::test_virt_evidence": 0.07083673500164878, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationDuplicatedFactors::test_duplicated_factors": 0.0004107450040464755, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_induced_graph": 0.00039794300028006546, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_induced_width": 0.00036296399775892496, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_issue_1421": 0.0008902279987523798, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_map_query": 0.0006110499998612795, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_map_query_with_evidence": 0.0007231899944599718, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_max_marginal": 0.000525992003531428, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_max_marginal_var": 0.0010134159965673462, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_max_marginal_var1": 0.0009259670005121734, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_max_marginal_var2": 0.0008742869977140799, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_query_multiple_times": 0.002120850000210339, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_query_multiple_variable": 0.0006375029988703318, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_query_multiple_variable_with_evidence": 0.0005653419975715224, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_query_single_variable": 0.0006021000008331612, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationMarkov::test_query_single_variable_with_evidence": 0.000583811997785233, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_elimination_order": 0.004688973000156693, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_induced_graph": 0.0006680400001641829, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_induced_width": 0.0006618310035264585, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_map_query": 0.00381144500352093, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_map_query_common_var": 0.0006297300024016295, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_map_query_with_evidence": 0.0016376669955207035, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_max_marginal": 0.0011418430003686808, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_max_marginal_common_var": 0.0006098710000514984, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_max_marginal_var": 0.0009519269951852039, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_max_marginal_var1": 0.0010616340041451622, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_max_marginal_var2": 0.0012366830014798325, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_query_common_var": 0.0006141619996924419, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_query_multiple_times": 0.024221425999712665, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_query_multiple_variable": 0.003986634001194034, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_query_multiple_variable_with_evidence": 0.004858182001044042, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_query_single_variable": 0.0033208130007551517, + "pgmpy/tests/test_inference/test_ExactInferenceTorch.py::TestVariableEliminationTorch::test_query_single_variable_with_evidence": 0.0029998870013514534, + "pgmpy/tests/test_inference/test_Inference.py::TestInferenceBase::test_bayesian_inference_init": 0.0007608290034113452, + "pgmpy/tests/test_inference/test_Inference.py::TestInferenceBase::test_markov_inference_init": 0.0004505930010054726, + "pgmpy/tests/test_inference/test_bn_inference.py::TestBnInference::test_bn_probability": 0.003978652999649057, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_backward_inf_multiple_variables": 0.005303245001414325, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_backward_inf_multiple_variables_with_evidence": 0.007965536995470757, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_backward_inf_single_variable": 0.004735421996883815, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_backward_inf_single_variable_with_evidence": 0.010153464998438722, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_forward_inf_multiple_variable": 0.004245889995218022, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_forward_inf_multiple_variable_with_evidence": 0.0047188949974952266, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_forward_inf_single_variable": 0.0041518299985909835, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_forward_inf_single_variable_with_evidence": 0.006296980998740764, + "pgmpy/tests/test_inference/test_dbn_inference.py::TestDBNInference::test_super_connected_network": 0.004957091001415392, + "pgmpy/tests/test_inference/test_elimination_order.py::TestBaseElimination::test_cost": 0.0036436970040085725, + "pgmpy/tests/test_inference/test_elimination_order.py::TestBaseElimination::test_fill_in_edges": 0.003395921001356328, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinFill::test_cost": 0.0034686519975366537, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinFill::test_elimination_order": 0.0033369430057064164, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinFill::test_elimination_order_given_nodes": 0.0034085910010617226, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinNeighbors::test_cost": 0.003383522998774424, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinNeighbors::test_elimination_order": 0.0033438610007578973, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinNeighbors::test_elimination_order_given_nodes": 0.0034138609989895485, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinWeight::test_cost": 0.0033060230016417336, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinWeight::test_elimination_order": 0.0033701709980960004, + "pgmpy/tests/test_inference/test_elimination_order.py::TestMinWeight::test_elimination_order_given_nodes": 0.003360233000421431, + "pgmpy/tests/test_inference/test_elimination_order.py::TestWeightedMinFill::test_cost": 0.0033418829953006934, + "pgmpy/tests/test_inference/test_elimination_order.py::TestWeightedMinFill::test_elimination_order": 0.0034719010000117123, + "pgmpy/tests/test_inference/test_elimination_order.py::TestWeightedMinFill::test_elimination_order_given_nodes": 0.003361772993230261, + "pgmpy/tests/test_inference/test_mplp.py::TightenTripletOff::test_query_tighten_triplet_off": 0.5926205979994847, + "pgmpy/tests/test_inference/test_mplp.py::TightenTripletOn::test_query_tighten_triplet_on": 0.687666828998772, + "pgmpy/tests/test_metrics/test_metrics.py::TestCorrelationScore::test_discrete_network": 15.66907094799899, + "pgmpy/tests/test_metrics/test_metrics.py::TestCorrelationScore::test_input": 0.7644569040021452, + "pgmpy/tests/test_metrics/test_metrics.py::TestImpliedCI::test_fisher_c": 26.361799829002848, + "pgmpy/tests/test_metrics/test_metrics.py::TestImpliedCI::test_implied_cis": 7.125926319000428, + "pgmpy/tests/test_metrics/test_metrics.py::TestLogLikelihoodScore::test_discrete_network": 0.9071229669971217, + "pgmpy/tests/test_metrics/test_metrics.py::TestLogLikelihoodScore::test_input": 0.7438887450043694, + "pgmpy/tests/test_metrics/test_metrics.py::TestStructureScore::test_discrete_network": 1.0791634550005256, + "pgmpy/tests/test_metrics/test_metrics.py::TestStructureScore::test_input": 0.7572449069957656, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_edge_nonstring": 0.0004066050023538992, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_edge_result_cycle": 0.00019199900270905346, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_edge_selfloop": 0.00016247800158453174, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_edge_string": 0.00018506799824535847, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_edges_from_nonstring": 0.0001589880012033973, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_edges_from_result_cycle": 0.00016037699970183894, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_edges_from_self_loop": 0.00014511900371871889, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_edges_from_string": 0.00017605800167075358, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_node_nonstring": 0.0001382569971610792, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_node_string": 0.0001385770046908874, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_nodes_from_non_string": 0.00013644900172948837, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_add_nodes_from_string": 0.00014250700041884556, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_class_init_with_data_nonstring": 0.00019855600112350658, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_class_init_with_data_string": 0.0001940990005095955, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_class_init_without_data": 0.00013959699572296813, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_update_node_parents": 0.00016745699758757837, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBaseModelCreation::test_update_node_parents_bm_constructor": 0.00019876599981216714, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_active_trail_nodes": 0.00030350499582709745, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_active_trail_nodes_args": 0.00025690800612210296, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_add_multiple_cpds": 0.00046840299910400063, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_add_single_cpd": 0.00033188499946845695, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_check_model": 0.000474223998025991, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_check_model1": 0.0003603160002967343, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_check_model2": 0.00031087600291357376, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_get_cpds": 0.0003049160004593432, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_get_cpds1": 0.00038492500243592076, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_is_dconnected": 0.0002485149998392444, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_is_dconnected_args": 0.00024087599740596488, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelCPD::test_is_dconnected_triplets": 0.00026600499768392183, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_bayesian_fit": 0.00409158200272941, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_connected_predict": 2.788529852001375, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_connected_predict_probability": 0.010089976000017487, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_disconnected_fit": 0.005181425000046147, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_do": 0.0025916629965649918, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_fit_missing_data": 0.0042582099995343015, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_fit_update": 0.5880113810017065, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_predict": 5.2365322269979515, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_predict_probability_errors": 0.0066703439988486934, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_predict_stochastic": 0.05192898100358434, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelFitPredict::test_simulate": 0.6060281149984803, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_copy": 0.0007103599964466412, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_get_ancestors_of_failure": 0.00044905399772687815, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_get_ancestors_of_success": 0.00043949300015810877, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_get_cardinality": 0.000724888999684481, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_get_cardinality_with_node": 0.00043641299635055475, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_get_immoralities": 0.0005700909969164059, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_get_independencies": 0.0007478110019292217, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_get_random": 0.0021658379992004484, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_is_iequivalent": 0.000744029999623308, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_is_imap": 0.0006218229973455891, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_local_independencies": 0.0007181599976320285, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_markov_blanket": 0.0005172330020286608, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_markov_blanket_G3": 0.0004958829958923161, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_moral_graph": 0.0004715730028692633, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_moral_graph_with_edge_present_over_parents": 0.0005055920009908732, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_remove_node": 0.0005204030021559447, + "pgmpy/tests/test_models/test_BayesianModel.py::TestBayesianModelMethods::test_remove_nodes_from": 0.000477953002700815, + "pgmpy/tests/test_models/test_BayesianModel.py::TestDAGCPDOperations::test_add_multiple_cpds": 0.0003751439980987925, + "pgmpy/tests/test_models/test_BayesianModel.py::TestDAGCPDOperations::test_add_single_cpd": 0.00023225699624163099, + "pgmpy/tests/test_models/test_BayesianModel.py::TestDAGCPDOperations::test_get_values_for_node": 0.0003339140021125786, + "pgmpy/tests/test_models/test_BayesianModel.py::TestDAGCPDOperations::test_get_values_raises_error": 0.0002281969973410014, + "pgmpy/tests/test_models/test_BayesianModel.py::TestDAGCPDOperations::test_remove_multiple_cpds": 0.0002152560009562876, + "pgmpy/tests/test_models/test_BayesianModel.py::TestDAGCPDOperations::test_remove_multiple_cpds_string": 0.00020944800417055376, + "pgmpy/tests/test_models/test_BayesianModel.py::TestDAGCPDOperations::test_remove_single_cpd": 0.00020892700194963254, + "pgmpy/tests/test_models/test_BayesianModel.py::TestDAGCPDOperations::test_remove_single_cpd_string": 0.00021988600201439112, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_edge_nonstring": 0.00017388700143783353, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_edge_result_cycle": 0.00015552800323348492, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_edge_selfloop": 0.00012419800259522162, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_edge_string": 0.00014923900016583502, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_edges_from_nonstring": 0.00012606699965544976, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_edges_from_result_cycle": 0.00013984799807076342, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_edges_from_self_loop": 0.0001236000025528483, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_edges_from_string": 0.00014921700130798854, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_node_nonstring": 0.00011769699631258845, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_node_string": 0.00011661800090223551, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_nodes_from_non_string": 0.00011808799899881706, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_add_nodes_from_string": 0.00011774800077546388, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_class_init_with_data_nonstring": 0.00015790800171089359, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_class_init_with_data_string": 0.00015024800086393952, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_class_init_without_data": 0.00012062000314472243, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_update_node_parents": 0.00013426800069282763, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBaseModelCreation::test_update_node_parents_bm_constructor": 0.00015505700139328837, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_active_trail_nodes": 0.00030868400062900037, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_active_trail_nodes_args": 0.0002485960030753631, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_add_multiple_cpds": 0.00044750400411430746, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_add_single_cpd": 0.0003312959997856524, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_check_model": 0.0004585819988278672, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_check_model1": 0.0003468959985184483, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_check_model2": 0.00028258500242372975, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_check_model3": 0.0009951649954018649, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_get_cpds": 0.00037617399721057154, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_get_cpds1": 0.0002887049959099386, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_is_dconnected": 0.00023175599926616997, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_is_dconnected_args": 0.0002268169992021285, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelCPD::test_is_dconnected_triplets": 0.00023407700064126402, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_bayesian_fit": 0.003921464998711599, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_connected_predict": 0.01902155999778188, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_connected_predict_probability": 0.009924450005200924, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_disconnected_fit": 0.0073103070026263595, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_fit_missing_data": 0.006553086997882929, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_fit_update": 0.6125007850023394, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_predict": 0.04090049899969017, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_predict_probability_errors": 0.006222631996934069, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelFitPredict::test_predict_stochastic": 0.04553894199852948, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_copy": 0.0006402600010915194, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_do": 0.0007289000022865366, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_get_ancestors_of_failure": 0.00036997399729443714, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_get_ancestors_of_success": 0.0004203930038784165, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_get_cardinality": 0.0003447359995334409, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_get_cardinality_with_node": 0.00035154400029568933, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_get_immoralities": 0.00047889499910525046, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_get_independencies": 0.0005667219993483741, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_get_random": 0.0038082049977674615, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_get_random_cpds": 0.0020549209984892514, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_is_iequivalent": 0.000988245999906212, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_is_imap": 0.0005329010054992978, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_load_save": 13.361402120001003, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_local_independencies": 0.0005677219996869098, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_markov_blanket": 0.00043144399751327, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_markov_blanket_G3": 0.00034219400549773127, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_moral_graph": 0.0004325849949964322, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_moral_graph_with_edge_present_over_parents": 0.00038621399653493427, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_remove_node": 0.00039131300218286924, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_remove_nodes_from": 0.03500440199786681, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_simulate": 10.536928561003151, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelMethods::test_states": 0.00046405299872276373, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestBayesianModelSampleProb::test_prob_values": 0.8260986679997586, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestDAGCPDOperations::test_add_multiple_cpds": 0.0003360559967404697, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestDAGCPDOperations::test_add_single_cpd": 0.00020864700127276592, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestDAGCPDOperations::test_get_values_for_node": 0.000314495999191422, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestDAGCPDOperations::test_get_values_raises_error": 0.00021116599964443594, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestDAGCPDOperations::test_remove_multiple_cpds": 0.00019227699885959737, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestDAGCPDOperations::test_remove_multiple_cpds_string": 0.0001798980010789819, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestDAGCPDOperations::test_remove_single_cpd": 0.00017640800433582626, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestDAGCPDOperations::test_remove_single_cpd_string": 0.00019701900600921363, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestSimulation::test_simulate": 0.773100500999135, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestSimulation::test_simulate_evidence": 4.049936379004066, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestSimulation::test_simulate_intervention": 1.2136259520011663, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestSimulation::test_simulate_virtual_evidence": 4.084807095001452, + "pgmpy/tests/test_models/test_BayesianNetwork.py::TestSimulation::test_simulate_virtual_intervention": 1.589408623000054, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphCreation::test_add_multiple_nodes": 0.00022813699979451485, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphCreation::test_add_single_edge": 0.0001511370064690709, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphCreation::test_add_single_edge_raises_error": 0.0001378880006086547, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphCreation::test_add_single_node": 0.00012300699381739832, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphCreation::test_add_single_node_raises_error": 0.0001274069945793599, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphFactorOperations::test_add_multiple_factors": 0.00024877700343495235, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphFactorOperations::test_add_single_factor": 0.0001774869997461792, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphFactorOperations::test_add_single_factor_raises_error": 0.00014578899936168455, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphFactorOperations::test_get_factors": 0.0002591069969639648, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphFactorOperations::test_get_partition_function": 0.0001963360009540338, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphFactorOperations::test_remove_factors": 0.00019166699712513946, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphMethods::test_check_model": 0.0001943079987540841, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphMethods::test_check_model1": 0.0001692080004431773, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphMethods::test_check_model2": 0.0001927880039147567, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphMethods::test_copy_with_factors": 0.0002809450015774928, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphMethods::test_copy_without_factors": 0.00014919900422682986, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphMethods::test_get_cardinality": 0.00017404799655196257, + "pgmpy/tests/test_models/test_ClusterGraph.py::TestClusterGraphMethods::test_get_cardinality_with_node": 0.00015808700482011773, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDBNSampling::test_simulate_evidence_more_than_two_slices": 4.5862483809978585, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDBNSampling::test_simulate_evidence_two_slices": 2.5890079120035807, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDBNSampling::test_simulate_intervention": 0.7078414349962259, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDBNSampling::test_simulate_more_than_two_slices": 0.276120999998966, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDBNSampling::test_simulate_two_slices": 0.16975238300074125, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDBNSampling::test_simulate_virtual_evidence": 0.9022155179991387, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDBNSampling::test_simulate_virtual_intervention": 0.8916581279991078, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_edge_going_backward": 0.0001684179987933021, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_edge_with_closed_path": 0.00016117799532366917, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_edge_with_different_number_timeslice": 0.00013505699826055206, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_edge_with_farther_timeslice": 0.00012192699796287343, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_edge_with_self_loop": 0.00011966800229856744, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_edge_with_varying_length": 0.00012230800348334014, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_multiple_edges": 0.00015421799980686046, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_multiple_nodes": 0.00012826699821744114, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_single_edge_with_incorrect_timeslice": 0.00011486700168461539, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_single_edge_with_timeslice": 0.00013449699690681882, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_single_edge_without_timeslice": 0.00011520700354594737, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkCreation::test_add_single_node": 0.0001261469988094177, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods2::test_check_model": 0.0004871320052188821, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods2::test_check_model1": 0.000328724996506935, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods2::test_check_model2": 0.0005443429981824011, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods3::test_initialize_and_infer1": 0.005740497996157501, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods3::test_initialize_and_infer2": 0.009751280998898437, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods3::test_initialize_and_infer3": 0.01716296499944292, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_active_trail_nodes": 0.000280025000392925, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_add_multiple_cpds": 0.0002761080031632446, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_add_single_cpds": 0.0002409570042800624, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_copy": 0.0008197170027415268, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_fit": 0.031093287994735874, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_get_constant_bn": 0.0011669720042846166, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_get_cpds": 0.0013938299998699222, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_get_interface_nodes": 0.00027875800151377916, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_get_interface_nodes_1node2edges_divergent_edges": 0.0002461949989083223, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_get_interface_nodes_convergent_edges": 0.00024447599935228936, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_get_intra_and_inter_edges": 0.0002521169953979552, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_get_markov_blanket": 0.00023691600290476345, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_get_slice_nodes": 0.00024889699488994665, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_initialize_initial_state": 0.0012123519991291687, + "pgmpy/tests/test_models/test_DynamicBayesianNetwork.py::TestDynamicBayesianNetworkMethods::test_moralize": 0.00028643499899771996, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphCreation::test_add_multiple_edges": 0.00024321700402651913, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphCreation::test_add_multiple_nodes": 0.0001361499998893123, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphCreation::test_add_self_loop_raises_error": 0.00013865700384485535, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphCreation::test_add_single_edge": 0.0001303690005443059, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphCreation::test_add_single_node": 0.00011923899728571996, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphCreation::test_class_init_data_string": 0.00012712800162262283, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphCreation::test_class_init_without_data": 0.00012346700168563984, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphFactorOperations::test_add_multiple_factors": 0.00031524400037596934, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphFactorOperations::test_add_single_factor": 0.00017625600230530836, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphFactorOperations::test_get_factors": 0.00314543400236289, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphFactorOperations::test_get_partition_function": 0.0009766449984454084, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphFactorOperations::test_get_point_mass_message": 0.00019831900135613978, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphFactorOperations::test_get_uniform_message": 0.00018071700105792843, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphFactorOperations::test_remove_factors": 0.0002828249998856336, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_check_model": 0.0017718050039547961, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_check_model1": 0.0010753450042102486, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_check_model2": 0.0010633549973135814, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_check_model3": 0.0016282469987345394, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_check_model4": 0.0017182350020448212, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_copy": 0.0012019340028928127, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_get_cardinality": 0.00022207699657883495, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_get_cardinality_with_node": 0.0002447860060783569, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_get_factor_nodes": 0.0016432170014013536, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_get_variable_nodes": 0.0010072259974549524, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_get_variable_nodes_raises_error": 0.00014438699872698635, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_to_junction_tree": 0.0011476040017441846, + "pgmpy/tests/test_models/test_FactorGraph.py::TestFactorGraphMethods::test_to_markov_model": 0.0009881170008156914, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCopy::test_copy_with_factorchanges": 0.0002097489996231161, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCopy::test_copy_with_factors": 0.0003031960004591383, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCopy::test_copy_with_nodes": 0.00017265700080315582, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCreation::test_add_cyclic_path_raises_error": 0.00018317700232728384, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCreation::test_add_multiple_nodes": 0.00013000900071347132, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCreation::test_add_single_edge": 0.00013499800479621626, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCreation::test_add_single_edge_raises_error": 0.00011974799781455658, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCreation::test_add_single_node": 0.00011730799815268256, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeCreation::test_add_single_node_raises_error": 0.0001264080019609537, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeMethods::test_check_model": 0.00028059500255039893, + "pgmpy/tests/test_models/test_JunctionTree.py::TestJunctionTreeMethods::test_states": 0.00022825699852546677, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_add_cpds": 0.00027176799630979076, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_check_model": 0.0001826880034059286, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_cpds_simple": 0.00016039799811551347, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_fit": 2.797660296997492, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_get_random_cpds": 0.6520388479984831, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_not_implemented_methods": 0.00022670700127491727, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_predict": 0.6524391320053837, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_simulate": 0.0020523610037344042, + "pgmpy/tests/test_models/test_LinearGaussianBayesianNetwork.py::TestLGBNMethods::test_to_joint_gaussian": 0.0003620349998527672, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_add_transition_model_bad_probability": 0.0005977110013191123, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_add_transition_model_bad_probability_sum": 0.0004879019979853183, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_add_transition_model_bad_states": 0.0004482630029087886, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_add_transition_model_bad_transition": 0.00046442400343948975, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_add_transition_model_bad_type": 0.000439974002802046, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_add_transition_model_success": 0.0004660720042011235, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_add_variable_new": 0.00042557300184853375, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_add_variables_from": 0.0010132759962289128, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_check_state_bad_type": 0.00048516199240111746, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_check_state_bad_var_value": 0.0004744649995700456, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_check_state_bad_vars": 0.000444673998572398, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_check_state_success": 0.0004537230015557725, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_copy": 0.0005144719943928067, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_generate_sample": 0.0005546440006582998, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_generate_sample_less_arg": 0.0008457179974357132, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_init": 0.0010485750026418827, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_init_bad_card_type": 0.0004791120009031147, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_init_bad_variables_type": 0.0004494439999689348, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_init_less_args": 0.0004357739926490467, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_is_stationarity_failure": 0.6560987789962383, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_is_stationarity_success": 0.0005337230031727813, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_prob_from_sample": 0.00188823499775026, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_random_state": 0.00048330199933843687, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_sample": 0.0007392900006379932, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_sample_less_arg": 0.0009755170030985028, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_set_start_state_list": 0.0007737090018054005, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_set_start_state_none": 0.0005460710017359816, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_transition_model_bad_matrix_dimension": 0.00046512300104950555, + "pgmpy/tests/test_models/test_MarkovChain.py::TestMarkovChain::test_transition_model_dict_to_matrix": 0.000488855002913624, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_edge_nonstring": 0.0002285980008309707, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_edge_selfloop": 0.0001529870023659896, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_edge_string": 0.00016412799959653057, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_edges_from_nonstring": 0.00014488899978459813, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_edges_from_self_loop": 0.00014234699847293086, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_edges_from_string": 0.0001620880029804539, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_node_nonstring": 0.000137187002110295, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_node_string": 0.0001402890047756955, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_nodes_from_non_string": 0.00013461700291372836, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_add_nodes_from_string": 0.00013939700147602707, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_class_init_with_data_nonstring": 0.00014898799781803973, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_class_init_with_data_string": 0.0001637780005694367, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_class_init_without_data": 0.0001305290061281994, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelCreation::test_number_of_neighbors": 0.00014559700139216147, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_bayesian_model": 0.001002777000394417, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_check_model": 0.00034830499862437136, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_check_model1": 0.00023982499988051131, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_check_model2": 0.00024622600176371634, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_check_model3": 0.00023559699911857024, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_factor_graph": 0.00021193799693719484, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_factor_graph_raises_error": 0.00014873699910822324, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_get_cardinality": 0.00019467800302663818, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_get_cardinality_with_node": 0.00017546799790579826, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_junction_tree": 0.0009374970031785779, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_junction_tree_single_clique": 0.00037391499790828675, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_local_independencies": 0.00018243600061396137, + "pgmpy/tests/test_models/test_MarkovModel.py::TestMarkovModelMethods::test_markov_blanket": 0.00016254899674095213, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphFactorOperations::test_add_factor_raises_error": 0.00020094600040465593, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphFactorOperations::test_add_multiple_factors": 0.0002264970025862567, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphFactorOperations::test_add_single_factor": 0.0001961170019058045, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphFactorOperations::test_get_factors": 0.00023614699966856278, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphFactorOperations::test_partition_function": 0.00020405899704201147, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphFactorOperations::test_partition_function_raises_error": 0.00018630600243341178, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphFactorOperations::test_remove_multiple_factors": 0.00017475599815952592, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphFactorOperations::test_remove_single_factor": 0.00020506600048975088, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_cardinality_mismatch_raises_error": 0.00023134599905461073, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_check_clique": 0.0001477490077377297, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_copy": 0.000379234003048623, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_is_triangulated": 0.00014895799904479645, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h1_create_new": 0.0006490599953394849, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h1_inplace": 0.0007429099969158415, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h2_create_new": 0.0007142599970393348, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h2_inplace": 0.0007708589982939884, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h3_create_new": 0.0006417009972210508, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h3_inplace": 0.000718250001227716, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h4_create_new": 0.0006309100026555825, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h4_inplace": 0.0007267200016940478, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h5_create_new": 0.0006945589993847534, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h5_inplace": 0.000734070003090892, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h6_create_new": 0.0006242410017875955, + "pgmpy/tests/test_models/test_MarkovModel.py::TestUndirectedGraphTriangulation::test_triangulation_h6_inplace": 0.0007233409996842965, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_edge_nonstring": 0.00016578899885644205, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_edge_selfloop": 0.000126326998724835, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_edge_string": 0.0001315890003752429, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_edges_from_nonstring": 0.00011918000018340535, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_edges_from_self_loop": 0.00012835799861932173, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_edges_from_string": 0.00013458700050250627, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_node_nonstring": 0.0001114369988499675, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_node_string": 0.00011246799840591848, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_nodes_from_non_string": 0.00011655799971777014, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_add_nodes_from_string": 0.00011763699512812309, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_class_init_with_data_nonstring": 0.0001128980002249591, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_class_init_with_data_string": 0.00011893799819517881, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_class_init_without_data": 0.00010759899669210427, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkCreation::test_number_of_neighbors": 0.00012823900033254176, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_bayesian_model": 0.0009184760019707028, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_check_model": 0.0001837679992604535, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_check_model1": 0.0001954360013769474, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_check_model2": 0.00022688700119033456, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_check_model3": 0.00021239799752947874, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_factor_graph": 0.0001726180016703438, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_factor_graph_raises_error": 0.00012578799578477629, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_get_cardinality": 0.00018442600048729219, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_get_cardinality_with_node": 0.0001561980025144294, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_junction_tree": 0.0007717380030953791, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_junction_tree_single_clique": 0.00033705599707900546, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_local_independencies": 0.00015227900075842626, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_markov_blanket": 0.00012487700223573484, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestMarkovNetworkMethods::test_states": 0.00019034599608858116, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphFactorOperations::test_add_factor_raises_error": 0.00017432700042263605, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphFactorOperations::test_add_multiple_factors": 0.00020469800074351951, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphFactorOperations::test_add_single_factor": 0.00016962800145847723, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphFactorOperations::test_get_factors": 0.00021135600400157273, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphFactorOperations::test_partition_function": 0.00018529699809732847, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphFactorOperations::test_partition_function_raises_error": 0.00015886800247244537, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphFactorOperations::test_remove_multiple_factors": 0.00014881799870636314, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphFactorOperations::test_remove_single_factor": 0.0001834779977798462, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_cardinality_mismatch_raises_error": 0.00021617600577883422, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_check_clique": 0.00012144799984525889, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_copy": 0.00032169500263989903, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_is_triangulated": 0.00012871000217273831, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h1_create_new": 0.000649651003186591, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h1_inplace": 0.000627969995548483, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h2_create_new": 0.0005788010021205992, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h2_inplace": 0.0006071219977457076, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h3_create_new": 0.0005619230032607447, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h3_inplace": 0.0006012400008330587, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h4_create_new": 0.0006316220024018548, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h4_inplace": 0.0006103400010033511, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h5_create_new": 0.000563902998692356, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h5_inplace": 0.000610499999311287, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h6_create_new": 0.0005574539973167703, + "pgmpy/tests/test_models/test_MarkovNetwork.py::TestUndirectedGraphTriangulation::test_triangulation_h6_inplace": 0.0006157399984658696, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_add_edge_nonstring": 0.0002440960015519522, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_add_edge_selfloop": 0.00014639900473412126, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_add_edge_string": 0.00024452599973301403, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_add_edges_from_self_loop": 0.00013857799422112294, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_add_node_nonstring": 0.00013179799861973152, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_add_node_string": 0.00012484699982451275, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_add_nodes_from_non_string": 0.00013389699961408041, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_add_nodes_from_string": 0.0001312790045631118, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_class_init_with_data_nonstring": 0.00017346800086670555, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_class_init_with_data_string": 0.00016388799849664792, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_class_init_without_data": 0.00012186799722258002, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_update_node_parents": 0.00014340800044010393, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestBaseModelCreation::test_update_node_parents_bm_constructor": 0.00016642700575175695, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestNaiveBayesFit::test_fit_model_creation": 0.007270996997249313, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestNaiveBayesFit::test_fit_model_creation_exception": 0.00032574399665463716, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestNaiveBayesMethods::test_active_trail_nodes": 0.00021072699746582657, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestNaiveBayesMethods::test_active_trail_nodes_args": 0.00018680600260267965, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestNaiveBayesMethods::test_get_ancestors_of": 0.0001876659989648033, + "pgmpy/tests/test_models/test_NaiveBayes.py::TestNaiveBayesMethods::test_local_independencies": 0.00020635599503293633, + "pgmpy/tests/test_models/test_NoisyOrModels.py::TestNoisyOrModelInit::test_exceptions": 0.00019151699962094426, + "pgmpy/tests/test_models/test_NoisyOrModels.py::TestNoisyOrModelInit::test_init": 0.00020644700271077454, + "pgmpy/tests/test_models/test_NoisyOrModels.py::TestNoisyOrModelMethods::test_add_variables": 0.00024123599723679945, + "pgmpy/tests/test_models/test_NoisyOrModels.py::TestNoisyOrModelMethods::test_del_multiple_variables": 0.00019863899797201157, + "pgmpy/tests/test_models/test_NoisyOrModels.py::TestNoisyOrModelMethods::test_del_variables": 0.00020741600019391626, + "pgmpy/tests/test_models/test_SEM.py::TestSEM::test_from_graph": 0.00036592600372387096, + "pgmpy/tests/test_models/test_SEM.py::TestSEM::test_from_lavaan": 0.003993752001406392, + "pgmpy/tests/test_models/test_SEM.py::TestSEM::test_from_lisrel": 0.0001348469995718915, + "pgmpy/tests/test_models/test_SEM.py::TestSEM::test_from_ram": 0.00013467800090438686, + "pgmpy/tests/test_models/test_SEM.py::TestSEMAlg::test_generate_samples": 0.0007359390001511201, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_active_trail_nodes": 0.0006010220058669802, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_demo_init": 0.0006460910044552293, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_demo_param_init": 0.00038655399839626625, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_get_conditional_ivs_demo": 0.008565200001612538, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_get_conditional_ivs_union": 0.001672346996201668, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_get_full_graph_struct": 0.0004067629997734912, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_get_ivs_custom": 0.000696291997883236, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_get_ivs_demo": 0.0009618559997761622, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_get_ivs_union": 0.0005805910004710313, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_get_scaling_indicators": 0.00038062399471527897, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_iv_transformations_custom": 0.0005689010031346697, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_iv_transformations_demo": 0.0007508689996029716, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_iv_transformations_union": 0.0004477239999687299, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_small_model_ivs": 0.0008750570013944525, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_to_from_lisrel": 0.001605419001862174, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_to_lisrel": 0.0007265789972734638, + "pgmpy/tests/test_models/test_SEM.py::TestSEMGraph::test_union_init": 0.00046660400039399974, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_default_attribut_equal_table": 3.5736363750002056, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_get_edges": 2.8880553919989325, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_get_model": 2.9103455919976113, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_get_parents": 2.7050820130025386, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_get_property": 2.7599258789960004, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_get_values": 2.800357360007183, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_get_values_reordered": 4.22550087199852, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_get_variables": 2.904523932000302, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_network_name": 2.7456999800015183, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_states": 2.780098798997642, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReader::test_water_model": 2.8782261979977193, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_default_attribut_equal_table": 3.6066040080040693, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_get_edges": 2.926051860998996, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_get_model": 2.868757504998939, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_get_parents": 2.7891082870009996, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_get_property": 2.8277272649938823, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_get_values": 2.7625506410040543, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_get_values_reordered": 4.181930708997243, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_get_variables": 2.8470596319966717, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_network_name": 2.735701095996774, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_states": 2.7373514309983875, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFReaderTorch::test_water_model": 2.8239775340007327, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFWriter::test_str": 0.0005524330044863746, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFWriter::test_write_read_equal": 0.8383275070009404, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFWriterTorch::test_str": 0.0008145690044329967, + "pgmpy/tests/test_readwrite/test_BIF.py::TestBIFWriterTorch::test_write_read_equal": 0.8476738249992195, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETReader::test_get_edges": 0.07475574500131188, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETReader::test_get_network_name": 0.07430239100358449, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETReader::test_get_parents": 0.0788133870009915, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETReader::test_get_properties": 0.07418064100056654, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETReader::test_get_states": 0.11852689999795984, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETReader::test_get_values": 0.07892745400386048, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETReader::test_get_variables": 0.07951615699494141, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriter::test_get_cpds": 0.6119832050062541, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriter::test_get_parents": 0.5562006810032472, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriter::test_get_states": 0.5594881630022428, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriter::test_get_variables": 0.5643738030012173, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriter::test_net_cpd": 0.5584314789994096, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriter::test_str": 0.5598065499980294, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriterTorch::test_get_cpds": 0.5531443939980818, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriterTorch::test_get_parents": 0.5569678989995737, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriterTorch::test_get_states": 0.5590650189988082, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriterTorch::test_get_variables": 0.554914917996939, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriterTorch::test_net_cpd": 0.5585099560012168, + "pgmpy/tests/test_readwrite/test_NET.py::TestNETWriterTorch::test_str": 0.5587049840032705, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_get_initial_belief_system": 0.0020857309973507654, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_get_parameter_dd": 0.0003413859994907398, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_get_state_transition_function": 0.0003002159974130336, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_get_variables": 0.00027173500347998925, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_initial_belief_dd": 0.0002962360013043508, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_obs_function": 0.00027624700305750594, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_obs_function_dd": 0.0003777940000873059, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_reward_function": 0.00032344599821954034, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderString::test_state_transition_function": 0.0004062330044689588, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_get_initial_belief_system": 0.00035876399851986207, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_get_parameter_dd": 0.00029844600067008287, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_get_state_transition_function": 0.00027527499696589075, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_get_variables": 0.00025390700102434494, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_initial_belief_dd": 0.00027993699768558145, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_obs_function": 0.00026254499971400946, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_obs_function_dd": 0.00036178600203129463, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_reward_function": 0.00031587600096827373, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXReaderStringTorch::test_state_transition_function": 0.00039079499765648507, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_add_initial_belief": 0.0003189960007148329, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_add_obs_function": 0.0002443569974275306, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_add_reward_function": 0.00022423700283979997, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_add_transition_function": 0.0003109050048806239, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_initial_state_belief_dd": 0.00022527799956151284, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_obs_function_dd": 0.00014328700126498006, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_reward_function_dd": 0.00031155500255408697, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_state_transition_function_dd": 0.0001232290014741011, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriter::test_variables": 0.00012592699931701645, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_add_initial_belief": 0.0002530569981900044, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_add_obs_function": 0.00023452700042980723, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_add_reward_function": 0.00022024599820724688, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_add_transition_function": 0.00031057600426720455, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_initial_state_belief_dd": 0.00021740700321970508, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_obs_function_dd": 0.00011927800005651079, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_reward_function_dd": 0.0003090449972660281, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_state_transition_function_dd": 0.00011994899978162721, + "pgmpy/tests/test_readwrite/test_PomdpX.py::TestPomdpXWriterTorch::test_variables": 0.00012222700024722144, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReader::test_get_domain": 0.4663590610034589, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReader::test_get_edges": 0.46375123700272525, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReader::test_get_model": 1.558686086002126, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReader::test_get_network_type": 0.46279433100062306, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReader::test_get_tables": 0.46423020100337453, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReader::test_get_variables": 0.4665802769959555, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReader::test_read_file": 0.4664114189981774, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReaderTorch::test_get_domain": 0.463346893000562, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReaderTorch::test_get_edges": 0.46405400399817154, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReaderTorch::test_get_model": 0.4648074420001649, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReaderTorch::test_get_network_type": 0.6531041269954585, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReaderTorch::test_get_tables": 0.4617853650015604, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReaderTorch::test_get_variables": 0.4642747390025761, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIReaderTorch::test_read_file": 0.4711903310017078, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIWriter::test_bayes_model": 0.00044959499427932315, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIWriter::test_markov_model": 0.0003537050033628475, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIWriterTorch::test_bayes_model": 0.0006986619991948828, + "pgmpy/tests/test_readwrite/test_UAI.py::TestUAIWriterTorch::test_markov_model": 0.0005098740002722479, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethods::test_get_edges": 0.00025713699869811535, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethods::test_get_parents": 0.00019746600082726218, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethods::test_get_property": 0.00019359900034032762, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethods::test_get_states": 0.00017967800158658065, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethods::test_get_values": 0.0003416340005060192, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethods::test_get_variables": 0.00018903900127043016, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethods::test_model": 0.0005486029986059293, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFile::test_get_edges": 0.00031936500090523623, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFile::test_get_parents": 0.00024906699763960205, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFile::test_get_property": 0.000250516997766681, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFile::test_get_states": 0.0002410750021226704, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFile::test_get_values": 0.0003717139989021234, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFile::test_get_variables": 0.00024523700267309323, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFile::test_model": 0.000569503001315752, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFileTorch::test_get_edges": 0.0002846949973900337, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFileTorch::test_get_parents": 0.00025537800320307724, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFileTorch::test_get_property": 0.00024832700364640914, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFileTorch::test_get_states": 0.0002457749978930224, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFileTorch::test_get_values": 0.0003747139999177307, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFileTorch::test_get_variables": 0.0002445860009174794, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsFileTorch::test_model": 0.0007937890004541259, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsTorch::test_get_edges": 0.0002351669972995296, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsTorch::test_get_parents": 0.00020276600116631016, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsTorch::test_get_property": 0.0001920489958138205, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsTorch::test_get_states": 0.00018536700008553453, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsTorch::test_get_values": 0.00032329399982700124, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsTorch::test_get_variables": 0.00018979699598276056, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFReaderMethodsTorch::test_model": 0.0007836200020392425, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFWriterMethodsString::test_write_xmlbif_statefull": 0.002274336999107618, + "pgmpy/tests/test_readwrite/test_XMLBIF.py::TestXMLBIFWriterMethodsString::test_write_xmlbif_stateless": 0.0020171610049146693, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReader::test_get_analysis_notebook": 0.0004704629973275587, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReader::test_get_bnmodel_name": 0.0003162259999953676, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReader::test_get_distribution": 0.0006962799998291302, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReader::test_get_edges": 0.0003226549924875144, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReader::test_get_model": 0.0005827319982927293, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReader::test_get_static_properties": 0.0003179459999955725, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReader::test_get_variables": 0.00032888599889702164, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReader::test_init_exception": 0.00032521499815629795, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReaderTorch::test_get_analysis_notebook": 0.0003302449949842412, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReaderTorch::test_get_bnmodel_name": 0.0002964150007755961, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReaderTorch::test_get_distribution": 0.0007402899973385502, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReaderTorch::test_get_edges": 0.00031669499730924144, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReaderTorch::test_get_model": 0.0005830619993503205, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReaderTorch::test_get_static_properties": 0.00031501500052399933, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReaderTorch::test_get_variables": 0.00034394400427117944, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNReaderTorch::test_init_exception": 0.00030765600240556523, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNWriter::test_file": 0.0001609089958947152, + "pgmpy/tests/test_readwrite/test_XMLBeliefNetwork.py::TestXBNWriterTorch::test_file": 0.0001537690004624892, + "pgmpy/tests/test_sampling/test_Sampling.py::TestBayesianModelSampling::test_forward_sample": 0.15035724399785977, + "pgmpy/tests/test_sampling/test_Sampling.py::TestBayesianModelSampling::test_init": 0.0017971050037886016, + "pgmpy/tests/test_sampling/test_Sampling.py::TestBayesianModelSampling::test_likelihood_weighted_sample": 0.018562274999567308, + "pgmpy/tests/test_sampling/test_Sampling.py::TestBayesianModelSampling::test_pre_compute_reduce_maps": 0.0019977210031356663, + "pgmpy/tests/test_sampling/test_Sampling.py::TestBayesianModelSampling::test_pred_compute_reduce_maps_partial_evidence": 0.001956592001079116, + "pgmpy/tests/test_sampling/test_Sampling.py::TestBayesianModelSampling::test_rejection_sample_basic": 0.38850733999788645, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_generate_sample": 0.0006862989976070821, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_generate_sample_less_arg": 0.0009777660015970469, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_get_kernel_from_bayesian_model": 0.0006025619986758102, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_get_kernel_from_bayesian_model_sprinkler": 0.0006867089978186414, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_get_kernel_from_markov_model": 0.0008353570046892855, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_init_markov_model": 0.0018550739987404086, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_sample": 0.0009241069965355564, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_sample_less_arg": 0.0011643530015135184, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_sample_limit": 0.34095986699685454, + "pgmpy/tests/test_sampling/test_Sampling.py::TestGibbsSampling::test_sample_sprinkler": 0.0011687730038829613, + "pgmpy/tests/test_sampling/test_base_continuous.py::TestGradLogPDFGaussian::test_error": 0.0002650170026754495, + "pgmpy/tests/test_sampling/test_base_continuous.py::TestGradLogPDFGaussian::test_gradient": 0.00025789500068640336, + "pgmpy/tests/test_sampling/test_base_continuous.py::TestLeapFrog::test_errors": 0.0002496169981895946, + "pgmpy/tests/test_sampling/test_base_continuous.py::TestLeapFrog::test_leapfrog_methods": 0.00036935399839421734, + "pgmpy/tests/test_sampling/test_base_continuous.py::TestModifiedEuler::test_modified_euler_methods": 0.0003771350020542741, + "pgmpy/tests/test_sampling/test_continuous_sampling.py::TestHMCInference::test_acceptance_prob": 0.00021591599943349138, + "pgmpy/tests/test_sampling/test_continuous_sampling.py::TestHMCInference::test_adapt_params": 0.00016311700528603978, + "pgmpy/tests/test_sampling/test_continuous_sampling.py::TestHMCInference::test_errors": 0.0001611179977771826, + "pgmpy/tests/test_sampling/test_continuous_sampling.py::TestHMCInference::test_find_reasonable_stepsize": 0.00023108699679141864, + "pgmpy/tests/test_sampling/test_continuous_sampling.py::TestHMCInference::test_sample": 0.8637056420011504, + "pgmpy/tests/test_sampling/test_continuous_sampling.py::TestNUTSInference::test_errors": 0.00022834800256532617, + "pgmpy/tests/test_sampling/test_continuous_sampling.py::TestNUTSInference::test_sampling": 5.087173680007254, + "pgmpy/tests/test_utils/test_optimizer.py::TestOptimize::test_optimize": 0.00022450799588114023, + "pgmpy/tests/test_utils/test_optimizer.py::Testpinverse::test_pinverse": 0.00016127800336107612, + "pgmpy/tests/test_utils/test_optimizer.py::Testpinverse::test_pinverse_zeros": 0.00013471800048137084, + "pgmpy/tests/test_utils/test_state_name.py::StateNameDecorator::test_assignment_statename": 0.0005485520014190115, + "pgmpy/tests/test_utils/test_state_name.py::StateNameDecorator::test_factor_reduce_statename": 0.0007581879981444217, + "pgmpy/tests/test_utils/test_state_name.py::StateNameDecorator::test_inference_query_statename": 0.0020190930008539, + "pgmpy/tests/test_utils/test_state_name.py::StateNameDecorator::test_reduce_cpd_statename": 0.0007514499993703794, + "pgmpy/tests/test_utils/test_state_name.py::TestStateNameInit::test_cpd_init_statename": 0.0005682619994331617, + "pgmpy/tests/test_utils/test_state_name.py::TestStateNameInit::test_factor_init_statename": 0.0004508739984885324, + "pgmpy/tests/test_utils/test_utils.py::TestDAGCreation::test_get_example_model": 35.147072200001276, + "pgmpy/tests/test_utils/test_utils.py::TestDiscretization::test_rounding_disc": 0.0038768650010752026, + "pgmpy/tests/test_utils/test_utils.py::TestPairwiseOrientation::test_llm": 0.00010028799806605093 +} \ No newline at end of file diff --git a/testbed/pgmpy__pgmpy/AUTHORS.rst b/testbed/pgmpy__pgmpy/AUTHORS.rst new file mode 100644 index 0000000000000000000000000000000000000000..5f042128767504dd3251e33c86bde30b4e15de47 --- /dev/null +++ b/testbed/pgmpy__pgmpy/AUTHORS.rst @@ -0,0 +1,119 @@ +People +------ + +Organisation Admins +=================== + +* Ankur Ankan + +* Abinash Panda + +Contributors +============ + +* Ankur Ankan +* Abinash Panda +* Yashu Seth +* palashahuja +* Utkarsh Gupta +* Vivek Jain +* Utkarsh +* Pratyaksh Sharma +* ankurankan +* chrisittner +* navin +* Abinash Panda +* kislayabhi +* finn42 +* Raghav Gupta +* abinashpanda +* joncrall +* lohani2280 +* Anavil Tripathi +* jp111 +* snigam3112 +* Ashwini Chaudhary +* Kshitij Saraogi +* nehasoni +* Christian Ittner +* Harish Kashyap +* cs15mtech11007@iith.ac.in +* Shikhar Nigam +* Zhongpeng Lin +* loudly-soft +* Pratik151 +* Simon Brugman +* Sitesh Ranjan +* Zhongpeng Lin +* Anchit Jain +* Demyanov +* Justin Tervala +* Pratyaksh +* Utkarsh Sinha +* abhi95 +* mailman_anchit +* Alaa ElNouby +* Max Baak +* Melissa Turcotte +* elkbrsathuji +* karttikeya +* Alex Perusse +* Ashutosh-Adhikari +* Ayan Das +* Daan Knoope +* Jon Crall +* Marco Tamassia +* Pratyaksh Sharma +* Randy Julian +* Tristan Deleu +* all3fox +* heldmo <52459329+heldmo@users.noreply.github.com> +* joncrall +* sudarshan +* vivek425ster +* Alireza Mehrtash +* Arijit-hydrated +* Bhavya Bahl +* BrettW +* Chris Kamphuis +* Céline Comte +* Deepak Garg +* Fabio Colella +* IvanaXu <1440420407@qq.com> +* Jaidev Deshpande +* Jinyan Guan +* Joan Zheng +* Jon Badger +* JustinTervala +* Kris Singh +* Lorenzo Mario Amorosa <38985168+Lostefra@users.noreply.github.com> +* Marcus Östling +* Maximilian Kurthen +* Nishant Nikhil +* Paul Chaignon +* Rafael Ballester-Ripoll +* Randy +* Roy Abitbol +* Sahithi Kilaru +* Saket Choudhary +* Sandeep Narayanaswami +* Sandeep Narayanaswami +* Sandhya Kumari +* Steffen Roecker +* The Gitter Badger +* Ubuntu +* William Lyon +* Yi(Amy) Sui +* Yichuan <63798002+yzh211@users.noreply.github.com> +* Yidi Huang +* abinash +* davenza +* fabriziov +* julian.reichinger +* mjmt05 +* njwhite +* pdoongarwal +* pheman +* rishabmarkand +* sleepy-owl +* yashml diff --git a/testbed/pgmpy__pgmpy/CHANGELOG.md b/testbed/pgmpy__pgmpy/CHANGELOG.md new file mode 100644 index 0000000000000000000000000000000000000000..7ed5cd73a886a88a7d98d6e06b5fd5b4d607d1f6 --- /dev/null +++ b/testbed/pgmpy__pgmpy/CHANGELOG.md @@ -0,0 +1,293 @@ +# Changelog +All notable changes to this project will be documented in this file. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +## [0.1.26] - 2024-08-09 +### Added +1. Support for returning Belief Propagation messages in Factor Graph BP. +2. Maximum Likelihood Estimator for Junction Tree. +3. Adds a simple discretization method: `pgmpy.utils.discretize`. +4. Two new metrics for model testing: `pgmpy.metrics.implied_cis` and `pgmpy.metrics.fisher_c`. +5. Support for Linear Gaussian Bayesian Networks: estimation, prediction, simulation and random model generation. +7. New mixed data Conditional Independence test based on canonical correlations. +8. New LLM based structure learning / causal discovery algorithm. Also LLM based pairwise variable orientation method. + + +### Fixed +1. Reading and Writing from XBN file format. +2. Documentation for plotting models. +3. Fixes PC algorithm to add disconnected nodes in the final model. +4. Allows `.` in variables names in BIF file format. + +### Changed +1. Allows `virtual_evidence` parameter in inference methods to accept DiscreteFactor objects. + +## [0.1.25] - 2024-03-08 +### Added +1. `init_cpds` argument to `ExpecattionMaximiation.get_parameters` to specify initialization values. +2. BeliefPropagation with message passing for Factor Graphs. +3. Marginal Inference for undirected graphs. + +### Fixed +1. Incompatibality with networkx==3.2. +2. `CausalInference.get_minimal_adjustment_set` to accept string variable names. +3. Bug in EM when latent varaibles are present. +4. `compat_fns.copy` to consider the case when int or float is passed. +5. Fixes issue with `BayesianNetwork.fit_update` when running with CUDA backend. + +### Changed +1. Documentation Updates +2. Optimizations for Hill Climb Search algorithm. +3. Tests shutdown parallel workers in teardown. +4. Removes the `complete_samples_only` argument from `BaseEstimator.state_counts`. +5. Default number of cores to use changed to 1 for parameter estimation methods. + +## [0.1.24] - 2023-06-30 +### Added +1. Added support for python 3.11. +2. Adds `DAG.to_graphviz` and `PDAG.to_graphviz` methods to convert model to graphviz objects. +3. Adds pytorch as an alternative backend. +4. Adds unicode support for BIFReader. + +### Fixed +1. Warnings use a logger instance. +2. Fixes documentation. +3. Fixes variables name arguments for `CausalInference.get_minimal_adjustment_set` + +### Changed +1. Adds argument to specify samples for ApproxInference. +2. Memory optimizations for computing structure scores. +3. Switches joblib backed to loky. +4. Runtime optimizations for sampling. +5. Runtime optimizations for Variable Elimination. +6. All config variables moved to `pgmpy.global_vars`. + +## [0.1.23] - 2023-06-30 +### Added +1. BIFReader made compatible with the output of PyAgrum +2. Support for all available CI tests in PC algorithm. +3. References for read/write file formats. + +### Removed +1. Removes `DAG.to_pdag` method. + +### Changed +1. Fixes for ApproxInference for DBNs. +2. Make `xml.etree` the default parser instead of using lxml. + +## [0.1.22] - 2023-04-08 +### Added +1. AIC score metric from score based structure learning. +2. Adds support for NET (HUGIN) file format. +3. Adds argument reindex to `state_counts` method. + +### Fixed +1. Bug in GibbsSampling when sampling from Bayesian Networks. +2. Fix seed for all simulation methods. +3. Memory leaks when using `lru_cache`. + +### Changed +1. Caching disabled for computing state name counts during structure learning. +2. Pre-computation for sampling methods are optimized. + +## [0.1.21] - 2022-12-31 +### Added +1. `BayesianNetwork.get_state_probability` method to compute the probability of a given evidence. +2. `BayesianEstimator.estimate_cpd` accepts weighted datasets. + +### Fixed +1. Fixes bug in `CausalInference.estimate_ate` with front-door criterion. +2. Fixes inference bugs when variable has a single state. + +## [0.1.20] - 2022-09-30 +### Added +1. `BayesianNetwork.get_random_cpds` method to randomly parameterize a network structure. +2. Faster Variable Elimination using tensor contraction. +3. `factors.factor_sum_product` method for faster sum-product operations using tensor contraction. + +### Fixed +1. Bug in `DynamicBayesianNetwork.initialize_initial_state`. #1564 +2. Bug in `factors.factor_product`. #1565 + +### Changed +1. Runtime improvements in `DiscreteFactor.marginalize` and `DiscreteFactor.copy` methods. + +## [0.1.19] - 2022-06-30 +### Added +1. Adds checks for arguments to `BayesianNetwork.simulate` method. + +### Fixed +1. Fixes TAN algorithm to use conditional information metric. +2. Speed ups for all estimation and inference methods. +3. Fix in stable variant of PC algorithm to give reproducible results. +4. Fix in `GibbsSampling` for it to work with variables with integral names. +5. `DAG.active_trail_nodes` allows tuples as variable names. +6. Fixes CPD and edge creation in `UAIReader`. + +## [0.1.18] - 2022-03-30 +### Fixed +1. Fixes `CausalInference.is_valid_backdoor_adjustment_set` to accept str arguments for `Z`. +2. Fixes `BayesianNetwork.remove_cpd` to work with integral node names. +3. Fixes `MPLP.map_query` to return the variable states instead of probability values. +4. Fixes BIFWriter to generate output in standard BIF format. + +## [0.1.17] - 2021-12-30 +### Added +1. Adds BayesianNetwork.states property to store states of all the variables. +2. Adds extra checks in check model for state names + +### Fixed +1. Fixes typos in BayesianModel deprecation warning +2. Bug fix in printing Linear Gaussian CPD +3. Update example notebooks to work on latest dev. + +## [0.1.16] - 2021-09-30 +### Added +1. Adds a `fit_update` method to `BayesianNetwork` for updating model using new data. +2. Adds `simulate` method to `BayesianNetwork` and `DynamicBayesianNetwork` to simulated data under different conditions. +3. Adds `DynamicBayesianNetwork.fit` method to learn model paramters from data. +4. `ApproxInference` class to do approximate inference on models using sampling. +5. Robust tests for all sampling methods. +6. Adds `BayesianNetwork.load` and `BayesianNetwork.save` to quickly read and write files. + +### Changed +1. `BayesianModel` and `MarkovModel` renamed to `BayesianNetwork` and `MarkovNetwork` respectively. +2. The default value of node position in `DAG.to_daft` method. +3. Documentation updated on the website. + +### Fixed +1. Fixes bug in `DAG.is_iequivalent` method. +2. Automatically truncate table when CPD is too large. +3. Auto-adjustment of probability values when they don't exactly sum to 1. +4. tqdm works both in notebooks and terminal. +5. Fixes bug in `CausalInference.query` method. + +## [0.1.15] - 2021-06-30 +### Added +1. Adds network pruning for inference algrithms to reduce the size of network before + running inference. +2. Adds support for latent variables in DAG and BayesianModel. +3. Parallel implementation for parameter estimation algorithms. +4. Adds `DAG.get_random` and `BayesianModel.get_random` methods to be able to generate random models. +5. Adds `CausalInference.query` method for doing do operation inference with or without adjustment sets. +6. Adds functionality to treesearch to do auto root and class node selection (#1418) +7. Adds option to specify virtual evidence in bayesian network inference. +8. Adds Expectation-Maximization (EM) algorithm for parameter estimation in latent variable models. +9. Add `BDeuScore` as another option for structure score when using HillClimbSearch. +10. Adds CausalInference.get_minimal_adjustment_set` for finding adjustment sets. + +### Changed +1. Renames `DAG.is_active_trail` to `is_dconnected`. +2. `DAG.do` can accept multiple variables in the argument. +3. Optimizes sampling methods. +4. CI moved from travis and appveyor to github actions. +5. Drops support for python 3.6. Requires 3.7+. + +### Fixed +1. Example model files were not getting included in the pypi and conda packages. +2. The order of values returned by CI tests was wrong. #1403 +3. Adjusted and normalized MI wasn't working properly in TreeSearch. +4. #1423: Value error in bayesian estimation. +5. Fixes bug in `DiscreteFactor.__eq__` to also consider the state names order. + +## [0.1.14] - 2021-03-31 +### Added +1. Adds support for python 3.9. +2. `BayesianModelProbability` class for calculating pmf for BNs. +3. BayesianModel.predict has a new argument `stochastic` which returns stochastic results instead of MAP. +4. Adds new method pgmpy.base.DAG.to_daft to easily convert models into publishable plots. + +### Changed +1. `pgmpy.utils.get_example_model` now doesn't need internet connection to work. Files moved locally. + +### Fixed +1. Latex output of `pgmpy.DAG.get_independencies`. +2. Bug fix in PC algorithm as it was skipping some combinations. +3. Error in sampling because of seed not correctly set. + +## [0.1.13] - 2020-12-30 +### Added +1. New conditional independence tests for discrete variables + +### Changed +1. Adds warning in BayesianEstimator when using dirichlet prior. + +### Fixed +1. Bug in `PC.skeleton_to_pdag`. +2. Bug in `HillClimbSearch` when no legal operations. + +### Removed + +## [0.1.12] - 2020-09-30 +### Added +1. PC estimator with original, stable, and parallel variants. +2. PDAG class to represent partially directed DAGs. +3. `pgmpy.utils.get_example_model` function to fetch models from bnlearn repository. +4. Refactor HillClimbSearch with a new feature to specify fixed edges in the model. +5. Adds a global `SHOW_PROGRESS` variable. +6. Adds Chow-Liu structure learning algorithm. +7. Add `pgmpy.utils.get_example_model` to fetch models from bnlearn's repository. +8. Adds `get_value` and `set_value` method to `DiscreteFactor` to get/set a single value. +9. Adds `get_acestral_graph` to `DAG`. + +### Changed +1. Refactors ConstraintBasedEstimators into PC with a lot of general improvements. +2. Improved (faster, new arguments) indepenedence tests with changes in argument. +3. Refactors `sample_discrete` method. Sampling algorithms much faster. +4. Refactors `HillClimbSearch` to be faster. +5. Sampling methods now return dataframe of type categorical. + +### Fixed + +### Removed +1. `Data` class. + +## [0.1.11] - 2020-06-30 +### Added +- New example notebook: Alarm.ipynb +- Support for python 3.8 +- Score Caching support for scoring methods. + +### Changed +- Code quality check moved to codacy from landscape +- Additional parameter `max_ci_vars` for `ConstraintBasedEstimator`. +- Additional parameter `pseudo_count` for K2 score. +- Sampling methods return state names instead of number when available. +- XMLBIFReader and BIFReader not accepts argument for specifying state name type. + +### Fixed +- Additional checks for TabularCPD values shape. +- `DiscreteFactor.reduce` accepts both state names and state numbers for variables. +- `BeliefPropagation.query` fixed to return normalized CPDs. +- Bug in flip operation in `HillClimbSearch`. +- BIFWriter to write the state names to file if available. +- `BayesianModel.to_markov_model` fixed to work with disconnected graphs. +- VariableElimination fixed to not ignore identifical factors. +- Fixes automatic sorting of state names in estimators. + +### Removed +- No support for ProbModelXML file format. + +## [0.1.10] - 2020-01-22 +### Added +- Documentation updated to include Structural Equation Models(SEM) and Causal Inference. +- Adds Mmhc estimator. + +### Changed +- BdeuScore is renamed to BDeuScore. +- Refactoring of NaiveBayes +- Overhaul of CI and setup infrastructure. +- query methods check for common variabls in variable and evidence argument. + +### Fixed +- Example notebooks for Inference. +- DAG.moralize gives consistent results for disconnected graphs. +- Fixes problems with XMLBIF and BIF reader and writer classes to be consistent. +- Better integration of state names throughout the package. +- Improves remove_factors and add_factors methods of FactorGraph +- copy method of TabularCPD and DiscreteFactor now makes a copy of state names. + +### Removed +- six not a dependency anymore. diff --git a/testbed/pgmpy__pgmpy/CITATION.cff b/testbed/pgmpy__pgmpy/CITATION.cff new file mode 100644 index 0000000000000000000000000000000000000000..c8bac89740273bf610a6b68b4860b0a6af4e7614 --- /dev/null +++ b/testbed/pgmpy__pgmpy/CITATION.cff @@ -0,0 +1,23 @@ +cff-version: 1.2.0 +message: "If you use this software, please cite it as below." +authors: +- family-names: "Ankan" + given-names: "Ankur" +- family-names: "Textor" + given-names: "Johannes" +title: "pgmpy: A Python Toolkit for Bayesian Networks" +version: 0.1.26 +url: "https://github.com/pgmpy/pgmpy" +preferred-citation: + type: article + authors: + - family-names: "Ankan" + given-names: "Ankur" + - family-names: "Textor" + given-names: "Johannes" + journal: "Journal Of Machine Learning Research" + start: 1 + end: 8 + title: "pgmpy: A Python Toolkit for Bayesian Networks" + issue: 25 + year: 2024 diff --git a/testbed/pgmpy__pgmpy/CODE_OF_CONDUCT.md b/testbed/pgmpy__pgmpy/CODE_OF_CONDUCT.md new file mode 100644 index 0000000000000000000000000000000000000000..3b38496a220739061e3953dbd6b79ce4da2354eb --- /dev/null +++ b/testbed/pgmpy__pgmpy/CODE_OF_CONDUCT.md @@ -0,0 +1,76 @@ +# Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to make participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies within all project spaces, and it also applies when +an individual is representing the project or its community in public spaces. +Examples of representing a project or community include using an official +project e-mail address, posting via an official social media account, or acting +as an appointed representative at an online or offline event. Representation of +a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project maintainer at ankurankan@gmail.com. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq diff --git a/testbed/pgmpy__pgmpy/Contributing.md b/testbed/pgmpy__pgmpy/Contributing.md new file mode 100644 index 0000000000000000000000000000000000000000..6921badb61181f9c815c76ea1cc38d6eff3e2256 --- /dev/null +++ b/testbed/pgmpy__pgmpy/Contributing.md @@ -0,0 +1,106 @@ +# Contributing to pgmpy + +Hi! Thanks for your interest in contributing to [pgmpy](https://pgmpy.org). This +document summarizes everything that you need to know to get started. + +## Code and Issues + +We use [Github](https://github.com/pgmpy/pgmpy) to host all our code. We also use github +as our [issue tracker](https://github.com/pgmpy/pgmpy/issues). Please feel free to +create a new issue for any bugs, questions etc. It is very helpful if you follow the +issue template while creating new issues as it gives us enough information to reproduce +the problem. You can also refer to github's +[guide](https://guides.github.com/features/issues/) on how to efficiently use github +issues. + +### Git and our Branching model + +#### Git + +We use [Git](http://git-scm.com/) as our [version control +system](http://en.wikipedia.org/wiki/Revision_control), so the best way to contribute is +to learn how to use it and put your changes on a Git repository. There is plenty of +online resources available to get started with Git: +- Online tool to try git: [try git + tutorial](https://try.github.io/levels/1/challenges/1) +- Quick intro to opening your first Pull Request: + https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github-3/ +- Git reference: [Pro Git book](http://git-scm.com/book/). + +#### Forks + GitHub Pull Requests + +We use [gitflow](http://nvie.com/posts/a-successful-git-branching-model/) to manage our +branches. + +Summary of our git branching model: +- Fork the desired repository on GitHub to your account. +- Clone your forked repository locally: `git clone git@github.com:your-username/repository-name.git`. +- Create a new branch off of `dev` branch with a descriptive name (for example: + `feature/portuguese-sentiment-analysis`, `hotfix/bug-on-downloader`). You can + do it by switching to `dev` branch: `git checkout dev` and then + creating a new branch: `git checkout -b name-of-the-new-branch`. +- Make changes to the codebase and commit it. [Imp] Make sure that tests pass for each of your commits. +- Rebase your branch on the current dev and push to your fork on GitHub (with the name as your local branch: + `git push origin branch-name` +- Create a pull request using GitHub's Web interface (asking us to pull the + changes from your new branch and add the changes to our `dev` branch).; +- Wait for reviews and comments. + + +#### Tips + +- [Imp] Write [helpful commit + messages](http://robots.thoughtbot.com/5-useful-tips-for-a-better-commit-message). +- Anything in the `dev` branch should be deployable (no failing tests). +- Never use `git add .`: it can add unwanted files; +- Avoid using `git commit -a` unless you know what you're doing; +- Check every change with `git diff` before adding then to the index (stage + area) and with `git diff --cached` before committing; +- If you have push access to the main repository, please do not commit directly + to `dev`: your access should be used only to accept pull requests; if you + want to make a new feature, you should use the same process as other + developers so that your code can be reviewed. + + +### Code Guidelines + +- We use `black`(https://black.readthedocs.io/en/stable/) for our code formatting. +- Write tests for your new features (please see "Tests" topic below); +- Always remember that [commented code is dead + code](http://www.codinghorror.com/blog/2008/07/coding-without-comments.html); +- Name identifiers (variables, classes, functions, module names) with readable + names (`x` is always wrong); +- When manipulating strings, use [Python's f-Strings](https://realpython.com/python-f-strings/) + (`f'{a} = {b}'` instead of `'{} = {}'.format(a, b)`); +- When working with files use `with open(,