Causal Dynamics of Social Gaze in Primate Prefrontal-Amygdala Networks Revealed by Dynamic Bayesian Modeling.
The 2 matches
- [1] § Methods › Dynamic Bayesian network pipeline › Fitting dynamic Bayesian network models ↔ pgmpy/causal_discovery/HillClimbSearch.py, lines 16–131 · score 0.81 · hill climbing, directed acyclic graph, search algorithm, tabu, history, iterations
- [2] § Results › An algorithm for discovering causal dependencies in “super-sessions” ↔ pgmpy/models/LinearGaussianBayesianNetwork.py, lines 20–102 · score 0.52 · Gaussian noise, linear function, Bayesian Network, X3, X1, X2
Paper
Loaded from Europe PMC by your browser, not stored by OSCR: doi.org · Europe PMC
The paper is loaded when this pane is shown.
The authors' code
Python · 259 lines · 10 KB · MIT · 1 match
- from collections import deque
- from collections.abc import Hashable
- import networkx as nx
- import pandas as pd
- from sklearn.base import clone
- from tqdm.auto import trange
- from pgmpy import config
- from pgmpy.base import DAG
- from pgmpy.causal_discovery import ExpertKnowledge
- from pgmpy.causal_discovery._base import BaseCausalDiscovery, _ScoreMixin
- from pgmpy.structure_score import BaseStructureScore, get_scoring_method
- class HillClimbSearch(_ScoreMixin, BaseCausalDiscovery):
- """
- Score-based causal discovery using hill climbing optimization.
- This class implements the HillClimbSearch algorithm [1] for causal discovery.
- Given a tabular dataset, the algorithm estimates the causal structure among
- the variables in the data as a Directed Acyclic Graph (DAG). The algorithm
- works by iteratively making local modifications to the graph structure
- (adding, removing, or reversing edges) and keeping changes that improve
- the score until a local maximum is reached.
- The algorithm is a greedy local search method that:
- 1. Starts from an initial graph (empty by default or based on provided expert knowledge).
- 2. Evaluates all possible single-edge modifications (add, delete, reverse).
- 3. Applies the modification with the highest score improvement.
- 4. Repeats until no improvement can be made.
- A tabu list is used to prevent the algorithm from immediately undoing recent
- changes, which helps avoid getting stuck in local optima.
- Parameters
- ----------
- scoring_method : str or BaseStructureScore instance, default=None
- The score to be optimized during structure estimation. Please refer :doc:`/api/structure_score` for a list of
- available scoring methods.
- If ``None``, the appropriate scoring method is automatically selected based on the data type. If a string is
- provided, the corresponding scoring method is instantiated with default parameters. To customize score-specific
- parameters, please pass an instance of the scoring class.
- start_dag : DAG instance, default=None
- The starting point for the local search. By default, a completely
- disconnected network (no edges) is used. If provided, the DAG must
- contain exactly the same variables as in the data.
- tabu_length : int, default=100
- The number of recent graph modifications to store in the tabu list.
- These modifications cannot be reversed during the search procedure.
- This serves to enforce a wider exploration of the search space.
- max_indegree : int or None, default=None
- If provided, the procedure only searches among models where all nodes
- have at most ``max_indegree`` parents. This can significantly reduce
- the search space and computation time for large graphs.
- expert_knowledge : ExpertKnowledge instance, default=None
- Expert knowledge to be used with the algorithm. Expert knowledge
- allows specification of:
- - Required edges that must be present in the final graph
- - Forbidden edges that cannot be present in the final graph
- - Temporal ordering of nodes
- return_type : str, default='pdag'
- The type of graph to return. Options are:
- - 'dag': Returns a directed acyclic graph (DAG).
- - 'pdag': Returns a partially directed acyclic graph (PDAG) where edges that
- could not be oriented are left undirected.
- epsilon : float, default=1e-4
- Defines the exit condition. If the improvement in score is less
- than ``epsilon``, the algorithm terminates and returns the learned model.
- max_iter : int, default=1e6
- The maximum number of iterations allowed. The algorithm terminates
- and returns the learned model when the number of iterations exceeds
- ``max_iter``.
- show_progress : bool, default=True
- If True, shows a progress bar while learning the causal structure.
- Attributes
- ----------
- causal_graph_ : DAG
- The learned causal graph as a DAG at a (local) score maximum.
- adjacency_matrix_ : pd.DataFrame
- Adjacency matrix representation of the learned causal graph.
- n_features_in_ : int
- The number of features in the data used to learn the causal graph.
- feature_names_in_ : np.ndarray
- The feature names in the data used to learn the causal graph.
- Examples
- --------
- Simulate some data to use for causal discovery:
- >>> from pgmpy.example_models import load_model
- >>> model = load_model("bnlearn/alarm")
- >>> df = model.simulate(n_samples=1000, seed=42)
- Use the HillClimbSearch algorithm to learn the causal structure from data:
- >>> from pgmpy.causal_discovery import HillClimbSearch
- >>> hc = HillClimbSearch(scoring_method="bic-d")
- >>> hc.fit(df)
- HillClimbSearch(scoring_method='bic-d')
- >>> _ = hc.causal_graph_.edges()
- Use expert knowledge to constrain the search:
- >>> from pgmpy.causal_discovery import ExpertKnowledge
- >>> expert = ExpertKnowledge(forbidden_edges=[("HISTORY", "CVP")])
- >>> hc = HillClimbSearch(scoring_method="bic-d", expert_knowledge=expert)
- >>> hc.fit(df) # doctest: +ELLIPSIS
- HillClimbSearch(expert_knowledge=ExpertKnowledge(...),
- scoring_method='bic-d')
- References
- ----------
- - :footcite:t:`koller_friedman_2009`
- """
- def __init__(
- self,
- scoring_method: str | BaseStructureScore | None = None,
- start_dag: DAG | None = None,
- tabu_length: int = 100,
- max_indegree: int | None = None,
- expert_knowledge: ExpertKnowledge | None = None,
- return_type: str = "pdag",
- epsilon: float = 1e-4,
- max_iter: int = int(1e6),
- show_progress: bool = True,
- ):
- self.scoring_method = scoring_method
- self.start_dag = start_dag
- self.tabu_length = tabu_length
- self.max_indegree = max_indegree
- self.expert_knowledge = expert_knowledge
- self.return_type = return_type
- self.epsilon = epsilon
- self.max_iter = max_iter
- self.show_progress = show_progress
- def _fit(self, X: pd.DataFrame):
- """
- The fitting procedure for the HillClimbSearch algorithm.
- Parameters
- ----------
- X : pd.DataFrame or np.ndarray
- The data to learn the causal structure from. If a numpy array is
- passed, then the column names would be integers from 0 to n_features-1.
- Returns
- -------
- self : pgmpy.causal_discovery.HillClimbSearch
- Returns the instance with the fitted attributes.
- """
- self.variables_ = list(X.columns)
- # Step 1: Initial checks and setup for arguments
- # Step 1.1: Check score
- score = get_scoring_method(self.scoring_method, X)
- # Step 1.2: Check the start_dag
- if self.start_dag is None:
- start_dag = DAG()
- start_dag.add_nodes_from(self.variables_)
- elif not isinstance(self.start_dag, DAG) or not set(self.start_dag.nodes()) == set(self.variables_):
- raise ValueError("'start_dag' should be a DAG with the same variables as the data set, or 'None'.")
- else:
- start_dag = self.start_dag.copy()
- # Step 1.3: Check if expert knowledge was specified
- if self.expert_knowledge is None:
- expert_knowledge = ExpertKnowledge()
- else:
- # Clone so the fitted (`*_`) attributes land on a fresh copy, not the user's object.
- expert_knowledge = clone(self.expert_knowledge)
- # Step 1.3.1: Resolve the expert knowledge into its fitted (`*_`) attributes.
- expert_knowledge.fit(X)
- # Step 1.4: Check if required edges cause a cycle
- start_dag.add_edges_from(expert_knowledge.required_edges_)
- if not nx.is_directed_acyclic_graph(start_dag):
- raise ValueError(
- "required_edges create a cycle in start_dag. Please modify either required_edges or start_dag."
- )
- start_dag.remove_edges_from(expert_knowledge.forbidden_edges_)
- # Step 1.5: Initialize max_indegree, tabu_list, and progress bar
- max_indegree = self.max_indegree
- if max_indegree is None:
- max_indegree = float("inf")
- tabu_list: deque[tuple[str, tuple[Hashable, Hashable]]] = deque(maxlen=self.tabu_length)
- current_model = start_dag
- if self.show_progress and config.SHOW_PROGRESS:
- iteration = trange(int(self.max_iter))
- else:
- iteration = range(int(self.max_iter))
- # Step 2: For each iteration, find the best scoring operation and
- # do that to the current model. If no legal operation is
- # possible, sets best_operation=None.
- for _ in iteration:
- best_operation, best_score_delta = max(
- self._legal_operations_dag(
- model=current_model,
- scoring_method=score,
- tabu_list=tabu_list,
- max_indegree=max_indegree,
- forbidden_edges=expert_knowledge.forbidden_edges_,
- required_edges=expert_knowledge.required_edges_,
- ),
- key=lambda t: t[1],
- default=(None, None),
- )
- if best_operation is None or best_score_delta < self.epsilon:
- break
- elif best_operation[0] == "+":
- current_model.add_edge(*best_operation[1])
- tabu_list.append(("-", best_operation[1]))
- elif best_operation[0] == "-":
- current_model.remove_edge(*best_operation[1])
- tabu_list.append(("+", best_operation[1]))
- elif best_operation[0] == "flip":
- X_node, Y_node = best_operation[1]
- current_model.remove_edge(X_node, Y_node)
- current_model.add_edge(Y_node, X_node)
- tabu_list.append(best_operation)
- # Step 3: Store results
- if self.return_type.lower() == "dag":
- self.causal_graph_ = current_model
- elif self.return_type.lower() == "pdag":
- self.causal_graph_ = current_model.to_pdag()
- else:
- raise ValueError(f"return_type must be one of: dag, pdag, or cpdag. Got: {self.return_type}")
- self.adjacency_matrix_ = self.causal_graph_.to_adjacency(
- encoding="binary", nodelist=list(self.causal_graph_.nodes())
- )
- return self
HillClimbSearch.py at commit fa42ee2, under MIT · at the source
Overview
- Inderdepartmental Neuroscience Program, Yale University,New Haven, CT USA
- Department of Neuroscience, Yale University,New Haven, CT USA
- Department of Psychology, Yale University,New Haven, CT USA
- The Rockefeller University,New York, NY USA
- Department of Psychology, University of Turin,Torino, Italy
- Department of Psychiatry, Yale University,New Haven, CT USA
- Wu Tsai Institute, Yale University,New Haven, CT USA
- Kavli Institute for Neuroscience, Yale University,New Haven, CT USA
Abstract
The abstract is not reproduced here: the paper's license (CC BY-NC-ND) does not allow it. Read it in the paper, at the publisher or on Europe PMC.
Repositories
Its files are read in the Code ↔ Paper reader above, with 2 matches between paragraphs and lines of code.
pgmpy/pgmpy
fa42ee20e09488b10f9f556abed8ad415658ed05, 26 September 2026Availability: 1 check, the latest on 27 September 2026: the link answers
- 27 September 2026: the link answers
658 files
- devtools/
extension_templates/ , Python, 84 lines_causal_discovery.py - devtools/
extension_templates/ , Python, 101 lines_ci_tests.py - devtools/
extension_templates/ , Python, 104 lines_dataset.py - devtools/
extension_templates/ , Python, 83 lines_example_model.py - devtools/
extension_templates/ , Python, 216 lines_metrics.py - devtools/
extension_templates/ , Python, 139 lines_structure_score.py - devtools/
scripts/ , R, 181 linesconvert_bnrep_models.R - docs/
_ext/ , Python, 876 linespgmpy_docs.py - docs/
_ext/ , Python, 7 linesprepare_docs_sources.py - docs/
conf.py , Python, 214 lines - examples/
Basic_Operations_on_BN.i , Jupyter, 143 linespynb - examples/
Causal_Games.ipynb , Jupyter, 220 lines - examples/
Causal_Inference.ipynb , Jupyter, 128 lines - examples/
Creating_Discrete_BN.ipy , Jupyter, 153 linesnb - examples/
Creating_Linear_BN.ipynb , Jupyter, 152 lines - examples/
Defining_CPDs.ipynb , Jupyter, 124 lines - examples/
Dynamic_BN.ipynb , Jupyter, 171 lines - examples/
Expert_Knowledge.ipynb , Jupyter, 194 lines - examples/
Extending_pgmpy.ipynb , Jupyter, 85 lines - examples/
Functional_Bayesian_Netw , Jupyter, 255 linesork_Tutorial.ipynb - examples/
Inference_Discrete_BN.ip , Jupyter, 96 linesynb - examples/
Junction_Tree_Inference. , Jupyter, 116 linesipynb - examples/
Monty_Hall.ipynb , Jupyter, 101 lines - examples/
Parameter_Learning_Discr , Jupyter, 123 linesete_BN.ipynb - examples/
Parameter_Learning_Facto , Jupyter, 239 linesr_Graphs.ipynb - examples/
Simulating_Data.ipynb , Jupyter, 206 lines - examples/
Structure_Learning.ipynb , Jupyter, 121 lines - examples/
Structure_Learning_Chow_ , Jupyter, 87 linesLiu.ipynb - examples/
Structure_Learning_TAN.i , Jupyter, 121 linespynb - pgmpy/
__init__.py , Python, 7 lines - pgmpy/
base/ , Python, 39 linesADMG.py - pgmpy/
base/ , Python, 2,037 linesDAG.py - pgmpy/
base/ , Python, 220 linesMAG.py - pgmpy/
base/ , Python, 302 linesPDAG.py - pgmpy/
base/ , Python, 166 linesSimpleCausalModel.py - pgmpy/
base/ , Python, 235 linesUndirectedGraph.py - pgmpy/
base/ , Python, 15 lines__init__.py - pgmpy/
base/ , Python, 514 lines_algorithms.py - pgmpy/
base/ , Python, 1,774 lines_base.py - pgmpy/
base/ , Python, 322 lines_mixin_roles.py - pgmpy/
base/ , Python, 159 lines_plotting.py - pgmpy/
causal_discovery/ , Python, 213 linesANM.py - pgmpy/
causal_discovery/ , Python, 140 linesChowLiu.py - pgmpy/
causal_discovery/ , Python, 381 linesExpertInLoop.py - pgmpy/
causal_discovery/ , Python, 370 linesExpertKnowledge.py - pgmpy/
causal_discovery/ , Python, 509 linesGES.py - pgmpy/
causal_discovery/ , Python, 259 lines, 1 matchHillClimbSearch.py - pgmpy/
causal_discovery/ , Python, 157 linesIGCI.py - pgmpy/
causal_discovery/ , Python, 203 linesLLMPairwise.py - pgmpy/
causal_discovery/ , Python, 369 linesPC.py - pgmpy/
causal_discovery/ , Python, 100 linesR2Sort.py - pgmpy/
causal_discovery/ , Python, 232 linesSP.py - pgmpy/
causal_discovery/ , Python, 241 linesTAN.py - pgmpy/
causal_discovery/ , Python, 187 linesTOPIC.py - pgmpy/
causal_discovery/ , Python, 82 linesVarSort.py - pgmpy/
causal_discovery/ , Python, 31 lines__init__.py - pgmpy/
causal_discovery/ , Python, 766 lines_base.py - pgmpy/
causal_discovery/ , Python, 280 linesbivariate_scores.py - pgmpy/
ci_tests/ , Python, 36 lines__init__.py - pgmpy/
ci_tests/ , Python, 388 lines_base.py - pgmpy/
ci_tests/ , Python, 66 lineschi_square.py - pgmpy/
ci_tests/ , Python, 82 linesfisher_z.py - pgmpy/
ci_tests/ , Python, 68 linesg_sq.py - pgmpy/
ci_tests/ , Python, 92 linesgcm.py - pgmpy/
ci_tests/ , Python, 159 linesgeneralized_cov.py - pgmpy/
ci_tests/ , Python, 134 lineshotelling_lawley.py - pgmpy/
ci_tests/ , Python, 54 linesindependence_match.py - pgmpy/
ci_tests/ , Python, 68 lineslog_likelihood.py - pgmpy/
ci_tests/ , Python, 63 linesmodified_log_likelihood. py - pgmpy/
ci_tests/ , Python, 110 linespearsonr.py - pgmpy/
ci_tests/ , Python, 150 linespearsonr_equivalence.py - pgmpy/
ci_tests/ , Python, 145 linespillai_trace.py - pgmpy/
ci_tests/ , Python, 233 linespower_divergence.py - pgmpy/
ci_tests/ , Python, 139 linesroys_largest_root.py - pgmpy/
ci_tests/ , Python, 151 lineswilks_lambda.py - pgmpy/
datasets/ , Python, 14 lines__init__.py - pgmpy/
datasets/ , Python, 452 lines_base.py - pgmpy/
datasets/ , Python, 71 linesabalone.py - pgmpy/
datasets/ , Python, 62 linesadult.py - pgmpy/
datasets/ , Python, 28 linesairfoil.py - pgmpy/
datasets/ , Python, 41 linesalgeria.py - pgmpy/
datasets/ , Python, 35 linesangrist_krueger.py - pgmpy/
datasets/ , Python, 154 linesanm.py - pgmpy/
datasets/ , Python, 38 linesapple_watch_fitbit.py - pgmpy/
datasets/ , Python, 34 linesauto_mpg.py - pgmpy/
datasets/ , Python, 33 linesblue_driver.py - pgmpy/
datasets/ , Python, 35 linesboston_housing.py - pgmpy/
datasets/ , Python, 27 linescities.py - pgmpy/
datasets/ , Python, 28 linescollege_plans.py - pgmpy/
datasets/ , Python, 38 linescontraceptive_method.py - pgmpy/
datasets/ , Python, 27 linescovtype.py - pgmpy/
datasets/ , Python, 45 linescredit_approval.py - pgmpy/
datasets/ , Python, 66 linescystic_fibrosis.py - pgmpy/
datasets/ , Python, 29 linesdepression_coping.py - pgmpy/
datasets/ , Python, 18 linesdropouts.py - pgmpy/
datasets/ , Python, 34 linesdry_bean.py - pgmpy/
datasets/ , Python, 34 linesgalton_stature.py - pgmpy/
datasets/ , Python, 16 linesgoldberg.py - pgmpy/
datasets/ , Python, 35 lineshitters.py - pgmpy/
datasets/ , Python, 34 lineshtru2.py - pgmpy/
datasets/ , Python, 35 lineshungary_chickenpox.py - pgmpy/
datasets/ , Python, 34 linesiq_brain.py - pgmpy/
datasets/ , Python, 20 lineslead.py - pgmpy/
datasets/ , Python, 77 lineslinear_gaussian_scm.py - pgmpy/
datasets/ , Python, 36 linesmyocardial_infarction.py - pgmpy/
datasets/ , Python, 34 linespima_diabetes.py - pgmpy/
datasets/ , Python, 48 linespittsburgh_bridges.py - pgmpy/
datasets/ , Python, 50 linespopulation_threshold_rdd .py - pgmpy/
datasets/ , Python, 39 linesresidential_building.py - pgmpy/
datasets/ , Python, 185 linessachs.py - pgmpy/
datasets/ , Python, 28 linesseoul_bike.py - pgmpy/
datasets/ , Python, 54 linessouth_german_credit.py - pgmpy/
datasets/ , Python, 25 linesspartina.py - pgmpy/
datasets/ , Python, 67 linesstudent_performance.py - pgmpy/
datasets/ , Python, 34 linessuperconductivity.py - pgmpy/
datasets/ , Python, 17 linestubingen.py - pgmpy/
datasets/ , Python, 37 linesuscrime.py - pgmpy/
datasets/ , Python, 100 lineswine_quality.py - pgmpy/
datasets/ , Python, 34 linesyacht_hydrodynamics.py - pgmpy/
estimators/ , Python, 107 linesBaseConstraintEstimator. py - pgmpy/
estimators/ , Python, 252 linesBayesianEstimator.py - pgmpy/
estimators/ , Python, 323 linesCITests.py - pgmpy/
estimators/ , Python, 210 linesEM.py - pgmpy/
estimators/ , Python, 230 linesExhaustiveSearch.py - pgmpy/
estimators/ , Python, 65 linesExpertKnowledge.py - pgmpy/
estimators/ , Python, 102 linesGES.py - pgmpy/
estimators/ , Python, 102 linesHillClimbSearch.py - pgmpy/
estimators/ , Python, 33 linesLinearModel.py - pgmpy/
estimators/ , Python, 292 linesMLE.py - pgmpy/
estimators/ , Python, 223 linesMirrorDescentEstimator.p y - pgmpy/
estimators/ , Python, 217 linesMmhcEstimator.py - pgmpy/
estimators/ , Python, 122 linesPC.py - pgmpy/
estimators/ , Python, 487 linesSEMEstimator.py - pgmpy/
estimators/ , Python, 114 linesScoreCache.py - pgmpy/
estimators/ , Python, 187 linesStructureScore.py - pgmpy/
estimators/ , Python, 87 linesTreeSearch.py - pgmpy/
estimators/ , Python, 62 lines__init__.py - pgmpy/
estimators/ , Python, 364 linesbase.py - pgmpy/
estimators/ , Python, 210 linesexpert.py - pgmpy/
example_models/ , Python, 7 lines__init__.py - pgmpy/
example_models/ , Python, 197 lines_base.py - pgmpy/
example_models/ , Python, 1 linebnlearn/ __init__.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ alarm.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ andes.py - pgmpy/
example_models/ , Python, 20 linesbnlearn/ arth150.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ asia.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ barley.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ cancer.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ child.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ diabetes.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ earthquake.py - pgmpy/
example_models/ , Python, 20 linesbnlearn/ ecoli70.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ hailfinder.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ hepar2.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ insurance.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ link.py - pgmpy/
example_models/ , Python, 20 linesbnlearn/ magic_irri.py - pgmpy/
example_models/ , Python, 20 linesbnlearn/ magic_niab.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ mildew.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ munin.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ munin1.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ munin2.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ munin3.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ munin4.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ pathfinder.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ pigs.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ sachs.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ survey.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ water.py - pgmpy/
example_models/ , Python, 21 linesbnlearn/ win95pts.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ APSsystem.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ BOPfailure1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ BOPfailure2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ BOPfailure3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ GDIpathway1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ GDIpathway2.py - pgmpy/
example_models/ , Python, 1 linebnrep/ __init__.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ accidents.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ adhd.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ adversarialbehavior.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ aerialvehicles.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ agropastoral1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ agropastoral2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ agropastoral3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ agropastoral4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ agropastoral5.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ aircrash.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ airegulation1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ airegulation2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ airegulation3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ algal1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ algal2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ algalactivity1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ algalactivity2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ algorithms1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ algorithms2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ algorithms3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ algorithms4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ arcticwaters.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ argument.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ asia.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ augmenting.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ bank.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ bankruptcy.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ beam1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ beam2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ beatles.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ blacksea.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ blockchain.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ building.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ bullet.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ burglar.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ cachexia1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ cachexia2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ cardiovascular.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ case.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ catchment.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ charleston.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ chds.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ cng.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ compaction.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ conasense.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ concrete1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ concrete2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ concrete3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ concrete4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ concrete5.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ concrete6.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ concrete7.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ consequenceCovid.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ constructionproductivity .py - pgmpy/
example_models/ , Python, 15 linesbnrep/ coral1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ coral2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ coral3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ coral4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ coral5.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ corical.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ corrosion.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ corticosteroid.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ covid1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ covid2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ covid3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ covidfear.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ covidrisk.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ covidtech.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ crimescene.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ criminal1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ criminal2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ criminal3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ criminal4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ crypto.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ curacao1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ curacao2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ curacao3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ curacao4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ curacao5.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ diabetes.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ diagnosis.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ dioxins.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ disputed1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ disputed2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ disputed3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ disputed4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ dragline.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ drainage.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ dustexplosion.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ earthquake.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ ecosystem.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ electricvehicle.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ electrolysis.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ emergency.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ engines.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ enrollment.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ estuary.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ ets.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ expenditure.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ fingermarks1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ fingermarks2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ fire.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ firealarm.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ firerisk.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ flood.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ fluids1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ fluids2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ fluids3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ foodallergy1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ foodallergy2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ foodallergy3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ foodsecurity.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ forest.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ fundraising.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ gasexplosion.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ gasifier.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ gonorrhoeae.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ greencredit.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ grounding.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ humanitarian.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ hydraulicsystem.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ income.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ intensification.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ intentionalattacks.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ inverters.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ knowledge.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ kosterhavet.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ lawschool.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ lexical.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ lidar.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ liquefaction.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ liquidity.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ lithium.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ macrophytes.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ medicaltest.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ megacities.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ metal.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ moodstate.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ mountaingoat.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ nanomaterials1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ nanomaterials2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ navigation.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ nuclearwaste.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ nuisancegrowth.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ oildepot.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ onlinerisk.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ orbital.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ oxygen.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ perioperative.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ permaBN.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ phdarticles.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ pilot.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ pneumonia.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ polymorphic.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ poultry.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ project.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ projectmanagement.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ propellant.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ rainstorm.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ rainwater.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ realestate1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ realestate2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ realestate3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ redmeat.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ resilience.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ ricci.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ rockburst.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ rockquality.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ ropesegment.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ safespeeds.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ sallyclark.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ salmonella1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ salmonella2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ seismic.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ shipping.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ simulation.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ softwarelogs1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ softwarelogs2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ softwarelogs3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ softwarelogs4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ soil.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ soillead.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ soilliquefaction1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ soilliquefaction2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ soilliquefaction3.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ soilliquefaction4.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ stocks.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ student1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ student2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ suffocation.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ tastingtea.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ tbm.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ theft1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ theft2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ titanic.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ trajectories.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ transport.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ tubercolosis.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ turbine1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ turbine2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ twinframework.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ urinary.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ vaccine.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ vessel1.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ vessel2.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ volleyball.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ waterlead.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ wheat.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ windturbine.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ witness.py - pgmpy/
example_models/ , Python, 15 linesbnrep/ yangtze.py - pgmpy/
example_models/ , Python, 1 linedagitty/ __init__.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ acid_1996.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ confounding.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ didelez_2010.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ kampen_2014.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ m_bias.py - pgmpy/
example_models/ , Python, 15 linesdagitty/ mediator.py - pgmpy/
example_models/ , Python, 15 linesdagitty/ paths.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ polzer_2012.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ schipf_2010.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ sebastiani_2005.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ shrier_2008.py - pgmpy/
example_models/ , Python, 17 linesdagitty/ thoemmes_2013.py - pgmpy/
extern/ , Python, 3 lines__init__.py - pgmpy/
extern/ , Python, 986 linestabulate.py - pgmpy/
factors/ , Python, 73 linesFactorDict.py - pgmpy/
factors/ , Python, 439 linesFactorSet.py - pgmpy/
factors/ , Python, 13 lines__init__.py - pgmpy/
factors/ , Python, 157 linesbase.py - pgmpy/
factors/ , Python, 218 linescontinuous/ LinearGaussianCPD.py - pgmpy/
factors/ , Python, 5 linescontinuous/ __init__.py - pgmpy/
factors/ , Python, 863 linesdiscrete/ CPD.py - pgmpy/
factors/ , Python, 1,089 linesdiscrete/ DiscreteFactor.py - pgmpy/
factors/ , Python, 466 linesdiscrete/ JointProbabilityDistribu tion.py - pgmpy/
factors/ , Python, 73 linesdiscrete/ NoisyOR.py - pgmpy/
factors/ , Python, 6 linesdiscrete/ __init__.py - pgmpy/
factors/ , Python, 147 lineshybrid/ FunctionalCPD.py - pgmpy/
factors/ , Python, 3 lineshybrid/ __init__.py - pgmpy/
global_vars.py , Python, 164 lines - pgmpy/
identification/ , Python, 6 lines__init__.py - pgmpy/
identification/ , Python, 214 lines_base.py - pgmpy/
identification/ , Python, 218 linesadjustment.py - pgmpy/
identification/ , Python, 112 linesfrontdoor.py - pgmpy/
identification/ , Python, 503 linesprobability_expression.p y - pgmpy/
independencies/ , Python, 492 linesIndependencies.py - pgmpy/
independencies/ , Python, 3 lines__init__.py - pgmpy/
inference/ , Python, 297 linesApproxInference.py - pgmpy/
inference/ , Python, 1,111 linesCausalInference.py - pgmpy/
inference/ , Python, 261 linesEliminationOrder.py - pgmpy/
inference/ , Python, 1,489 linesExactInference.py - pgmpy/
inference/ , Python, 20 lines__init__.py - pgmpy/
inference/ , Python, 297 linesbase.py - pgmpy/
inference/ , Python, 487 linesdbn_inference.py - pgmpy/
inference/ , Python, 642 linesmplp.py - pgmpy/
metrics/ , Python, 21 lines__init__.py - pgmpy/
metrics/ , Python, 117 lines_base.py - pgmpy/
metrics/ , Python, 139 linesadjacency_cm.py - pgmpy/
metrics/ , Python, 141 linescorrelation_score.py - pgmpy/
metrics/ , Python, 105 linesfisher_c.py - pgmpy/
metrics/ , Python, 84 linesimplied_cis.py - pgmpy/
metrics/ , Python, 144 linesorientation_cm.py - pgmpy/
metrics/ , Python, 103 linesshd.py - pgmpy/
metrics/ , Python, 49 linesstructure_score.py - pgmpy/
models/ , Python, 3 linesBayesianNetwork.py - pgmpy/
models/ , Python, 396 linesClusterGraph.py - pgmpy/
models/ , Python, 1,790 linesDiscreteBayesianNetwork. py - pgmpy/
models/ , Python, 785 linesDiscreteMarkovNetwork.py - pgmpy/
models/ , Python, 1,333 linesDynamicBayesianNetwork.p y - pgmpy/
models/ , Python, 522 linesFactorGraph.py - pgmpy/
models/ , Python, 574 linesFunctionalBayesianNetwor k.py - pgmpy/
models/ , Python, 154 linesJunctionTree.py - pgmpy/
models/ , Python, 1,079 lines, 1 matchLinearGaussianBayesianNe twork.py - pgmpy/
models/ , Python, 528 linesMarkovChain.py - pgmpy/
models/ , Python, 3 linesMarkovNetwork.py - pgmpy/
models/ , Python, 204 linesNaiveBayes.py - pgmpy/
models/ , Python, 1,167 linesSEM.py - pgmpy/
models/ , Python, 31 lines__init__.py - pgmpy/
parameter_estimator/ , Python, 15 lines__init__.py - pgmpy/
parameter_estimator/ , Python, 251 linesbase.py - pgmpy/
parameter_estimator/ , Python, 271 linesdiscrete_bayesian.py - pgmpy/
parameter_estimator/ , Python, 390 linesdiscrete_em.py - pgmpy/
parameter_estimator/ , Python, 141 linesdiscrete_mle.py - pgmpy/
parameter_estimator/ , Python, 124 lineslinear_gaussian_mle.py - pgmpy/
prediction/ , Python, 360 linesDoubleMLRegressor.py - pgmpy/
prediction/ , Python, 241 linesNaiveAdjustmentRegressor .py - pgmpy/
prediction/ , Python, 281 linesNaiveIVRegressor.py - pgmpy/
prediction/ , Python, 9 lines__init__.py - pgmpy/
prediction/ , Python, 61 lines_base.py - pgmpy/
readwrite/ , Python, 624 linesBIF.py - pgmpy/
readwrite/ , Python, 721 linesNET.py - pgmpy/
readwrite/ , Python, 634 linesPomdpX.py - pgmpy/
readwrite/ , Python, 522 linesUAI.py - pgmpy/
readwrite/ , Python, 454 linesXDSL.py - pgmpy/
readwrite/ , Python, 581 linesXMLBIF.py - pgmpy/
readwrite/ , Python, 521 linesXMLBeliefNetwork.py - pgmpy/
readwrite/ , Python, 24 lines__init__.py - pgmpy/
sampling/ , Python, 601 linesSampling.py - pgmpy/
sampling/ , Python, 9 lines__init__.py - pgmpy/
sampling/ , Python, 591 linesbase.py - pgmpy/
structure_score/ , Python, 30 lines__init__.py - pgmpy/
structure_score/ , Python, 159 lines_base.py - pgmpy/
structure_score/ , Python, 66 linesaic.py - pgmpy/
structure_score/ , Python, 66 linesaic_cond_gauss.py - pgmpy/
structure_score/ , Python, 65 linesaic_gauss.py - pgmpy/
structure_score/ , Python, 105 linesbdeu.py - pgmpy/
structure_score/ , Python, 120 linesbds.py - pgmpy/
structure_score/ , Python, 70 linesbic.py - pgmpy/
structure_score/ , Python, 68 linesbic_cond_gauss.py - pgmpy/
structure_score/ , Python, 65 linesbic_gauss.py - pgmpy/
structure_score/ , Python, 86 linesk2.py - pgmpy/
structure_score/ , Python, 83 lineslog_likelihood.py - pgmpy/
structure_score/ , Python, 236 lineslog_likelihood_cond_gaus s.py - pgmpy/
structure_score/ , Python, 97 lineslog_likelihood_gauss.py - pgmpy/
tests/ , Python, 3 lines__init__.py - pgmpy/
tests/ , Python, 54 linesconftest.py - pgmpy/
tests/ , Python, 5 lineshelp_functions.py - pgmpy/
tests/ , Python, 1 linetest_base/ __init__.py - pgmpy/
tests/ , Python, 419 linestest_base/ test_ADMG.py - pgmpy/
tests/ , Python, 1,425 linestest_base/ test_DAG.py - pgmpy/
tests/ , Python, 215 linestest_base/ test_MAG.py - pgmpy/
tests/ , Python, 622 linestest_base/ test_PDAG.py - pgmpy/
tests/ , Python, 158 linestest_base/ test_SimpleCausalModel.p y - pgmpy/
tests/ , Python, 97 linestest_base/ test_UndirectedGraph.py - pgmpy/
tests/ , Python, 371 linestest_base/ test_algorithms.py - pgmpy/
tests/ , Python, 1,605 linestest_base/ test_base.py - pgmpy/
tests/ , Python, 83 linestest_base/ test_causal_graph.py - pgmpy/
tests/ , Python, 199 linestest_base/ test_mixin_roles.py - pgmpy/
tests/ , Python, 128 linestest_causal_discovery/ test_ANM.py - pgmpy/
tests/ , Python, 180 linestest_causal_discovery/ test_ChowLiu.py - pgmpy/
tests/ , Python, 612 linestest_causal_discovery/ test_ExpertInLoop.py - pgmpy/
tests/ , Python, 184 linestest_causal_discovery/ test_ExpertKnowledge.py - pgmpy/
tests/ , Python, 311 linestest_causal_discovery/ test_GES.py - pgmpy/
tests/ , Python, 388 linestest_causal_discovery/ test_HillClimbSearch.py - pgmpy/
tests/ , Python, 126 linestest_causal_discovery/ test_IGCI.py - pgmpy/
tests/ , Python, 152 linestest_causal_discovery/ test_LLMPairwise.py - pgmpy/
tests/ , Python, 814 linestest_causal_discovery/ test_PC.py - pgmpy/
tests/ , Python, 67 linestest_causal_discovery/ test_R2Sort.py - pgmpy/
tests/ , Python, 57 linestest_causal_discovery/ test_SP.py - pgmpy/
tests/ , Python, 261 linestest_causal_discovery/ test_TAN.py - pgmpy/
tests/ , Python, 55 linestest_causal_discovery/ test_TOPIC.py - pgmpy/
tests/ , Python, 66 linestest_causal_discovery/ test_VarSort.py - pgmpy/
tests/ , Python, 29 linestest_causal_discovery/ test_base.py - pgmpy/
tests/ , Python, 1 linetest_ci_tests/ __init__.py - pgmpy/
tests/ , Python, 75 linestest_ci_tests/ _multivariate_fixtures.p y - pgmpy/
tests/ , Python, 98 linestest_ci_tests/ test_base.py - pgmpy/
tests/ , Python, 106 linestest_ci_tests/ test_chi_square.py - pgmpy/
tests/ , Python, 162 linestest_ci_tests/ test_fisher_z.py - pgmpy/
tests/ , Python, 38 linestest_ci_tests/ test_g_sq.py - pgmpy/
tests/ , Python, 119 linestest_ci_tests/ test_gcm.py - pgmpy/
tests/ , Python, 69 linestest_ci_tests/ test_generalized_cov.py - pgmpy/
tests/ , Python, 91 linestest_ci_tests/ test_hotelling_lawley.py - pgmpy/
tests/ , Python, 38 linestest_ci_tests/ test_log_likelihood.py - pgmpy/
tests/ , Python, 39 linestest_ci_tests/ test_modified_log_likeli hood.py - pgmpy/
tests/ , Python, 144 linestest_ci_tests/ test_pearsonr.py - pgmpy/
tests/ , Python, 64 linestest_ci_tests/ test_pearsonr_equivalenc e.py - pgmpy/
tests/ , Python, 179 linestest_ci_tests/ test_pillai_trace.py - pgmpy/
tests/ , Python, 139 linestest_ci_tests/ test_roys_largest_root.p y - pgmpy/
tests/ , Python, 91 linestest_ci_tests/ test_wilks_lambda.py - pgmpy/
tests/ , Python, 108 linestest_datasets/ test_anm.py - pgmpy/
tests/ , Python, 211 linestest_datasets/ test_datasets.py - pgmpy/
tests/ , Python, 62 linestest_datasets/ test_linear_gaussian_scm .py - pgmpy/
tests/ , Python, 15 linestest_devtools/ test_lgbn_schema.py - pgmpy/
tests/ , Python, 1 linetest_estimators/ __init__.py - pgmpy/
tests/ , Python, 42 linestest_estimators/ test_BaseEstimator.py - pgmpy/
tests/ , Python, 393 linestest_estimators/ test_BayesianEstimator.p y - pgmpy/
tests/ , Python, 400 linestest_estimators/ test_CITests.py - pgmpy/
tests/ , Python, 402 linestest_estimators/ test_EM.py - pgmpy/
tests/ , Python, 184 linestest_estimators/ test_ExhaustiveSearch.py - pgmpy/
tests/ , Python, 153 linestest_estimators/ test_GES.py - pgmpy/
tests/ , Python, 291 linestest_estimators/ test_HillClimbSearch.py - pgmpy/
tests/ , Python, 146 linestest_estimators/ test_MarginalEstimator.p y - pgmpy/
tests/ , Python, 229 linestest_estimators/ test_MaximumLikelihoodEs timator.py - pgmpy/
tests/ , Python, 134 linestest_estimators/ test_MirrorDescentEstima tor.py - pgmpy/
tests/ , Python, 52 linestest_estimators/ test_MmhcEstimator.py - pgmpy/
tests/ , Python, 475 linestest_estimators/ test_PC.py - pgmpy/
tests/ , Python, 43 linestest_estimators/ test_ParameterEstimator. py - pgmpy/
tests/ , Python, 183 linestest_estimators/ test_SEMEstimator.py - pgmpy/
tests/ , Python, 91 linestest_estimators/ test_ScoreCache.py - pgmpy/
tests/ , Python, 400 linestest_estimators/ test_StructureScore.py - pgmpy/
tests/ , Python, 322 linestest_estimators/ test_TreeSearch.py - pgmpy/
tests/ , Python, 442 linestest_estimators/ test_expert.py - pgmpy/
tests/ , Python, 369 linestest_example_models/ test_example_models.py - pgmpy/
tests/ , Python, 1 linetest_factors/ __init__.py - pgmpy/
tests/ , Python, 146 linestest_factors/ test_FactorDict.py - pgmpy/
tests/ , Python, 90 linestest_factors/ test_FactorSet.py - pgmpy/
tests/ , Python, 1 linetest_factors/ test_continuous/ __init__.py - pgmpy/
tests/ , Python, 30 linestest_factors/ test_continuous/ test_Linear_Gaussian_CPD .py - pgmpy/
tests/ , Python, 1 linetest_factors/ test_discrete/ __init__.py - pgmpy/
tests/ , Python, 3,365 linestest_factors/ test_discrete/ test_Factor.py - pgmpy/
tests/ , Python, 46 linestest_factors/ test_discrete/ test_NoisyOR.py - pgmpy/
tests/ , Python, 1 linetest_factors/ test_hybrid/ __init__.py - pgmpy/
tests/ , Python, 166 linestest_factors/ test_hybrid/ test_Functional_CPD.py - pgmpy/
tests/ , Python, 82 linestest_global_vars.py - pgmpy/
tests/ , Python, 1 linetest_identification/ __init__.py - pgmpy/
tests/ , Python, 244 linestest_identification/ test_adjustment.py - pgmpy/
tests/ , Python, 177 linestest_identification/ test_base.py - pgmpy/
tests/ , Python, 55 linestest_identification/ test_frontdoor.py - pgmpy/
tests/ , Python, 367 linestest_identification/ test_probability_express ion.py - pgmpy/
tests/ , Python, 1 linetest_independencies/ __init__.py - pgmpy/
tests/ , Python, 259 linestest_independencies/ test_Independencies.py - pgmpy/
tests/ , Python, 1 linetest_inference/ __init__.py - pgmpy/
tests/ , Python, 339 linestest_inference/ test_ApproxInference.py - pgmpy/
tests/ , Python, 1,169 linestest_inference/ test_CausalInference.py - pgmpy/
tests/ , Python, 1,231 linestest_inference/ test_ExactInference.py - pgmpy/
tests/ , Python, 1,039 linestest_inference/ test_ExactInferenceTorch .py - pgmpy/
tests/ , Python, 80 linestest_inference/ test_Inference.py - pgmpy/
tests/ , Python, 237 linestest_inference/ test_dbn_inference.py - pgmpy/
tests/ , Python, 199 linestest_inference/ test_elimination_order.p y - pgmpy/
tests/ , Python, 81 linestest_inference/ test_mplp.py - pgmpy/
tests/ , Python, 1 linetest_metrics/ __init__.py - pgmpy/
tests/ , Python, 134 linestest_metrics/ test_adjacency_confusion _matrix.py - pgmpy/
tests/ , Python, 75 linestest_metrics/ test_correlation_score.p y - pgmpy/
tests/ , Python, 74 linestest_metrics/ test_fisher_c.py - pgmpy/
tests/ , Python, 60 linestest_metrics/ test_implied_cis.py - pgmpy/
tests/ , Python, 113 linestest_metrics/ test_orientation_confusi on_matrix.py - pgmpy/
tests/ , Python, 103 linestest_metrics/ test_shd.py - pgmpy/
tests/ , Python, 52 linestest_metrics/ test_structure_score.py - pgmpy/
tests/ , Python, 1 linetest_models/ __init__.py - pgmpy/
tests/ , Python, 206 linestest_models/ test_ClusterGraph.py - pgmpy/
tests/ , Python, 2,024 linestest_models/ test_DiscreteBayesianNet work.py - pgmpy/
tests/ , Python, 647 linestest_models/ test_DiscreteMarkovNetwo rk.py - pgmpy/
tests/ , Python, 2,133 linestest_models/ test_DynamicBayesianNetw ork.py - pgmpy/
tests/ , Python, 292 linestest_models/ test_FactorGraph.py - pgmpy/
tests/ , Python, 862 linestest_models/ test_FunctionalBayesianN etwork.py - pgmpy/
tests/ , Python, 173 linestest_models/ test_JunctionTree.py - pgmpy/
tests/ , Python, 651 linestest_models/ test_LinearGaussianBayes ianNetwork.py - pgmpy/
tests/ , Python, 308 linestest_models/ test_MarkovChain.py - pgmpy/
tests/ , Python, 193 linestest_models/ test_NaiveBayes.py - pgmpy/
tests/ , Python, 1,311 linestest_models/ test_SEM.py - pgmpy/
tests/ , Python, 473 linestest_parameter_estimator / test_BayesianEstimator.p y - pgmpy/
tests/ , Python, 387 linestest_parameter_estimator / test_EM.py - pgmpy/
tests/ , Python, 241 linestest_parameter_estimator / test_MaximumLikelihoodEs timator.py - pgmpy/
tests/ , Python, 368 linestest_prediction/ test_DoubleMLRegressor.p y - pgmpy/
tests/ , Python, 380 linestest_prediction/ test_NaiveAdjustmentRegr essor.py - pgmpy/
tests/ , Python, 339 linestest_prediction/ test_NaiveIVRegressor.py - pgmpy/
tests/ , Python, 1 linetest_readwrite/ __init__.py - pgmpy/
tests/ , Python, 1,047 linestest_readwrite/ test_BIF.py - pgmpy/
tests/ , Python, 762 linestest_readwrite/ test_NET.py - pgmpy/
tests/ , Python, 3,345 linestest_readwrite/ test_PomdpX.py - pgmpy/
tests/ , Python, 529 linestest_readwrite/ test_UAI.py - pgmpy/
tests/ , Python, 681 linestest_readwrite/ test_XMLBIF.py - pgmpy/
tests/ , Python, 978 linestest_readwrite/ test_XMLBeliefNetwork.py - pgmpy/
tests/ , Python, 500 linestest_readwrite/ test_xdsl.py - pgmpy/
tests/ , Python, 1 linetest_sampling/ __init__.py - pgmpy/
tests/ , Python, 476 linestest_sampling/ test_BayesianModelSampli ng.py - pgmpy/
tests/ , Python, 188 linestest_sampling/ test_GibbsSampling.py - pgmpy/
tests/ , Python, 1 linetest_structure_score/ __init__.py - pgmpy/
tests/ , Python, 101 linestest_structure_score/ conftest.py - pgmpy/
tests/ , Python, 22 linestest_structure_score/ test_aic.py - pgmpy/
tests/ , Python, 41 linestest_structure_score/ test_aic_cond_gauss.py - pgmpy/
tests/ , Python, 25 linestest_structure_score/ test_aic_gauss.py - pgmpy/
tests/ , Python, 119 linestest_structure_score/ test_base.py - pgmpy/
tests/ , Python, 24 linestest_structure_score/ test_bdeu.py - pgmpy/
tests/ , Python, 11 linestest_structure_score/ test_bds.py - pgmpy/
tests/ , Python, 22 linestest_structure_score/ test_bic.py - pgmpy/
tests/ , Python, 41 linestest_structure_score/ test_bic_cond_gauss.py - pgmpy/
tests/ , Python, 15 linestest_structure_score/ test_bic_gauss.py - pgmpy/
tests/ , Python, 22 linestest_structure_score/ test_k2.py - pgmpy/
tests/ , Python, 1 linetest_structure_score/ test_log_likelihood.py - pgmpy/
tests/ , Python, 69 linestest_structure_score/ test_log_likelihood_cond _gauss.py - pgmpy/
tests/ , Python, 27 linestest_structure_score/ test_log_likelihood_gaus s.py - pgmpy/
tests/ , Python, 63 linestest_utils/ test_optimizer.py - pgmpy/
tests/ , Python, 325 linestest_utils/ test_state_name.py - pgmpy/
tests/ , Python, 128 linestest_utils/ test_tabular_utils.py - pgmpy/
tests/ , Python, 208 linestest_utils/ test_utils.py - pgmpy/
utils/ , Python, 40 lines__init__.py - pgmpy/
utils/ , Python, 29 lines_warnings.py - pgmpy/
utils/ , Python, 27 linescheck_functions.py - pgmpy/
utils/ , Python, 167 linescompat_fns.py - pgmpy/
utils/ , Python, 29 lineshf_hub.py - pgmpy/
utils/ , Python, 228 linesmathext.py - pgmpy/
utils/ , Python, 121 linesoptimizer.py - pgmpy/
utils/ , Python, 322 linesparser.py - pgmpy/
utils/ , Python, 45 linessets.py - pgmpy/
utils/ , Python, 130 linesstate_name.py - pgmpy/
utils/ , Python, 150 linestabular.py - pgmpy/
utils/ , Python, 7 linestypes.py - pgmpy/
utils/ , Python, 528 linesutils.py - LICENSE, License, 20 lines
- README.md, Text, 186 lines
Zenodo 20055775
Availability: 1 check, the latest on 27 September 2026: the link answers (HTTP 200)
- 27 September 2026: the link answers (HTTP 200)
3 files
- Fig2E.m, MATLAB, 58 lines
- Fig4.ipynb, Jupyter, 49 lines
- Fig5.ipynb, Jupyter, 49 lines
Code availability statement
The paper has a code availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- it points to the authors' code: Zenodo 20055775
Read it in the paper: doi.org/10.1038/s41467-026-75220-4.
Tracing map
Proposed by the machine: these links were found in the paper and verified at the source, without human review. The map will receive a Zenodo DOI once one of the paper's authors has validated it with their ORCID.
What the map holds:
- 2 repositories of the authors' code, each at its verified commit, with its license and how the link was found in the paper;
- 659 scripts, each with its path and the digest of its content;
- 2 matches between paragraphs of the paper and lines of the code (method lexical-v1);
- neither the text of the paper nor the code itself.
Its JSON (tracing-map.json) is deposited on Zenodo with its DOI once the map is validated.
Data
No dataset and no data link were found in the paper.
Data availability statement
The paper has a data availability statement. Its license (CC BY-NC-ND) does not allow reproducing it here; in short, from what the harvester recognized in it:
- no repository, dataset or request procedure was recognized in it
Read it in the paper: doi.org/10.1038/s41467-026-75220-4.
Versions
The history of this record: each version stored by the harvester or made by a correction of its authors or of the maintainers of its code, and what changed in its facts. The texts of the paper (its abstract, its availability statements) are not part of it; versions that changed only those are not listed.
Version 1, 27 September 2026: the first record
Recorded: type, language, journal, volume, issue, pages, dates, 6 authors, 2 keywords, 10 MeSH terms, 3 funders, 60 references.
Cite
This paper
Xing, F., Fan, S., Dal Monte, O., Jadi, M. P., Chang, S. W. C., & Nandy, A. S. (2026). Causal Dynamics of Social Gaze in Primate Prefrontal-Amygdala Networks Revealed by Dynamic Bayesian Modeling. Nature communications, 17(1), 8306. https://
BibTeX
@article{xing2026causal,
author = {Xing, Feng and Fan, Siqi and Dal Monte, Olga and Jadi, Monika P. and Chang, Steve W. C. and Nandy, Anirvan S.},
title = {{Causal Dynamics of Social Gaze in Primate Prefrontal-Amygdala Networks Revealed by Dynamic Bayesian Modeling}},
journal = {Nature communications},
year = {2026},
month = jul,
volume = {17},
number = {1},
pages = {8306},
publisher = {Nature Publishing Group},
issn = {2041-1723},
doi = {10.1038/
url = {https://
pmid = {42401542},
pmcid = {PMC13469456}
}
RIS
TY - JOUR
AU - Xing, Feng
AU - Fan, Siqi
AU - Dal Monte, Olga
AU - Jadi, Monika P.
AU - Chang, Steve W. C.
AU - Nandy, Anirvan S.
TI - Causal Dynamics of Social Gaze in Primate Prefrontal-Amygdala Networks Revealed by Dynamic Bayesian Modeling
T2 - Nature communications
J2 - Nat Commun
PY - 2026
DA - 2026/
VL - 17
IS - 1
SP - 8306
SN - 2041-1723
PB - Nature Publishing Group
DO - 10.1038/
UR - https://
LA - en
ER -
CSL-JSON
{
"id": "10.1038/
"type": "article-journal",
"title": "Causal Dynamics of Social Gaze in Primate Prefrontal-Amygdala Networks Revealed by Dynamic Bayesian Modeling",
"container-title": "Nature communications",
"author": [
{
"family": "Xing",
"given": "Feng"
},
{
"family": "Fan",
"given": "Siqi"
},
{
"family": "Dal Monte",
"given": "Olga"
},
{
"family": "Jadi",
"given": "Monika P."
},
{
"family": "Chang",
"given": "Steve W. C."
},
{
"family": "Nandy",
"given": "Anirvan S."
}
],
"container-title-short":
"volume": "17",
"issue": "1",
"page": "8306",
"DOI": "10.1038/
"PMID": "42401542",
"PMCID": "PMC13469456",
"ISSN": "2041-1723",
"publisher": "Nature Publishing Group",
"URL": "https://
"language": "en",
"issued": {
"date-parts": [
[
2026,
7,
4
]
]
}
}
The tracing map gets a citation of its own once an author has validated it and it has a DOI.
Similar papers
The papers with a page that share the most with this one: the tools found in their code, their categories, datasets, cited references and authors, the rarest counting most.
- [1] doi:10.1038/s41467-026-74347-8 [code]
- Compositionality of social gaze in the prefrontal-amygdala circuits.Journal: Nature communicationsIn common: statsmodels, scikit-learn, pandas, 3 other tools, non-human primate, systems, 7 references, author Steve W. C. Chang
- [2] doi:10.1523/eneuro.0362-25.2026 [code]
- Similarities between &
lt;i& gt;Ciona& lt;/ i& gt; Dorsal Motor Ganglion and Vertebrate Cerebellum: Did a Chordate Ancestor Already Show D/ V Subdivision within a Hindbrain Precursor? Journal: eNeuroIn common: Pyro, statsmodels, PyTorch, 5 other tools - [3] doi:10.1038/s41467-026-74694-6 [code]
- Semi-supervised Omics Factor Analysis (SOFA) disentangles known and latent sources of variation in multi-omic data.Journal: Nature communicationsIn common: Pyro, statsmodels, PyTorch, 5 other tools
- [4] doi:10.1093/bioinformatics/btag652 [code]
- mmVelo: a deep generative model for estimating cell state-dependent dynamics across multiple modalities.Journal: Bioinformatics (Oxford, England)In common: Pyro, statsmodels, PyTorch, 5 other tools
- [5] doi:10.1038/s41593-026-02205-3 [code]
- Competitive interactions shape mammalian brain network dynamics and computation.Journal: Nature neuroscienceIn common: NetworkX, PyTorch, scikit-learn, 4 other tools, non-human primate, 1 reference
- [6] doi:10.1038/s42003-026-09794-6 [code]
- The role of dorsal anterior cingulate cortex in dynamic attitude changes in naturalistic settings.Journal: Communications biologyIn common: NetworkX, statsmodels, scikit-learn, 4 other tools, systems, 1 reference
- [7] doi:10.17879/freeneuropathology-2026-9413 [code]
- Mass spectrometry imaging-based explainable machine learning reveals the biochemical landscapes of the mouse brain.Journal: Free neuropathologyIn common: Pyro, NetworkX, PyTorch, 4 other tools
- [8] doi:10.1038/s41467-026-72057-9 [code]
- Sex-specific behavioral feedback modulates sensorimotor processing and drives flexible social behavior.Journal: Nature communicationsIn common: statsmodels, PyTorch, scikit-learn, 4 other tools, systems, 1 reference
- [9] doi:10.1016/j.isci.2026.117375 [code]
- Motor priming is associated with widespread recruitment into neural ensembles and more rapid ensemble transitions.Journal: iScienceIn common: NetworkX, statsmodels, PyTorch, 5 other tools, systems
- [10] doi:10.1016/j.isci.2026.116825 [code]
- Social hierarchy shapes behavioral and transcriptional responses to chronic stress and ketamine in male mice.Journal: iScienceIn common: NetworkX, statsmodels, PyTorch, 5 other tools, systems
Contribute
The authors of this paper can claim it, correct its record and validate its tracing map, and the maintainers of its code (its owner, or a public member of its organization) correct what it says of their repository; anyone signed in can ask for its removal. Every request goes to OSCR's own machine, which answers it; your account page follows them.
Sign in with ORCID to claim this paper as one of its authors, correct its record or validate its tracing map: when the paper's metadata lists your ORCID iD, you are recognized at once. Maintainers of its code: sign in with GitHub, then claim the repository on your account page.
Claim this paper
Correct its record
Say what each link of this record is, remove the ones that are not the paper's, add the ones that are missing. The correction becomes a new version of the record, in its Versions section.
Validate its tracing map
You validate the map as this page shows it: 2 repositories of the authors' code, each at its verified commit and with its license, 659 scripts, and 2 matches between paragraphs and code (see the Code and Map sections). It then receives a DOI on Zenodo, with you (your ORCID iD) and OSCR as its creators; the code itself is not deposited.
The map's fingerprint: sha256:62799511ebf12235…
Add the badge to its README
The badge links the code to this page. Copy one of these into the README of the paper's code: only you decide where it goes, and nothing is changed for you.
Markdown
[, paste the snippet at the top, then “Commit changes…” and, to review it first, “Create a new branch and start a pull request”. You open the pull request; OSCR asks for no permission.
Request its removal
To ask OSCR to remove this record, the copies of its authors' scripts or its tracing map, use the removal request page: signed in, you say who you are, what to remove and why, then review and confirm the request. Published rules decide every request (how).
Discussion, reproductions, activity
Discussion: questions and error reports about this paper and its code, from signed-in readers and its authors. It opens with sign-in.
Reproductions: reports from readers who ran the authors' code: what they reproduced, with which environment, commit and data. It opens with sign-in.
Activity: what happens around this paper: new versions of its record, its map's validation, discussions and reproductions. It opens with sign-in.
