AI-Categorizer
view release on metacpan or search on metacpan
t/03-weka.t view on Meta::CPAN
#!/usr/bin/perl -w
# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl test.pl'
#########################
use strict;
use Test;
use Module::Build;
my $classpath = Module::Build->current->notes('classpath');
require 't/common.pl';
skip_test("Weka is not installed") unless defined $classpath;
plan tests => 1 + num_standard_tests();
ok(1);
#########################
my @args;
push @args, weka_path => $classpath
unless $classpath eq '-';
perform_standard_tests(
learner_class => 'AI::Categorizer::Learner::Weka',
weka_classifier => 'weka.classifiers.functions.SMO',
# or 'weka.classifiers.SMO' for older Weka versions
@args,
);
( run in 0.957 second using v1.01-cache-2.11-cpan-39bf76dae61 )