AI-DecisionTree
view release on metacpan or search on metacpan
t/01-simple.t view on Meta::CPAN
outlook => 'rain',
temperature => 'mild',
humidity => 'high',
wind => 'strong',
}
);
ok $result, 'no';
ok $confidence, 1;
{
# Test attribute callbacks
my %attributes = (
outlook => 'rain',
temperature => 'mild',
humidity => 'high',
wind => 'strong',
);
my $result = $dtree->get_result( callback => sub { $attributes{$_[0]} } );
ok $result, 'no';
}
( run in 0.217 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )