1573e72acc20513657c5b73e89db5cead44ed807,caserec/recommenders/rating_prediction/svdplusplus.py,SVDPlusPlus,train_model,#SVDPlusPlus#,65
Before Change
for user in self.train_set["feedback"]:
sqrt_iu = (np.sqrt(len(self.train_set["du"][user])))
u = self.map_users[user]
for item_j in self.train_set["feedback"][user]:
self.user_implicit_feedback[u] += (self.y[self.map_items[item_j]] / sqrt_iu)
for item in self.train_set["feedback"][user]:
feedback = self.train_set["feedback"][user][item]
i = self.map_items[item]
eui = feedback - self._predict_svd_plus_plus(u, i, False)
After Change
// update y (implicit factor)
for item_j in self.train_set["feedback"][user]:
self.y[self.map_items[item_j]] += np.multiply(
0.007, (np.subtract(np.multiply(eui, i_f / sqrt_iu),
np.multiply(0.02, self.y[self.map_items[item_j]]))))
def predict(self):
if self.test_set is not None:
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: caserec/CaseRecommender
Commit Name: 1573e72acc20513657c5b73e89db5cead44ed807
Time: 2017-07-11
Author: fortes.arthur@gmail.com
File Name: caserec/recommenders/rating_prediction/svdplusplus.py
Class Name: SVDPlusPlus
Method Name: train_model
Project Name: ilastik/ilastik
Commit Name: bdb4aac1292f1b873bde0cc7dfb9ea77f7615e26
Time: 2013-03-18
Author: bergs@janelia.hhmi.org
File Name: lazyflow/operators/opCompressedCache.py
Class Name: OpCompressedCache
Method Name: setInSlot
Project Name: interactiveaudiolab/nussl
Commit Name: e01dc00651cb36ee62d3cb9c97d82a4892e1f001
Time: 2017-02-09
Author: ethanmanilow@gmail.com
File Name: nussl/audio_signal.py
Class Name: AudioSignal
Method Name: __sub__
Project Name: interactiveaudiolab/nussl
Commit Name: 9d9ef625dccb7ba0ed3295f18d90de9d6dd59469
Time: 2017-04-04
Author: ethanmanilow@gmail.com
File Name: nussl/audio_signal.py
Class Name: AudioSignal
Method Name: __sub__