d738388c3ac14684d384b05d7e03417a0edffdd1,dit/multivariate/dilworth.py,,dilworth,#Any#Any#Any#Any#,7

Before Change


    
    rvs, crvs, rv_mode = normalize_rvs(dist, rvs, crvs, rv_mode)

    one = sum([H(dist, rv, crvs, rv_mode=rv_mode) for rv in rvs])
    two = H(dist, set().union(*rvs), crvs, rv_mode=rv_mode)
    T = one - two

    return T

After Change


        b = entropy(dist, crvs=crvs)
        return a - b

    J = min( I_P(p) for p in partitions(map(tuple, rvs)) if len(p) > 1 )

    return J
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: dit/dit
Commit Name: d738388c3ac14684d384b05d7e03417a0edffdd1
Time: 2016-05-11
Author: ryangregoryjames@gmail.com
File Name: dit/multivariate/dilworth.py
Class Name:
Method Name: dilworth


Project Name: EpistasisLab/scikit-rebate
Commit Name: 971719830d589eba66434ddabfc62c1a689be677
Time: 2017-04-07
Author: weixuanf@upenn.edu
File Name: skrebate/relieff.py
Class Name: ReliefF
Method Name: _run_algorithm


Project Name: dask/distributed
Commit Name: 383ea0326ae103b5d5e0b62ed9c3cb18510c5b9e
Time: 2021-02-17
Author: jakirkham@gmail.com
File Name: distributed/comm/tcp.py
Class Name: TCP
Method Name: write