764b22136f964c50bcf7d30c4f1efe6bdaabd50b,src/BayesianModel/BayesianModel.py,BayesianModel,_get_ancestors_observation,#BayesianModel#,736
Before Change
Returns ancestors of all the observed elements
obs_list = [obs for obs in observation]
ancestors_list = []
while obs_list :
node = obs_list.pop()
if node not in ancestors_list:
obs_list += self.predecessors(node)
ancestors_list += [node]
return ancestors_list
def _get_observed_list(self):
After Change
Returns a list of all ancestors of all the observed nodes.
ancestors_list = set()
for node in observed_list:
for predecessor in self.predecessors(node):
ancestors_list.add(predecessor)
return ancestors_list
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pgmpy/pgmpy
Commit Name: 764b22136f964c50bcf7d30c4f1efe6bdaabd50b
Time: 2014-01-08
Author: ankurankan@gmail.com
File Name: src/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: _get_ancestors_observation
Project Name: pgmpy/pgmpy
Commit Name: d9213be6d79011721e43444b03d27fe6aaa65071
Time: 2014-01-29
Author: abinash.panda.ece10@itbhu.ac.in
File Name: pgmpy/BayesianModel/BayesianModel.py
Class Name: BayesianModel
Method Name: active_trail_nodes
Project Name: ilastik/ilastik
Commit Name: a6cf50669ef4d7d75a41f4bc172f6ce61396b38b
Time: 2019-08-16
Author: tomaz.vieira@embl.de
File Name: ilastik/applets/dataSelection/dataSelectionGui.py
Class Name: DataSelectionGui
Method Name: _createDatasetInfo