AI-LibNeural
view release on metacpan or search on metacpan
636465666768697071727374757677787980818283GNU General Public License, which was designed
for
utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to
read
it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license
for
some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program
with
a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License
for
libraries did not effectively promote software
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
LibNeural.pm view on Meta::CPAN
7374757677787980818283848586878889909192=head1 NAME
AI::LibNeural - Perl extension libneural
=head1 SYNOPSIS
use AI::LibNeural;
my $nn = AI::LibNeural->new( 2, 4, 1 );
# teach it the logical AND
$nn->train( [ 0, 0 ], [ 0.05 ], 0.0000000005, 0.2 );
$nn->train( [ 0, 1 ], [ 0.05 ], 0.0000000005, 0.2 );
$nn->train( [ 1, 0 ], [ 0.05 ], 0.0000000005, 0.2 );
$nn->train( [ 1, 1 ], [ 0.95 ], 0.0000000005, 0.2 );
my $result = $nn->run( [ 1, 1 ] );
# result should be ~ 0.95
$result = $nn->run( [ 0, 1 ] );
# result should be ~ 0.05
( run in 0.244 second using v1.01-cache-2.11-cpan-3cd7ad12f66 )