570766555e1935ae0b09009771ad3f9cd09eeefb,BayesianModel.py,BayesianModel,states,#BayesianModel#,93
Before Change
def states(self, node):
Prints states in alphabetical order
return (
[self.node[node]["states"][index][0] for
index in range(len(self.node[node]["states"]) )])
def add_rule_for_parents(self, node, parents):
After Change
def states(self, node):
Returns tuple with states in user-defined order
for index in self.node[node]["_rule_for_states"]:
yield self.node[node]["_states"][index][0]
def add_rule_for_parents(self, node, parents):
//check if all parents are mentioned and no extra parents are
////present
//_extra = set(parents) - set(self.predecessors(node))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: pgmpy/pgmpy
Commit Name: 570766555e1935ae0b09009771ad3f9cd09eeefb
Time: 2013-09-26
Author: snigam3112@gmail.com
File Name: BayesianModel.py
Class Name: BayesianModel
Method Name: states
Project Name: dit/dit
Commit Name: 608fff2119f21191352ddf5d96eb82fc1ab099b0
Time: 2013-02-25
Author: chebee7i@gmail.com
File Name: dit/utils/misc.py
Class Name:
Method Name: partitions
Project Name: coala/coala-bears
Commit Name: bfd61fb7a0c4456ce812a227f3b1962b2c727879
Time: 2016-09-03
Author: abdealikothari@gmail.com
File Name: bears/general/KeywordBear.py
Class Name: KeywordBear
Method Name: run