Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

1.modify the writeconfig file for implicit feedback

2.tidy up the script.py a bit
  • Loading branch information...
commit c80f48a52a585d20721413cbf34005b9f0b0c87d 1 parent de53570
@Ykid Ykid authored
Showing with 4 additions and 3 deletions.
  1. +4 −0 utils/SVDModel.py
  2. +0 −3  utils/script.py
View
4 utils/SVDModel.py
@@ -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
3  utils/script.py
@@ -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
- #
Please sign in to comment.
Something went wrong with that request. Please try again.