public void testArchitecture() throws IOException{
		//rotate bin	
		archError=0;
		for(int k=0; k<binNo; k++){
			testBin=bins[k];
			//System.out.print("Testing bin: "+k+"\n");
			propagateBackNNA(testBin);
		}
		String s="";
		for(int l=0; l < hiddenLayersNo; l++) s+=hiddenLayers[l]+" ";
		System.out.print("Validate arch "+s+" with error:"+archError/(binNo-1)+"\n");
		//for(int l=0; l < hiddenLayersNo; l++) System.out.print(hiddenLayers[l]+" ");
		//System.out.print("-- Arch error: "+archError/binNo+"  --\n");
		if(archError<bestArchError || bestArchError==0){ 
			bestArchError=archError; 
			bestArch=new int[hiddenLayersNo]; 
			for(int i=0; i<hiddenLayersNo; i++) 
				bestArch[i]=hiddenLayers[i];
		}
		
	}