ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-ai
perl-ai
AI::NeuralNet::BackProp
by Jim zaba other posts by this author
Mar 18 2005 3:29PM messages near this date
AI::NNFlex x square | Re: Exposing Perl programmers to logic programming
Hello, 

I did not get what I messed up? 

Thanks, 

-Jim 

=begin 

=cut 

        use AI::NeuralNet::BackProp; 
        my $net = new AI::NeuralNet::BackProp(3,1,1)­; 
        #$net-> debug(4); 

        my @map = ([0], 
                   [1], 
                   [2], 
                   [3], 
                  ); 

        my @res = ([0], 
                   [1], 
                   [4], 
                   [9], 
                  ); 

        $net-> learn(\@map,\@res); 
        print $net-> learn(\@map,\@res); 

        my @test = (2); 

        my $result = $net-> run(\@test); 

        sleep (1); 



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Attachments:
unknown1


Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved