Update of /cvsroot/jboost/jboost/scripts
In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv14947/scripts
Modified Files:
VisualizeScores.py
Log Message:
VisualizeScore takes the path to the info files as a parameter
Index: VisualizeScores.py
===================================================================
RCS file: /cvsroot/jboost/jboost/scripts/VisualizeScores.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** VisualizeScores.py 9 Sep 2008 20:43:25 -0000 1.3
--- VisualizeScores.py 10 Sep 2008 00:19:25 -0000 1.4
***************
*** 3,24 ****
from java.util import Vector
! info_path = '/Users/yoavfreund/Desktop/Galit_Lahav/Raw_tifs/28/jboost/t28.0/ADD_ALL/'
!
! #args = sys.argv[1:]
! #if len(args) != 1:
! # sys.exit("""
! # Usage: VisualizeScore <info-files-path>
! # info-file-path is a directory containing files with names like trial0.test.boosting.info, trial2.train.boosting.info ...
! # Example: VisualizeScore /Users/yoavfreund/Desktop/Galit_Lahav/Raw_tifs/28/jboost/t28.0/ADD_ALL/'
! # """)
! #filename = args[0]
header_p = re.compile('iteration=(\d+): elements=(\d+):')
scoreline_p = re.compile('([-+\d.]+):\s+') #([+-1]+):')
! #testfiles = glob.glob(info_path+"trial*.test.boosting.info")
! testfiles = glob.glob("/Users/yoavfreund/Downloads/dc_boost_active_output/iter?/*.test.boosting.info")
indexes={}
scores={}
--- 3,30 ----
from java.util import Vector
! args = sys.argv[1:]
! if len(args) != 1:
! sys.exit("""
! Usage: VisualizeScore <info-files-path>
! info-file-path is a directory containing files with names like trial0.test.boosting.info, trial2.train.boosting.info ...
! Example: perform the following commands from the jboost root directory
! <setup classpath to point to jython>
! source scripts/setClassPath.sh
! cd demo
! cat spambase.test spambase.train > spambase.data
! ../scripts/nfold.py --folds=3 --data=spambase.data --spec=spambase.spec --rounds=43 --tree=ADD_ALL --generate --booster=LogLossBoost
! jython ../scripts/VisualizeScores.py cvdata-09-09-17-00-55/ADD_ALL/
! """)
! info_path = args[0]
header_p = re.compile('iteration=(\d+): elements=(\d+):')
scoreline_p = re.compile('([-+\d.]+):\s+') #([+-1]+):')
! testfiles = glob.glob(info_path+"trial*.test.boosting.info")
! #testfiles = glob.glob("/Users/yoavfreund/Downloads/dc_boost_active_output/iter?/*.test.boosting.info")
+ #testfiles = glob.glob("/Users/yoavfreund/projects/jboost/demo/cvdata-09-09-17-00-55/ADD_ALL/trial*.test.boosting.info")
+ print testfiles
indexes={}
scores={}
|