als in second memory means, forward process including carrying out an operation on each of the input signals using one of weight functions and for outputting an operation result as the output signal, and self-learning process including generating new weight functions based on errors between the output signal obtained by the forward process and the teaching signals, and varying the weight functions