/***************************************************************************/
/*                                                                         */
/*   Topographic Attentive Mapping (TAM) Network                           */
/*   README:  README                                                       */
/*                                                                         */
/*   Copyright (C) 1999 by Isao Hayashi,                                   */
/*   Kansai University, Takatsuki, Osaka 569-1095, Japan.                  */
/*                                                                         */
/***************************************************************************/


1. Class Files

	README: this file
	TAM.class: main program
	Structure.class: class file for structuring neural network
	Bottom_Data.class: class file for preparing data
	Data.class: class file for generating feature nodes
	Category.class: class file for generating category nodes
	Class_Output.class: class file for generating output nodes
	Init.class: class file for setting unchangeable parameters
	Parameter.class: class file for setting parameters

	input.data_training: example data for training
	input.data_checking: example data for evaluation
	input.parameter: file for initializing parameters

2. File Structure

	TAM.class --- Parameter.class
	           |_ Structure.class --- Bottom_Data.class
	                               |_ Data.class
	                               |_ Category.class
	                               |_ Class_Output.class
	                               |_ Init.class

3. Run

	%> java TAM DATAFILE_NAME  (e.g. java TAM input)

	c.f. You can modify the data of "input.data_training", "input.data_training" and "input.parameter".

4. After Run

	input.result_yj: result file of yj
	input.result_xji: result file of xji
	input.result_zk: result file of zk
	input.result_OC: result file of OC
	input.result_yjA: result file of yjA
	input.result_nj: result file of nj
	input.result_bji: result file of bji
	input.result_wjih: result file of wjih
	input.result_pjk: result file of pjk
	input.result: total result file

5. Details

   a) input.data_training, input.data_checking

	You should always give "feature names" and a "class name" in the input
	data file according to the following instructions.
		1. A feature name have to be given between "#"s.
		2. All feature names are have to be filled in.
		3. A class name have to be given between "%"s.
		4. The available letters are only alphabets (a to z and A to Z)
		   and integers (1 to 0).
		5. feature values have to be "double" type.
		6. class values have to be continuous "integer" type from "1",
		   never using "0".

	-----  example  -----

	     #feature 1#
	     #feature 2#
	     %class%
	
	     7.0  1.0  1
	     3.0  4.0  1
	     5.0  6.0  2
	     1.0  8.0  2
	     9.0  4.0  1
	     9.0  8.0  2

	---------------------

   b) input.parameter

	You should always give the following initialization of parameters 
	at the input parameter file.
	You should give the parameters between "$"s as the following example.

	-----  example  -----

	$epoch=100$
	$category init=0$
	$feature elements=20$
	$bji init=0.0$
	$wji init=0.05$  (= 1/the number of feature elements (20))
	$pjk init=0.5$   (= 1/the number of output nodes (2))
	$rho init=0.0$
	$rho step=0.1$
	$rho max=100.0$
	$OC=0.8$
	$alpha=0.0000001$
	$lambda=0.33$
	$bj rate=0.01$

	---------------------

   c) input.fih --> Canceled

   d) input.result_yj

	horizontal: epoch, shuffled data number, original data number, yj (j=1..N)
	vertical: epoch*data*rho before learning (AL=after learning, -=result for checking data)

   e) input.result_xji

	horizontal: epoch, shuffled data number, original data number, xji (j=1(i=1..M),j=2(i=1..M) .. j=N(i=1..M))
	vertical: epoch*data*rho before learning (AL=after learning, -=result for checking data)

   f) input.result_zk

	horizontal: epoch, shuffled data number, original data number, rho, correct output class, K, zk (k=1..U)
	vertical: epoch*data*rho before learning (AL=after learning, -=result for checking data)

   g) input.result_OC

	horizontal: epoch, shuffled data number, original data number, rho, categories, zK*/zK, OC
	vertical: epoch*data*rho before learning

   h) input.result_yjA

	horizontal: epoch, shuffled data number, original data number, zK*/zK, yj* (j=1..N)
	vertical: epoch*data before learning

   i) input.result_nj

	horizontal: epoch, shuffled data number, original data number, nj (j=1..N)
	vertical: epoch*data after learning

   j) input.result_bji

	horizontal: epoch, shuffled data number, original data number, bji (j=1(i=1..M),j=2(i=1..M) .. j=N(i=1..M))
	vertical: epoch*data after learning

   k) input.result_wjih

	horizontal: epoch, shuffled data number, original data number, wjih (j=1(i=1(h=1..L))..M(h=1..L)),j=2(i=1(h=1..L)..M(h=1..L)) .. j=N(i=1(h=1..L)..M(h=1..L)))
	vertical: epoch*data after learning

   l) input.result_pjk

	horizontal: epoch, shuffled data number, original data number, pjk (j=1(k=1..U),j=2(k=1..U) .. j=N(k=1..U))
	vertical: epoch*data after learning

   m) input.result

	1) training result
	   horizontal: epoch, shuffled data number, original data number, rho, categories, correct output class, K, correct rate, zk (k=1..U)
	   vertical: epoch*data after learning

	2) checking result
	   horizontal: epoch, shuffled data number, original data number, rho, categories, correct output class, K, correct rate, zk (k=1..U)
	   vertical: data
