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

Before Change


            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
            self.dataset_items = self.train.list_items

After Change


        for user_id, user in enumerate(self.train_users):
            self.map_users[user] = user_id

        for u, user in enumerate(self.train_users):
            for item in self.train_feedback[user]:
                self.matrix[u][self.map_items[item]] = self.train_feedback[user][item]

    def train_baselines(self):
        for i in xrange(10):
            self.compute_bi()
            self.compute_bu()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

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: ilastik/ilastik
Commit Name: c8105b3974fba93097bd28e5ae14a27e5f56c857
Time: 2013-03-14
Author: bergs@janelia.hhmi.org
File Name: ilastik/applets/objectExtraction/objectExtractionSerializer.py
Class Name: SerialObjectFeaturesSlot
Method Name: deserialize


Project Name: WheatonCS/Lexos
Commit Name: ce6ff9a4ccff73a6d7c4392d29e48914347983a0
Time: 2016-05-26
Author: 13501393281@163.com
File Name: processors/analyze/topword.py
Class Name:
Method Name: testgroup