http://www.ra.cs.uni-tuebingen.de/SNNS/SNNS-Mail/96/0515.html
Re: Analyze.gawk
Guenter Mamier (mamier@hermes)
Mon, 7 Oct 1996 11:12:15 +0200
Messages sorted by: [ date ][ thread ][ subject ][ author ]
Next message: Guenter Mamier: "RE: ANALYZE.GA"
Previous message: Guenter Mamier: "Re: SNNS - ARTMAP"
Maybe in reply to: Guenter Mamier: "Analyze.gawk"
>>>>> "Elson" == Elson Felix Mendes Filho <prico@icmsc.sc.usp.br> writes:

|> Hi, everybody.  I'm using the SNNS to train a network to solve a
|> credit aproval problem of a brazilian bank. I'm using the
|> backpropMomentum in batchman programs and I'm using the analyze
|> tool to get the statistics of my result files.  In the SNNS Manual
|> (chap. 13.4 - Batchman example programs) there is an example (ex 2)
|> that uses the analyze and another tool (analyze.gawk) that I supose
|> pass the parameters of a statistic.

|> " command := "analyze -s -e WTA -i "+ resfile +" | analyze.gawk" "

|> But in my package I can't find this tool. Where can I get it?  Is
|> this tool specificaly to the winner takes all analyze function?
|> Does it works with the 402040 or band function?


We did not include analyze.gawk in the distribution because it is just
a small awk program. It has to be adjusted to the parameters given to
analyze. 

Remember: If you want to call an arbitrary command from batchman and
use the returned values from this command you have to make sure that
all values are returned in a single line. The command 
	command := "analyze -s -e WTA -i "+ resfile
would return 

	STATISTICS ( 26 patterns )
	wrong   :  0.00 %  ( 0 pattern(s) )
	right   : 100.00 %  ( 26 pattern(s) )
	unknown :  0.00 %  ( 0 pattern(s) )
	error   : 0.367710

which can not be processed by batchman. The awk program (in this case
 
{if ($1 == "wrong") w = $3}
{if ($1 == "right") r = $3}
{if ($1 == "unknown") u = $3}
{if ($1 == "error") e = $3}

END {printf(" %f %f %f %f \n",w,r,u,e)}

) reformats the output to

 0.000000 100.000000 0.000000 0.367710 

so batchman can assign the result values to to its w,r,u, and e
variables respectively.


	Guenter

 -------------------------------------------------------------------------
|Guenter W. Mamier                      mamier@informatik.uni-stuttgart.de|
|University of Stuttgart, IPVR		       	                          |
|Breitwiesenstrasse 20-22, 						  |
|70565 Stuttgart, Germany                            Tel: +49 711 7816-447|
|                                                    Fax: +49 711 7816-250|
| http://www.informatik.uni-stuttgart.de/ipvr/bv/personen/mamier_engl.html|
 -------------------------------------------------------------------------
