e4869e35ad2c65ef7cd04c969b20576f4edc2547,pgmpy/factors/continuous/ContinuousFactor.py,ContinuousFactor,reduce,#ContinuousFactor#Any#Any#,105
Before Change
>>> custom_factor.assignment(1, 3)
24.0
if isinstance(values, six.string_types):
raise TypeError("values: Expected type list or array-like, got type str")
phi = self if inplace else self.copy()
var_to_remove = [var for var, value in values]
After Change
>>> custom_factor.assignment(1, 3)
24.0
if not isinstance(values, list):
raise TypeError("values: Expected type list or array-like,\
got type {var_type}".format(var_type=type(values)))
phi = self if inplace else self.copy()
var_to_remove = [var for var, value in values]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 12
Instances
Project Name: pgmpy/pgmpy
Commit Name: e4869e35ad2c65ef7cd04c969b20576f4edc2547
Time: 2016-06-21
Author: yashuseth2503@gmail.com
File Name: pgmpy/factors/continuous/ContinuousFactor.py
Class Name: ContinuousFactor
Method Name: reduce
Project Name: pgmpy/pgmpy
Commit Name: e4869e35ad2c65ef7cd04c969b20576f4edc2547
Time: 2016-06-21
Author: yashuseth2503@gmail.com
File Name: pgmpy/factors/continuous/ContinuousFactor.py
Class Name: ContinuousFactor
Method Name: __init__
Project Name: pgmpy/pgmpy
Commit Name: e4869e35ad2c65ef7cd04c969b20576f4edc2547
Time: 2016-06-21
Author: yashuseth2503@gmail.com
File Name: pgmpy/factors/continuous/ContinuousFactor.py
Class Name: ContinuousFactor
Method Name: marginalize