8ea593ba135faf00d9ba39f393682172366eee9b,conceptnet5/vectors/retrofit.py,,retrofit,#,53

Before Change


            print("Retrofitting: Iteration %s of %s" % (iteration+1, iterations))

        vecs = sparse_csr.dot(vecs)
        vecs -= vecs.mean(0)

        // use sklearn"s normalize, because it normalizes in place and
        // leaves zero-rows at 0
        normalize(vecs, norm="l2", copy=False)

After Change


        lang = label.split("/")[2]
        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
    // hypernyms
    for row_group in row_groups:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: commonsense/conceptnet5
Commit Name: 8ea593ba135faf00d9ba39f393682172366eee9b
Time: 2017-06-09
Author: rob@luminoso.com
File Name: conceptnet5/vectors/retrofit.py
Class Name:
Method Name: retrofit


Project Name: sigopt/sigopt-sklearn
Commit Name: 80f12b964d6315df2fac391325013e99e7a13a7c
Time: 2016-10-11
Author: eric.bai@sigopt.com
File Name: sigopt_sklearn/search.py
Class Name: SigOptSearchCV
Method Name: _fit


Project Name: fgnt/pb_bss
Commit Name: 7552c494307f153d216b9a00f8e2b150e0482155
Time: 2019-08-16
Author: mail@lukas-drude.de
File Name: nt/evaluation/sxr.py
Class Name:
Method Name: input_sxr