Algorithm-AM
view release on metacpan or search on metacpan
t/06-Batch.t view on Meta::CPAN
my @results = $batch->classify_all($test);
is(scalar @results, 4, '2 items are analyzed twice') or
note scalar @results;
isa_ok($results[0], 'Algorithm::AM::Result');
isa_ok($results[1], 'Algorithm::AM::Result');
isa_ok($results[2], 'Algorithm::AM::Result');
isa_ok($results[3], 'Algorithm::AM::Result');
# test was in train, so not excluding given would mean that
# exclude_given was set to false successfully
# TODO: this seems fragile, as it relies on AM having
# exclude_given set to true by default.
ok(!$results[0]->given_excluded,
'exclude_given passed on to classifier');
ok(!$results[0]->exclude_nulls,
'exclude_nulls passed on to classifier');
is($results[0]->count_method, 'linear',
'linear passed on to classifier');
};
return;
}
( run in 2.482 seconds using v1.01-cache-2.11-cpan-b16cb0d3907 )