Skip to content
Browse files

Updated FM printout

  • Loading branch information...
1 parent ad0700d commit e84fa34b7b95ffeeb3c16e4c3ff5de6b375d6b61 @ChrisRackauckas committed Aug 2, 2013
Showing with 7 additions and 7 deletions.
  1. +7 −7 utils/FMModel.py
View
14 utils/FMModel.py
@@ -54,48 +54,48 @@ def dataConvert(self):
# Then converts it to the binary form
#-----------------------------
- os.sys.stdout.write('{0}\r'.format('-- Converting (1/6) --') )
+ os.sys.stdout.write('{0}\r'.format('-- Converting (1/6) ' + self.tag + ' --') )
os.system('./Models/libFM/convert --ifile ' +
self.featTrain +
'.libfm ' + '--ofilex ' +
self.tmpTrain +
'.x --ofiley ' +
self.runTrain + '.y' +
'> /dev/null')
- os.sys.stdout.write('{0}\r'.format('-- Converting (2/6) --') )
+ os.sys.stdout.write('{0}\r'.format('-- Converting (2/6) ' + self.tag + ' --') )
os.system('./Models/libFM/convert --ifile ' +
self.featCV +
'.libfm ' + '--ofilex ' +
self.tmpCV +
'.x --ofiley ' +
self.runCV + '.y' +
'> /dev/null')
- os.sys.stdout.write('{0}\r'.format('-- Converting (3/6) --') )
+ os.sys.stdout.write('{0}\r'.format('-- Converting (3/6) ' + self.tag + ' --') )
os.system('./Models/libFM/convert --ifile ' +
self.featTest +
'.libfm ' + '--ofilex ' +
self.tmpTest +
'.x --ofiley ' +
self.runTest + '.y'
'> /dev/null')
- os.sys.stdout.write('{0}\r'.format('-- Converting (4/6) --') )
+ os.sys.stdout.write('{0}\r'.format('-- Converting (4/6) ' + self.tag + ' --') )
os.system('./Models/libFM/transpose --ifile ' +
self.tmpTrain +
'.x --ofile ' +
self.runTrain + '.xt' +
'> /dev/null')
- os.sys.stdout.write('{0}\r'.format('-- Converting (5/6) --') )
+ os.sys.stdout.write('{0}\r'.format('-- Converting (5/6) ' + self.tag + ' --') )
os.system('./Models/libFM/transpose --ifile ' +
self.tmpCV + '.x --ofile ' +
self.runCV + '.xt' +
'> /dev/null')
- os.sys.stdout.write('{0}\r'.format('-- Converting (6/6) --') )
+ os.sys.stdout.write('{0}\r'.format('-- Converting (6/6) ' + self.tag + ' --') )
os.system('./Models/libFM/transpose --ifile ' +
self.tmpTest +
'.x --ofile ' +
self.runTest + '.xt' +
'> /dev/null')
- print()
+ print(self.tag + ' data is converted.')
#########################################
########### Develop Features ############

0 comments on commit e84fa34

Please sign in to comment.
Something went wrong with that request. Please try again.