in reply to RFC: AI::NeuralNet::Simple

Little readability note:

$net->train_set([ [1,1], [0,1], [1,0], [0,1], [0,1], [0,1], [0,0], [1,0], ], 10000);

Since the arrayrefs on the left and right columns are associated, the above might be better as:

$net->train_set([ [1,1] => [0,1], [1,0] => [0,1], [0,1] => [0,1], [0,0] => [1,0], ], 10000);

----
I wanted to explore how Perl's closures can be manipulated, and ended up creating an object system by accident.
-- Schemer

: () { :|:& };:

Note: All code is untested, unless otherwise stated

Replies are listed 'Best First'.
Re: Re: RFC: AI::NeuralNet::Simple
by Ovid (Cardinal) on Oct 31, 2003 at 22:22 UTC