From 1a9286b0c1698fe5329a8e0b2a886f0a98286d2b Mon Sep 17 00:00:00 2001 From: Cathy Yeh Date: Wed, 17 Jan 2018 17:32:07 -0800 Subject: compute_pi_agg -> compute_and_update_pi_agg, compute_lambda_agg -> compute_and_update_lambda_agg --- beliefs/models/belief_update_node_model.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'beliefs/models/belief_update_node_model.py') diff --git a/beliefs/models/belief_update_node_model.py b/beliefs/models/belief_update_node_model.py index 743bbcb..ec329ca 100644 --- a/beliefs/models/belief_update_node_model.py +++ b/beliefs/models/belief_update_node_model.py @@ -236,7 +236,7 @@ class Node: else: return msgs - def compute_pi_agg(self): + def compute_and_update_pi_agg(self): """ Compute and update pi_agg, the prior probability, given the current state of messages received from parents. @@ -252,7 +252,7 @@ class Node: self.update_pi_agg(factor_product.marginalize(self.parents).values) pi_msgs = self.validate_and_return_msgs_received_for_msg_type(MessageType.PI) - def compute_lambda_agg(self): + def compute_and_update_lambda_agg(self): """ Compute and update lambda_agg, the likelihood, given the current state of messages received from children. @@ -370,7 +370,7 @@ class BernoulliOrNode(Node): def __init__(self, label_id, children, parents): super().__init__(children=children, cpd=BernoulliOrCPD(label_id, parents)) - def compute_pi_agg(self): + def compute_and_update_pi_agg(self): """ Compute and update pi_agg, the prior probability, given the current state of messages received from parents. Sidestep explicit factor product and @@ -424,7 +424,7 @@ class BernoulliAndNode(Node): def __init__(self, label_id, children, parents): super().__init__(children=children, cpd=BernoulliAndCPD(label_id, parents)) - def compute_pi_agg(self): + def compute_and_update_pi_agg(self): """ Compute and update pi_agg, the prior probability, given the current state of messages received from parents. Sidestep explicit factor product and -- cgit v1.2.3