1783757d1d5f62d2398d1f8df2cd71b4c3113b6f,entity2rec/evaluator.py,Evaluator,features,#Evaluator#,207

Before Change



            user_item_features = Parallel(n_jobs=3, backend="threading")(delayed(self._compute_features)
                                  (data, recommender, negative_candidates, n_users, val_set)
                                  for data, recommender, negative_candidates, val_set in [(training, recommender, False, False),
                                                                              (test, recommender, True, False),
                                                                              (validation, recommender, True, True)])

After Change



        else:  // select all users

            users_list = list(self.items_rated_by_user_train.keys())

        if validation:

            user_item_features = Parallel(n_jobs=3, backend="threading")(delayed(self._compute_features)
                                  (data, recommender, users_list)
                                  for data in ["train", "test", "val"])

            x_train, y_train, qids_train = user_item_features[0]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: D2KLab/entity2rec
Commit Name: 1783757d1d5f62d2398d1f8df2cd71b4c3113b6f
Time: 2018-01-22
Author: enricopalumbo0@gmail.com
File Name: entity2rec/evaluator.py
Class Name: Evaluator
Method Name: features


Project Name: EpistasisLab/scikit-rebate
Commit Name: 971719830d589eba66434ddabfc62c1a689be677
Time: 2017-04-07
Author: weixuanf@upenn.edu
File Name: skrebate/relieff.py
Class Name: ReliefF
Method Name: _run_algorithm


Project Name: scikit-learn/scikit-learn
Commit Name: 96a364e27fe2d4cb55328150a2c4b2d97acc8f3f
Time: 2020-07-26
Author: git@jjerphan.xyz
File Name: sklearn/calibration.py
Class Name: CalibratedClassifierCV
Method Name: fit