Permalink
Browse files

1.modify the writeconfig file for implicit feedback

2.tidy up the script.py a bit
  • Loading branch information...
1 parent de53570 commit c80f48a52a585d20721413cbf34005b9f0b0c87d @Ykid Ykid committed Aug 1, 2013
Showing with 4 additions and 3 deletions.
  1. +4 −0 utils/SVDModel.py
  2. +0 −3 utils/script.py
View
@@ -185,6 +185,10 @@ def writeConfig(self):
fout.write('#Model save path\n')
fout.write('model_out_folder = \"' + self.modelOutPath
+ self.tag + '_t' + self.trial + '\"')
+ if self.featureSet == 'ImplicitFeedback':
+ fout.write("format_type = " + self.formatType + '\n')
+ fout.write("num_ufeedback = " + self.numUserFeedback + '\n')
+ fout.write("wd_ufeedback = " + self.regularizationFeedback + '\n')
os.system('mkdir ' + self.modelOutPath
+ self.tag + '_t' + self.trial)
View
@@ -40,6 +40,3 @@ def setupImplicitFeatures(self):
self.formatType = 1
self.numUserFeedback = len(ItemDic)
- #make implicit feature files
- #Here I need to issue two command
- #

0 comments on commit c80f48a

Please sign in to comment.