b4d5c80c83ec0502231ff3563fa8ac5b95717267,conceptnet5/vectors/transforms.py,,make_replacements,#,110
Before Change
replacements[term] = index_map[indices[i]]
average_similarity.append(scores[i])
print(np.mean(average_similarity) )
return replacements
After Change
for term in big_frame.index:
if term not in small_frame.index:
most_similar = similar_to_vec(intersected, big_frame.loc[term], limit=1)
got = list(most_similar.index)
if got:
replacements[term] = got[0]
return replacements
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances Project Name: commonsense/conceptnet5
Commit Name: b4d5c80c83ec0502231ff3563fa8ac5b95717267
Time: 2017-06-14
Author: joanna.teresa.duda@gmail.com
File Name: conceptnet5/vectors/transforms.py
Class Name:
Method Name: make_replacements
Project Name: AxeldeRomblay/MLBox
Commit Name: f1b5b349fbffae3ae1ca0a3ca862ba7b81ddbaa1
Time: 2019-06-07
Author: hgerard.pro@gmail.com
File Name: mlbox/model/classification/classifier.py
Class Name: Classifier
Method Name: feature_importances
Project Name: AxeldeRomblay/MLBox
Commit Name: f1b5b349fbffae3ae1ca0a3ca862ba7b81ddbaa1
Time: 2019-06-07
Author: hgerard.pro@gmail.com
File Name: mlbox/model/regression/regressor.py
Class Name: Regressor
Method Name: feature_importances
Project Name: tensorflow/models
Commit Name: 8da4857396fcedb1abd19a08cd4de40d16c7bc50
Time: 2020-08-17
Author: 30733558+plakal@users.noreply.github.com
File Name: research/audioset/yamnet/yamnet_test.py
Class Name: YAMNetTest
Method Name: clip_test