a06148e0d675d3a2d5be0b1928a3c05078b8d6c0,pgmpy/factors/JointProbabilityDistribution.py,JointProbabilityDistribution,check_independence,#JointProbabilityDistribution#Any#Any#Any#,133

Before Change


        if event3:
            if isinstance(event3, six.string_types):
                event3 = [event3]
            event3 = map(lambda x: (x, 1), event3)
            self.conditional_distribution(event3)
        if isinstance(event1, six.string_types):
            event1 = [event1]
        if isinstance(event2, six.string_types):

After Change


        JPD = self.copy()
        if event3:
            if isinstance(event3, six.string_types):
                raise TypeError("Event 3 A list of tuples of the form (variable_name, variable_state")
            JPD.conditional_distribution(event3)
        if isinstance(event1, six.string_types):
            raise TypeError("Event 1 should be a list or array-like structure")
        if isinstance(event2, six.string_types):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: pgmpy/pgmpy
Commit Name: a06148e0d675d3a2d5be0b1928a3c05078b8d6c0
Time: 2016-01-04
Author: utkarsh.gupta550@gmail.com
File Name: pgmpy/factors/JointProbabilityDistribution.py
Class Name: JointProbabilityDistribution
Method Name: check_independence


Project Name: eth-cscs/reframe
Commit Name: 1ac9003c0bbf7297e49fc62e6cb6326192727d84
Time: 2018-10-04
Author: karakasis@cscs.ch
File Name: reframe/core/fields.py
Class Name: TypedField
Method Name: __init__


Project Name: pymc-devs/pymc3
Commit Name: e494b3f14c9888d1b1c28a7a17305d9904928ae1
Time: 2016-02-19
Author: superbobry@gmail.com
File Name: pymc3/model.py
Class Name:
Method Name: Point