Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re: AI::NNEasy to setup fast a Neural Network using just Perl and XS.

by g0n (Priest)
on Feb 22, 2005 at 16:36 UTC ( [id://433376]=note: print w/replies, xml ) Need Help??


in reply to AI::NNEasy to setup fast a Neural Network using just Perl and XS.

Speeding things up

I know this is a rather late addition to this topic, but I've been doing a lot of work on nnflex since it was first posted on CPAN at the beginning of Jan:

gmpassos, if you're still working on this you might want to think about implementing a momentum term in backprop.
Momentum works by adding a fraction (often about half, but you'll get the right value for your network by trial and error) of the weight change from the previous learning pass to the weight change for this pass. That way, when the network is a long way from converging, the weight changes are quite large, and become progressively smaller as the network nears convergence.

My experiments with XOR suggest an improvement in learning speed (measured in the number of passes) of up to 5 fold, and improved network stability (because your network is less likely to get stuck in local minima).

You can get the code from the momentum.pm module in nnflex.

I hope thats useful.

c

VGhpcyBtZXNzYWdlIGludGVudGlvbmFsbHkgcG9pbnRsZXNz
  • Comment on Re: AI::NNEasy to setup fast a Neural Network using just Perl and XS.

Replies are listed 'Best First'.
Re^2: AI::NNEasy to setup fast a Neural Network using just Perl and XS.
by gmpassos (Priest) on Feb 23, 2005 at 01:24 UTC
    Is I'm still working on AI::NNEasy. Actually I have stoped to work on it to speed up another project, but this week I have just get back to the photo analysis project, where I have plans to build a new NN for the new vector format for the forms of the image. Just send me an e-mail with your new things and I will put it on NNEasy and make the XS functions.

    Graciliano M. P.
    "Creativity is the expression of liberty".

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://433376]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-25 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found