[marf-cvs] apps/SpeakerIdentApp testing.sh,1.30,1.31
Brought to you by:
mokhov
From: Serguei A. M. <mo...@us...> - 2005-08-27 17:57:40
|
Update of /cvsroot/marf/apps/SpeakerIdentApp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19299 Added Files: testing.sh Log Message: Re-add mistakingly removed testing.sh as a part of .bat clean up. --- NEW FILE: testing.sh --- #!/bin/tcsh -f # # Batch Processing of Training/Testing Samples # NOTE: Make take quite some time to execute # # Copyright (C) 2002-2005 The MARF Development Group # # $Header: /cvsroot/marf/apps/SpeakerIdentApp/testing.sh,v 1.31 2005/08/27 17:57:32 mokhov Exp $ # # # Set environment variables, if needed # setenv CLASSPATH .:marf.jar setenv EXTDIRS # # Set flags to use in the batch execution # set java = 'java' #set debug = '-debug' set debug = '' set graph = '' #set graph = '-graph' #set spectrogram = '-spectrogram' set spectrogram = '' if($1 == '--reset') then echo "Resetting Stats..." $java SpeakerIdentApp --reset exit 0 endif if($1 == '--retrain') then echo "Training..." # Always reset stats before retraining the whole thing $java SpeakerIdentApp --reset foreach prep (-norm -boost -low -high -band -highpassboost -raw -endp) foreach feat (-fft -lpc -randfe -minmax) # Here we specify which classification modules to use for # training. Since Neural Net wasn't working the default # distance training was performed; now we need to distinguish them # here. NOTE: for distance classifiers it's not important # which exactly it is, because the one of generic Distance is used. # Exception for this rule is Mahalanobis Distance, which needs # to learn its Covariance Matrix. foreach class (-cheb -mah -randcl -nn) echo "Config: $prep $feat $class $spectrogram $graph $debug" date # XXX: We cannot cope gracefully right now with these combinations --- too many # links in the fully-connected NNet, so run out of memory quite often; hence, # skip it for now. if("$class" == "-nn" && ("$feat" == "-fft" || "$feat" == "-randfe")) then echo "skipping..." continue endif time $java SpeakerIdentApp --train training-samples $prep $feat $class $spectrogram $graph $debug end end end endif echo "Testing..." foreach file (testing-samples/*.wav) foreach prep (-norm -boost -low -high -band -highpassboost -raw -endp) foreach feat (-fft -lpc -randfe -minmax) foreach class (-eucl -cheb -mink -mah -diff -randcl -nn) echo "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=" echo "DOING FILE:" echo $file echo "Config: $prep $feat $class $spectrogram $graph $debug" date echo "=============================================" # XXX: We cannot cope gracefully right now with these combinations --- too many # links in the fully-connected NNet, so run of memeory quite often, hence # skip it for now. if("$class" == "-nn" && ("$feat" == "-fft" || "$feat" == "-randfe")) then echo "skipping..." continue endif time $java SpeakerIdentApp --ident $file $prep $feat $class $spectrogram $graph $debug echo "---------------------------------------------" end end end end echo "Stats:" $java SpeakerIdentApp --stats | tee stats.txt $java SpeakerIdentApp --best-score | tee best-score.tex date | tee stats-date.tex echo "Testing Done" exit 0 # EOF |