19a796cf092d0b0f88e2919cbee45bb5270835cf,conceptnet5/vectors/retrofit.py,,retrofit,#,54

Before Change


    // subtract the mean of each language, reducing clumping by language and
    // improving multilingual alignment.
    rows_by_language = defaultdict(list)
    for i, label in enumerate(row_labels):
        lang = get_language(label)
        rows_by_language[lang].append(i)
    all_languages = sorted(rows_by_language)
    row_groups = [rows_by_language[lang] for lang in all_languages]

    // Subtract the mean so that vectors don"t just clump around common

After Change



    // Subtract the mean so that vectors don"t just clump around common
    // hypernyms
    orig_vecs -= orig_vecs.mean(0)

    // Delete the frame we built, we won"t need its indices again until the end
    del retroframe
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: commonsense/conceptnet5
Commit Name: 19a796cf092d0b0f88e2919cbee45bb5270835cf
Time: 2017-06-21
Author: rob@luminoso.com
File Name: conceptnet5/vectors/retrofit.py
Class Name:
Method Name: retrofit


Project Name: scikit-learn-contrib/DESlib
Commit Name: f7a04171e58eb43dfe5b18d06c76481cdf1c5da9
Time: 2018-03-29
Author: rafaelmenelau@gmail.com
File Name: deslib/dcs/lca.py
Class Name: LCA
Method Name: estimate_competence


Project Name: modAL-python/modAL
Commit Name: d01c5b805e49346914b3b5ace081cae8cbb2a99a
Time: 2018-10-01
Author: theodore.danka@gmail.com
File Name: modAL/density.py
Class Name:
Method Name: information_density