916cda3dad76d51ed63803abe26a16a0cd677f56,dit/algorithms/total_correlation.py,,total_correlation,#,8
Before Change
rvs = range(dist.outcome_length())
rv_names = False
d = dist.marginal(rvs, rv_names=rv_names)
else:
msg = "The total correlation is applicable to joint distributions."
raise ditException(msg)
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
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
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: DagnyT/hardnet
Commit Name: 04cd555be76efc7baced753c751c4257d41eb75d
Time: 2017-07-27
Author: ducha.aiki@gmail.com
File Name: EvalMetrics.py
Class Name:
Method Name: ErrorRateAt95Recall
Project Name: mariogeiger/se3cnn
Commit Name: 06777db554db441e1ec2aa2fb8c5d40565a1ba0f
Time: 2019-07-07
Author: geiger.mario@gmail.com
File Name: se3cnn/point_kernel.py
Class Name: SE3PointKernel
Method Name: __init__