c3a6f53a6523a086752c07047c888a1019ba5773,recommenders/rating_prediction/base_rating_prediction.py,BaseRatingPrediction,__init__,#BaseRatingPrediction#Any#Any#Any#,7

Before Change


        if test_file != "":
            self.test = ReadFile(test_file, self.space_type)
            self.test.main_information()
            self.dataset_users = sorted(list(set(self.train.list_users + self.test.list_users)))
            self.dataset_items = sorted(list(set(self.train.list_items + self.test.list_items)))

        else:
            self.dataset_users = self.train.list_users

After Change


        self.bu = dict()
        self.bi = dict()
        self.bui = dict()
        self.matrix = np.zeros((len(self.train_users), len(self.train_items)))
        self.map_items = dict()
        self.map_users = dict()

        for item_id, item in enumerate(self.train_items):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: caserec/CaseRecommender
Commit Name: c3a6f53a6523a086752c07047c888a1019ba5773
Time: 2016-06-03
Author: fortes.arthur@gmail.com
File Name: recommenders/rating_prediction/base_rating_prediction.py
Class Name: BaseRatingPrediction
Method Name: __init__


Project Name: dmlc/gluon-nlp
Commit Name: f4275c0b80197e0f1bbd3a2a1a31cf07d85013b1
Time: 2019-01-09
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name: load_embedding_from_path


Project Name: lmcinnes/pynndescent
Commit Name: 0488cd2058da28c118f98af5255687d774c6f70e
Time: 2019-09-14
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name:
Method Name: initialized_nnd_search