7a7aba4fe48a3c6c90ba2432aab743fe5dfb7a3a,pgmpy/Inference/base.py,Inference,__init__,#Inference#,16
Before Change
if set(cpd_as_factor.variables) != set([node].extend(parents)):
raise ValueError("The cpd has wrong variables associated with it.")
if cpd.marginalize(node) != np.ones(np.prod(cpd.cardinality[1:]) ):
raise ValueError("The values of the cpd are not correct")
for var in cpd.variables:
After Change
cpd = model.get_cpd(node)
cpd_as_factor = cpd.to_factor()
parents = model.predecessors(node)
self.cardinality[node] = cpd.variable_card
// TODO: Add these checks
// if set(cpd_as_factor.variables) != set([node].extend(parents)):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: pgmpy/pgmpy
Commit Name: 7a7aba4fe48a3c6c90ba2432aab743fe5dfb7a3a
Time: 2014-11-03
Author: ankurankan@gmail.com
File Name: pgmpy/Inference/base.py
Class Name: Inference
Method Name: __init__
Project Name: scikit-image/scikit-image
Commit Name: 13df5b1a4687c48abf3cdc1894b100936d7e8f0a
Time: 2019-11-12
Author: r.fezzani@vitadx.com
File Name: skimage/measure/tests/test_marching_cubes.py
Class Name:
Method Name: test_both_algs_same_result_donut
Project Name: dask/dask-image
Commit Name: cbbcea8795e8da754a5b3ffb1a08ef66afd84eef
Time: 2018-09-02
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/_utils.py
Class Name:
Method Name: _ravel_shape_indices