79928872e7b2118ae0cbc8f818850473e15fe14f,conceptnet5/vectors/evaluation/bias.py,,correlation_bias,#Any#Any#,71

Before Change


        pd.DataFrame(vecs1 - np.mean(vecs1, axis=0))
    ).values
    bias_vecs2 = l2_normalize_rows(
        pd.DataFrame(vecs2 - np.mean(vecs2, axis=0))
    ).values
    grid = bias_vecs1.dot(bias_vecs2.T)
    for i in range(grid.shape[1]):

After Change



    for i in range(grid.shape[1]):
        col_bias = np.max(grid.iloc[:, i]) - np.mean(grid.iloc[:, i])
        most_biased = np.argmax(grid.iloc[:, i])
        comparison = centered2.index[i]
        // Uncomment this to be sad
        // print("%4.4f %s => %s" % (col_bias, comparison, most_biased))
        bias_numbers.append(col_bias)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: commonsense/conceptnet5
Commit Name: 79928872e7b2118ae0cbc8f818850473e15fe14f
Time: 2017-03-30
Author: rob@luminoso.com
File Name: conceptnet5/vectors/evaluation/bias.py
Class Name:
Method Name: correlation_bias


Project Name: facebookresearch/Horizon
Commit Name: e37a3673f57936713fea57581962937ce096e1a0
Time: 2020-10-14
Author: czxttkl@fb.com
File Name: reagent/evaluation/seq2reward_evaluator.py
Class Name: Seq2RewardEvaluator
Method Name: evaluate


Project Name: adalca/neuron
Commit Name: a6a499ba2f5559a511914e24b34a93c8095ecc40
Time: 2017-03-20
Author: adalca@mit.edu
File Name: src/pytools/metrics.py
Class Name: Dice
Method Name: loss