038e520ff7b764ef6c2fdc548372299c8f547e56,conceptnet5/vectors/debias.py,,de_bias_category,#Any#Any#Any#,503

Before Change


    vocab = [
        standardized_uri("en", term) for term in bias_examples
    ]
    components_to_reject = frame.loc[vocab].values

    // Make a modified version of the space that projects the bias vectors to 0.
    // Then weight each row of that space by "applicability", the probability

After Change


    vocab = [
        standardized_uri("en", term) for term in bias_examples
    ]
    components_to_reject = frame.reindex(vocab).dropna().values

    // Make a modified version of the space that projects the bias vectors to 0.
    // Then weight each row of that space by "applicability", the probability
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: commonsense/conceptnet5
Commit Name: 038e520ff7b764ef6c2fdc548372299c8f547e56
Time: 2018-04-20
Author: rob@luminoso.com
File Name: conceptnet5/vectors/debias.py
Class Name:
Method Name: de_bias_category


Project Name: commonsense/conceptnet5
Commit Name: 038e520ff7b764ef6c2fdc548372299c8f547e56
Time: 2018-04-20
Author: rob@luminoso.com
File Name: conceptnet5/vectors/debias.py
Class Name:
Method Name: get_vocabulary_vectors


Project Name: bashtage/linearmodels
Commit Name: 34e7e918bd4fc09f643e8bb448e875a9bcb7e841
Time: 2017-03-29
Author: kevin.k.sheppard@gmail.com
File Name: linearmodels/panel/data.py
Class Name: PanelData
Method Name: first_difference