779655167443 e +000, +9,40359548483022 e +000, +6,29580684655405 e +000},
{- +4,67149656505120 e - 001, - +6,09590774067550 e +000, +1,75210100895654 e +000, - +3,13956250775567 e +000, +1,43068245551182 e +001, - +7,85053944357368 e - 001, 4 , 24516927798281e +000, - +2,59941858924333 e +000, +6,03602215289459 e - 001, - +2,18964575431617 e +000, +1,14808888593193 e +001, +7,03883507225023 e +000},
{- +1,00981535367063 e +000, - +6,32535934729304 e +000, +4,01064987145387 e +000, +1,48465851842388 e +000, 9,81770015310024e +000, +3,56768950228247 e +000, +2,09026878326488 e +000, - +3,56947927444606 e +000, +3,78673354205937 e +000, +6,97345367206553 e +000, +3,56882993548831 e +000, +4,76152715633977 e - 001}, p>
{- +8,54838370143648 e - 001, - +6,96381955453000 e +000, +3,30845287107656 e +000, +8,45395665670600 e - 001, +1,02274795138672 e +001, +2,97825904668851 e +000, +2,34064744676174 e +000, - +4,02916055317983 e +000, +3,23672074326387 e +000, +5,90548752061914 e +000, +4,22109537118753 e +000, +7,78710016942739 e - 001}
}; hidden_bias [5]={- +4,89949635603894 e - 001, - +1,92268683845077 e +000, +4,34461990732500 e +000, +2,67856825427872 e +000, +2,22697833237394 e +000}; hidden_output_wts [3] [5]=
{
{- +3,31754742496978 e +000, +8,98228051391912 e +000, +4,09646018637776 e +000, - +2,98424512535983 e +000, - +6,24495119880673 e +000},
{+1,29127644257301 e +000, - +3,38886487369035 e +000, +4,27371800423730 e +000, - +7,54734238002245 e - 002, +5,79364818806007 e - 001},
{+2,10323923959187 e +000, - +5,53525376784362 e +000, - +8,23942580395382 e +000, +3,02222658249428 e +000, +5,59800454230386 e +000}
}; output_bias [3]={+2,55329441003075 e +000, +9,52241585555783 e - 001, - +3,56191361399268 e +000}; max_input [12]={+3,00000000000000 e +000, 4, 00000000000000e +000, +3,00000000000000 e +000, +4,00000000000000 e +000, +3,00000000000000 e +000, +4,00000000000000 e +000, +4,00000000000000 e +000, +3,00000000000000 e +000, +3,00000000000000 e +000, +3,00000000000000 e + 000, +3,00000000000000 e +000, +6,00000000000000 e +000}; min_input [12]={+1,00000000000000 e +000, +1,00000000000000 e +000, +0,00000000000000 e +000, +1,00000000000000 e +000, +1,00000000000000 e +000 , +1,00000000000000 e +000, +1,00000000000000 e +000, +1,00000000000000 e +000, +1,00000000000000 e +000, +1,00000000000000 e +000, +1,00000000000000 e +000, +1,00000000000000 e +000}; input [12]; hidden [5]; output [3]; FindMax (double * vec, double * max, long * maxIndex, int len)
{i;
* max=vec [0];
* maxIndex=0; (i=1; i
{(vec [i]> * max)
{
* max=vec [i];
* maxIndex=i;
}
}
} ScaleInputs (double * input, double minimum, double maximum, int size)
{delta; i; (i=0; i
{= (maximum-minimum) / (max_input [i]-min_input [i]); [i]=minimum - delta * min_input [i] + delta * input [i]; p>
}
} softmax (double * vec, int len)
{i, j; sum=0.0; (...