Mercurial > hg > aimc
changeset 388:d9be18850b55
- We'll get there in the end
author | tomwalters |
---|---|
date | Tue, 14 Sep 2010 01:14:54 +0000 |
parents | 59e03282b534 |
children | 0137bfbe84df |
files | trunk/experiments/scripts/cnbh-syllables/results_plotting/gen_results.py trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh |
diffstat | 2 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/trunk/experiments/scripts/cnbh-syllables/results_plotting/gen_results.py Tue Sep 14 01:11:40 2010 +0000 +++ b/trunk/experiments/scripts/cnbh-syllables/results_plotting/gen_results.py Tue Sep 14 01:14:54 2010 +0000 @@ -12,7 +12,7 @@ help_message = ''' -Generate a file containing all the results for a run of the +Write out all the results for a run of the syllable recognition experiment. Expected input is a 'misclassificaions' file of the type generated by run_test_instance.sh, along with the locations of files containing the training talkers and all the talkers that the system @@ -22,7 +22,6 @@ -i --input_file -t --train_talkers -s --test_talkers --o --output_filename -c --value_count -p --spoke_pattern ''' @@ -39,7 +38,7 @@ try: opts, args = getopt.getopt(argv[1:], "hi:t:s:o:c:p:v", ["help", "input_file=", "train_talkers=", - "test_talkers=", "output_filename=", + "test_talkers=", "value_count=", "spoke_pattern="]) except getopt.error, msg: raise Usage(msg) @@ -68,8 +67,6 @@ total_value_count = int(value) if option in ("-p", "--spoke_pattern"): spoke_pattern_file = value - if option in ("-o", "--output_filename"): - output_filename = value except Usage, err: print >> sys.stderr, sys.argv[0].split("/")[-1] + ": " + str(err.msg)
--- a/trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh Tue Sep 14 01:11:40 2010 +0000 +++ b/trunk/experiments/scripts/cnbh-syllables/run_training_and_testing/run_test_instance.sh Tue Sep 14 01:14:54 2010 +0000 @@ -97,7 +97,7 @@ fi # Count the number of instances of each talker appearing in the list of errors. grep Aligned $WORKING_DIRECTORY/$hmm_type/${RESULTS_FILE}_iteration_$iter| sed -E "s/.*\/..\/([a-z]{2})([0-9]{2,3}\.[0-9])p([0-9]{2,3}\.[0-9])s.*/\2p\3s/" | sort | uniq -c > $WORKING_DIRECTORY/$hmm_type/${MISCLASSIFIED}_iteration_$iter - python ./cnbh-syllables/results_plotting/gen_results.py --input_file=$WORKING_DIRECTORY/$hmm_type/${MISCLASSIFIED}_iteration_$iter --train_talkers=$WORKING_DIRECTORY/training_talkers --test_talkers=$WORKING_DIRECTORY/testing_talkers --output_filename=$WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.txt --spoke_pattern=$SPOKE_PATTERN_FILE + python ./cnbh-syllables/results_plotting/gen_results.py --input_file=$WORKING_DIRECTORY/$hmm_type/${MISCLASSIFIED}_iteration_$iter --train_talkers=$WORKING_DIRECTORY/training_talkers --test_talkers=$WORKING_DIRECTORY/testing_talkers --spoke_pattern=$SPOKE_PATTERN_FILE > $WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.txt python ./cnbh-syllables/results_plotting/spider_plot.py --input_file=$WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.txt --output_file=$WORKING_DIRECTORY/$hmm_type/results_iteration_${iter}.png done touch $WORKING_DIRECTORY/$hmm_type/.hmm_success