AI-Nerl
view release on metacpan or search on metacpan
lib/AI/Nerl.pm view on Meta::CPAN
package AI::Nerl;
use Moose 'has',inner => { -as => 'moose_inner' };
use PDL;
use AI::Nerl::Network;
# ABSTRACT: Neural networks with backpropagation.
# main_module
our $VERSION = .03;
#A Nerl is a mechanism to build neural networks?
#Give it training,test, and cv data?
#it settles on a learning rate and stuff?
#or maybe it's also a language for guided training?
#or maybe a visual gui thing?
#Not exactly sure. Maybe I'm tinkering with forces better left alone.
#That's a great excuse for failing horribly.
=head1 AI::Nerl - A sort of stackable neural network builder thing.
=head1 SYNOPSIS
Check out L<AI::Nerl::Network>; This module is in an early stage.
=head1 AUTHOR
Zach Morgan
=cut
has scale_input => (
is => 'ro',
isa => 'Num',
required => 0,
default => 0,
);
has l2 => ( #hidden layer.
is => 'ro',
isa => 'Num',
default => 30,
);
has [qw/ train_x
train_y /] => (
is => 'ro',
isa => 'PDL',
required => 0, #training can be done manually.
);
has [qw/ test_x cv_x
test_y cv_y /] => (
is => 'ro',
isa => 'PDL',
required => 0,
);
has network => (
required=>0,
is => 'rw',
isa => 'AI::Nerl::Network',
);
has passes=> (
is => 'rw',
isa => 'Int',
default => 10,
);
has basis => (
is => 'ro',
( run in 0.772 second using v1.01-cache-2.11-cpan-39bf76dae61 )