|
D:\cpanrun\depot\main\contrib-patched\perl\CPAN\src\AI-NNFlex\blib/lib/AI/NNFlex/Dataset.pm |
| my $dataset = AI::NNFlex::Dataset->new([ | |
| [0,1,1,0,1,0],[1,1], | |
| [0,0,1,1,0,0],[1,0]]); |
returns dataset object
Takes as parameter the network object you want to run the data against.
Inspired by the Xerion/UTS approach to managing datasets.
Syntax:
$dataset->run($network);
returns a reference to an hash containing input to actual outputs in array form.
for each entry in the dataset, run through the network then call the networks learning algorithm. Takes as a parameter the network you want to train.
Syntax:
my $error = $dataset->learn($network);
returns network sqrd err.
|
D:\cpanrun\depot\main\contrib-patched\perl\CPAN\src\AI-NNFlex\blib/lib/AI/NNFlex/Dataset.pm |