Permalink
Browse files

1.set the parameters in script.py for implicit feedback

2.add some variables in SVDModel.py for implicit feedback model
  • Loading branch information...
1 parent 34ba470 commit de535707d8367282b474c48f733f8d0b83da92e8 @Ykid Ykid committed Aug 1, 2013
Showing with 4 additions and 1 deletion.
  1. +2 −1 utils/SVDModel.py
  2. +2 −0 utils/script.py
View
@@ -22,9 +22,10 @@ def __init__(self,configModel,utils,config,strTrial):
self.SVDFeatureInferBinary= utils.SVDFEATURE_INFER_BINARY
self.SVDFeatureLineReorder= utils.SVDFEATURE_LINE_REORDER
self.SVDFeatureSVDPPRandOrder = utils.SVDFEATURE_SVDPP_RANDORDER
- self.regularizationFeedback = 0
+ self.regularizationFeedback = config.SVD_REGULARIZATION_FEEDBACK
self.formatType = 0
self.numUserFeedback = 0
+ # 0 is the default value
### Setup Data ###
View
@@ -37,6 +37,8 @@ def setupImplicitFeatures(self):
self.avg=avg
self.numGlobal = 0
self.activeType = 0
+ self.formatType = 1
+ self.numUserFeedback = len(ItemDic)
#make implicit feature files
#Here I need to issue two command

0 comments on commit de53570

Please sign in to comment.