73dcacffa7dee910a9478cd7d783d91ef84dc987,BayesianModel.py,BayesianModel,add_cpd,#BayesianModel#,35

Before Change


        
        
        //checking if parents in tuple are really parents
        if set(parents) != set(self.predecessors(node)):
            raise ParentsMismatch

if __name__=="__main__":
    
    student = BayesianModel()
    student.add_nodes("diff","intel","grades")    

After Change


        //gradeB: 0.1    0.1    0.1     0.1  0.1    0.1
        //gradeC: 0.8    0.8    0.8     0.8  0.8    0.8
        
        self.node[node]["cpd"] = np.array(cpd)
        


if __name__=="__main__":
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 5

Instances


Project Name: pgmpy/pgmpy
Commit Name: 73dcacffa7dee910a9478cd7d783d91ef84dc987
Time: 2013-09-21
Author: snigam3112@gmail.com
File Name: BayesianModel.py
Class Name: BayesianModel
Method Name: add_cpd


Project Name: dmbee/seglearn
Commit Name: 56fb5f5ecfdaafc57b67db632004c6272f068e2e
Time: 2018-03-08
Author: david.mo.burns@gmail.com
File Name: seglearn/util.py
Class Name:
Method Name: check_ts_data


Project Name: kundajelab/dragonn
Commit Name: 9c158b87f5fb2dca1ed95884e667ab2fc218e1b7
Time: 2017-05-01
Author: jisraeli@stanford.edu
File Name: dragonn/models.py
Class Name: SequenceDNN
Method Name: deeplift


Project Name: craffel/mir_eval
Commit Name: 7d805ab9d26c74db2319658f1ee1d0235f092845
Time: 2014-07-25
Author: craffel@gmail.com
File Name: mir_eval/input_output.py
Class Name:
Method Name: load_time_series