# HG changeset patch # User SylvainPL # Date 1273267461 14400 # Node ID b2a7d93caa0f8bd7fe03d034641e8fbfb1adcc49 # Parent db7da40a7338edf39e9fe8ff0df5add0216867a3 Correction d'un petit bug d'indice. Le script est maintenant plus juste diff -r db7da40a7338 -r b2a7d93caa0f deep/stacked_dae/v_sylvain/nist_apriori_error.py --- a/deep/stacked_dae/v_sylvain/nist_apriori_error.py Fri May 07 16:59:03 2010 -0400 +++ b/deep/stacked_dae/v_sylvain/nist_apriori_error.py Fri May 07 17:24:21 2010 -0400 @@ -1,4 +1,3 @@ -# -*- coding: utf-8 -*- __docformat__ = 'restructedtext en' import pdb @@ -66,8 +65,6 @@ total_error_count=0 total_exemple_count=0 - total_error_count_wap=0 - if part == 0: iter = dataset.train(1) if part == 1: @@ -127,16 +124,10 @@ predicted_class=numpy.argmax(out[0,36:])+36 if(predicted_class!=y): total_error_count+=1 - #without a priori - predicted_class=numpy.argmax(out) - if(predicted_class!=y): - total_error_count_wap+=1 - + print '\t total exemples count: '+str(total_exemple_count) print '\t total error count: '+str(total_error_count) print '\t percentage of error: '+str(total_error_count*100.0/total_exemple_count*1.0)+' %' - print '\t total error count without a priori: '+str(total_error_count_wap) - print '\t percentage of error without a priori: '+str(total_error_count_wap*100.0/total_exemple_count*1.0)+' %' def sigmoid(value):