916cda3dad76d51ed63803abe26a16a0cd677f56,dit/algorithms/total_correlation.py,,total_correlation,#,8

Before Change



    marginals = [ d.marginal([i]) for i in range(d.outcome_length()) ]

    T = sum( H(m) for m in marginals ) - H(d)

    return T

After Change


        msg = "The total correlation is applicable to joint distributions."
        raise ditException(msg)

    one = sum([ H(dist, [i], crvs, rv_names) for i in rvs ])
    two = H(dist, rvs, crvs, rv_names)
    T = one - two

    return T
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: dit/dit
Commit Name: 916cda3dad76d51ed63803abe26a16a0cd677f56
Time: 2013-10-02
Author: ryangregoryjames@gmail.com
File Name: dit/algorithms/total_correlation.py
Class Name:
Method Name: total_correlation


Project Name: mariogeiger/se3cnn
Commit Name: 3546a561f0f902095d4c080ca39f7f0776e52f4f
Time: 2019-08-05
Author: geiger.mario@gmail.com
File Name: se3cnn/non_linearities/gated_block.py
Class Name: GatedBlock
Method Name: __init__


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