changeset 448:b2a7d93caa0f

Correction d'un petit bug d'indice. Le script est maintenant plus juste
author SylvainPL <sylvain.pannetier.lebeuf@umontreal.ca>
date Fri, 07 May 2010 17:24:21 -0400
parents db7da40a7338
children 7bdd412754ea
files deep/stacked_dae/v_sylvain/nist_apriori_error.py
diffstat 1 files changed, 1 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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):