0ff5063d229ec9b98dea88d9e0d096bb63870b9a,pgmpy/factors/FactorSet.py,,factorset_divide,#Any#Any#,249

Before Change


    
    if not isinstance(factorset1, FactorSet) or not isinstance(factorset2, FactorSet):
        raise TypeError("factorset1 and factorset2 must be FactorSet instances")
    return FactorSet(*factorset1.factors.union([x.identity_factor() / x for x in factorset2.factors]))

After Change


    
    if not isinstance(factorset1, FactorSet) or not isinstance(factorset2, FactorSet):
        raise TypeError("factorset1 and factorset2 must be FactorSet instances")
    return factorset1.divide(factorset2, inplace=False)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: pgmpy/pgmpy
Commit Name: 0ff5063d229ec9b98dea88d9e0d096bb63870b9a
Time: 2015-08-21
Author: ankurankan@gmail.com
File Name: pgmpy/factors/FactorSet.py
Class Name:
Method Name: factorset_divide


Project Name: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/model_inference.py
Class Name:
Method Name: post_process


Project Name: sony/nnabla-examples
Commit Name: 56926bc8b4a158e1c40cddbc795303bc6a66f44d
Time: 2019-05-23
Author: sukriti.mehrotra@sony.com
File Name: semantic-segmentation/deeplabv3plus/image_preprocess.py
Class Name:
Method Name: resize