fmincg ported to Fortran

If you’ve had a chance to take Andrew Ng’s wonderful Coursera class on Machine Learning, you’ll no doubt be familiar with the fmincg function that is used in the neural network algorithms.  For his class, he uses Octave/Matlab implementations, but there may be some who wish to continue their work using Fortran.  To facilitate my own continuation, I’ve ported the function to Fortran and made it available to everyone below.  Please let me know what you think (and if there are any bugs!).  Also, I may soon post a version optimized for use with the Intel MKL libraries that will no doubt run much faster!

Oh and by the way, you will need to use the ieee_arithmetic module for this.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s