><FONT size=3>In NNUGA, we are using GA to find the solution to a <B>classification problem</B> with a <B>neural network</B> (NN). The neural network is a structure which is able to respond with <I>True</I> (1) or <I>False</I> (0) to a given input vector. We are trying to "teach" our neural network to correctly classify a set of input vectors, which can be thought of as <B>learning a concept</B>. We then expect that when the neural network will be presented with a vector P not from this set, it will tend to exhibit <B>generalization</B> by responding with an output similar to target vectors for input vectors close to the previously unseen input vector P. 1 Q9 R6 R) a5 B
><FONT size=3>Our genetic algorithm works with not one but <B>multiple populations</B>, all of which evolve seperately most of the time, except for once every several generations where we allow different populations to mix with each other.
><FONT size=3>In the first layer we have 2 neurons with atan transfer functions:
><FONT size=3></FONT><
RE><FONT size=3> atan( P * W + b )
RE><FONT size=3> P * W + b4 z) c0 U5 a- r, o- e" i6 M
RE><FONT size=3> P * W + b > 0
><FONT size=3>The output function of the neuron in the second layer is: </FONT><
RE><FONT size=3> A * W + b > 0
><FONT size=3>The Canonical GA (pseudo code):
><FONT size=3></FONT><
RE><FONT size=3> choose initial population
><FONT size=3>In our case, we have several seperated populations, all of which evolve seperately. Once every several generations we allow cross-over from different populations. / ?, K P7 A! R7 o0 Y/ q
><FONT size=3></FONT></P>3 J& m7 \3 o- n; n5 J* {0 }
><FONT size=3>Here's an example of a screen shot:
><FONT size=3></FONT>+ w! Y. r1 }& S( H2 W: n
><FONT size=3></FONT></P>
><FONT size=3></FONT></P>- k7 S8 C) f1 [, h9 R8 g
>
><FONT size=3>You can also grab all these files in one </FONT><a href="http://www.cs.bgu.ac.il/~omri/NNUGA/nnuga.tar.gz" target="_blank" ><FONT size=3>tarred gzipped file </FONT></A><FONT size=3>(8K) . % Z l, G+ i( J, @# v; [4 w/ v6 K
><FONT size=3><I>Note: This code is free and is in the public domain. You may copy, use, and change it as much as you like. However, the writers take no responsibility for the results of using this program.</I> 4 J" G H% X% U7 ?1 K, k
><FONT size=3></FONT></P>
><I><FONT size=3>Last updated August 13th 1995| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |