cf56f37bdd8a932ec2dbef6dd47ce4cfbb820018,pgmpy/inference/dbn_inference.py,DBNInference,forward_inference,#DBNInference#,162
Before Change
for time in range(1, time_range + 1):
evidence_time = self._get_evidence(evidence, time, 1)
if interface_nodes_dict:
if evidence_time:
evidence_time.update(interface_nodes_dict)
else:
evidence_time = interface_nodes_dict
if variable_dict[time]:
variable_time = self._shift_nodes(variable_dict[time], 1)
new_values = mid_bp.query(variable_time, evidence=evidence_time)
changed_values = {}
After Change
variable_dict[var[1]].append(var)
time_range = max(variable_dict)
if evidence:
evid_time_range = max([time for var, time in evidence.keys()])
time_range = max(time_range, evid_time_range)
start_bp = BeliefPropagation(self.start_junction_tree)
mid_bp = BeliefPropagation(self.one_and_half_junction_tree)
evidence_0 = self._get_evidence(evidence, 0, 0)
interface_nodes_dict = {}
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 5
Instances
Project Name: pgmpy/pgmpy
Commit Name: cf56f37bdd8a932ec2dbef6dd47ce4cfbb820018
Time: 2015-08-21
Author: abhor902@gmail.com
File Name: pgmpy/inference/dbn_inference.py
Class Name: DBNInference
Method Name: forward_inference
Project Name: GoogleCloudPlatform/healthcare
Commit Name: 1127ff5fdcdfbe89efee98614cf4d4e2c29da4a8
Time: 2019-02-11
Author: noreply@google.com
File Name: deploy/utils/utils.py
Class Name:
Method Name: resolve_env_vars
Project Name: kymatio/kymatio
Commit Name: 5c6c50274c11ecbf9be54052394922fabde80923
Time: 2020-02-18
Author: edouard.oyallon@lip6.fr
File Name: kymatio/scattering2d/core/scattering2d.py
Class Name:
Method Name: scattering2d
Project Name: nilmtk/nilmtk
Commit Name: 63ef8bfa3b63090437bd27bf1e04db7ae1eae3cf
Time: 2014-11-27
Author: jack-list@xlk.org.uk
File Name: nilmtk/stats/totalenergy.py
Class Name:
Method Name: get_total_energy