From: Aaron A. <aa...@us...> - 2007-05-27 11:19:55
|
Update of /cvsroot/jboost/jboost/scripts In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv3137/scripts Modified Files: nfold.py Log Message: Fixed path bug, reverted to CLASSPATH dependence Index: nfold.py =================================================================== RCS file: /cvsroot/jboost/jboost/scripts/nfold.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** nfold.py 19 May 2007 01:57:56 -0000 1.3 --- nfold.py 27 May 2007 11:19:49 -0000 1.4 *************** *** 25,40 **** def learner(atreeoption, k, rounds): # XXX: put in description! - pwd = os.getcwd() - caller = sys.argv[0] - end = caller.rfind('/') - jboost_command = '../jboost' - if(end > 0): - jboost_command = pwd + '/../' + caller[:end+1] + '/../jboost' - config= os.getenv('JBOOST_CONFIG') ! command = jboost_command + ' -p 3 -a -2 -S trial'+str(k)+' -n trial.spec -ATreeType '+ atreeoption +' -numRounds ' + str(rounds) if (config != None): ! command = command + ' -CONFIG ' + config ! print command error= os.system(command) --- 25,35 ---- def learner(atreeoption, k, rounds): # XXX: put in description! config= os.getenv('JBOOST_CONFIG') ! command = 'java -Xmx1000M -cp ' + os.getenv('CLASSPATH') \ ! + ' jboost.controller.Controller -p 3 -a -2 -S trial' + str(k) \ ! + ' -n trial.spec -ATreeType '+ atreeoption +' -numRounds ' + str(rounds) if (config != None): ! command = command + ' -CONFIG ' + config ! print command error= os.system(command) |