Did you know ... Search Documentation:
Packs (add-ons) for SWI-Prolog

Package "plfann"

Title:SWI-Prolog for "Fast Artificial Neural Network Library"
Rating:Not rated. Create the first rating!
Latest version:0.0.2
SHA1 sum:f0803bbead5fade60a0a72d75a2033a590f4236d
Author:Degski <degski@gmail.com>
Steffen Nissen <lukesky@diku.dk>
Packager:PiotrLi <piortlierr@gmail.com>
Home page:http://leenissen.dk/fann/wp/
Download URL:https://github.com/SWI-Prolog/contrib-plfann.git

Reviews

No reviews. Create the first review!.

Details by download location

VersionSHA1#DownloadsURL
0.0.134057f69bc79682228b01ce88840dcf9ef84f9f51https://github.com/PiotrLi/plfann.git
8ad1cd91094e7bc1f25b162ddf7ea85a7c7053a41https://github.com/PiotrLi/plfann.git
c0d2ca5b4f0ca65698c4ddbe00601e42d472d04e1https://github.com/PiotrLi/plfann.git
0.0.2f0803bbead5fade60a0a72d75a2033a590f4236d3https://github.com/PiotrLi/plfann.git

plfann

This is fann for swipl.

Simple code example

:- use_module(library(plfann)).

% Learning the XOR Function.
% --------------------------
main:-
    fann_create_standard( 3, 2, 3, 1, Ann ),
   
   % More economical would be:
   % fann_create_standard( [2, 3, 1], Ann ),

   nl,
   fann_print_connections( Ann ),
   nl,
   fann_print_parameters( Ann ),
   nl,

   fann_set_activation_function_hidden( Ann, 'FANN_SIGMOID_SYMMETRIC' ),
   fann_set_activation_function_output( Ann, 'FANN_SIGMOID_SYMMETRIC' ),

   % Insert the proper paths below

   fann_train_on_file( Ann, "xor.data", 500000, 1000, 0.00001 ),
   nl,
   fann_save( Ann, "xor_float.net" ),
   fann_destroy( Ann ).
?- main.

Documentation

To find out how to use this library follow Documentation of FANN.

Installation

  1. First install fann!
  2. If you already have fann, compile code by make and install in swipl:
    ?- pack_install('plfann-*.tgz').

Usage

If the installation went well, you can load the plfann library with the following command:

?- [library(plfann)].

Contribute

  • Source Code of FANN: github.com/libfann/fann
  • Issue Tracker of FANN: github.com/libfann/fann/issues
  • Source Code of plfann: github.com/SWI-Prolog/contrib-plfann/issues
  • Issue Tracker of plfann: github.com/SWI-Prolog/contrib-plfann/issues

License

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Author

Steffen Nissen Degski PiotrLi

Contents of pack "plfann"

Pack contains 11 files holding a total of 127K bytes.