b08523adee895ffb7074bc75e241dc532264a004,magpie/feature_extraction/keyword_features.py,,extract_keyword_features,#Any#Any#Any#Any#,8
Before Change
X["idf_sum"][i] = sum(idf_vec)
X["idf_max"][i] = max(idf_vec)
X["idf_min"][i] = min(idf_vec)
X["idf_var"][i] = np.var(idf_vec)
X["tfidf"][i] = X["tf_mean"][i] * X["idf_mean"][i]
// Occurrences and spread
After Change
// X["tf_var"][i] = np.var(tf_vec)
X["idf_sum"][i] = sum(idf_vec)
X["idf_mean"][i] = X["idf_sum"][i] / len(idf_vec)
X["idf_max"][i] = max(idf_vec)
X["idf_min"][i] = min(idf_vec)
// X["idf_var"][i] = np.var(idf_vec)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: inspirehep/magpie
Commit Name: b08523adee895ffb7074bc75e241dc532264a004
Time: 2016-01-28
Author: jan.stypka@cern.ch
File Name: magpie/feature_extraction/keyword_features.py
Class Name:
Method Name: extract_keyword_features
Project Name: arviz-devs/arviz
Commit Name: 32692a1ae53d7c5bf36564aeca1b572ddf40f9f0
Time: 2018-06-29
Author: aloctavodia@gmail.com
File Name: arviz/stats/stats.py
Class Name:
Method Name: r2_score
Project Name: bambinos/bambi
Commit Name: 3b7a3e628b0dea98f0dcaad6d91b22c7c137d04d
Time: 2017-03-24
Author: tyarkoni@gmail.com
File Name: bambi/models.py
Class Name: Model
Method Name: add