AI-XGBoost
view release on metacpan or search on metacpan
);
my %fallback_build_requires = (
"Module::Build" => "0.28",
"Test::More" => 0,
"Test::Most" => 0
);
unless ( eval { Module::Build->VERSION(0.4004) } ) {
delete $module_build_args{test_requires};
$module_build_args{build_requires} = \%fallback_build_requires;
}
my $build = Module::Build->new(%module_build_args);
$build->create_build_script;
lib/AI/XGBoost/Booster.pm view on Meta::CPAN
package AI::XGBoost::Booster;
use strict;
use warnings;
use utf8;
our $VERSION = '0.11'; # VERSION
# ABSTRACT: XGBoost main class for training, prediction and evaluation
use Moose;
use AI::XGBoost::CAPI qw(:all);
use namespace::autoclean;
has _handle => ( is => 'rw',
init_arg => undef, );
sub update {
my $self = shift;
lib/AI/XGBoost/Booster.pm view on Meta::CPAN
1;
__END__
=pod
=encoding utf-8
=head1 NAME
AI::XGBoost::Booster - XGBoost main class for training, prediction and evaluation
=head1 VERSION
version 0.11
=head1 SYNOPSIS
use 5.010;
use aliased 'AI::XGBoost::DMatrix';
use AI::XGBoost qw(train);
lib/AI/XGBoost/Booster.pm view on Meta::CPAN
});
# For binay classification predictions are probability confidence scores in [0, 1]
# indicating that the label is positive (1 in the first column of agaricus.txt.test)
my $predictions = $booster->predict(data => $test_data);
say join "\n", @$predictions[0 .. 10];
=head1 DESCRIPTION
Booster objects control training, prediction and evaluation
Work In Progress, the API may change. Comments and suggestions are welcome!
=head1 METHODS
=head2 update
Update one iteration
=head3 Parameters
t/author-critic.t view on Meta::CPAN
exit;
}
}
use strict;
use warnings;
use Test::More;
use English qw(-no_match_vars);
eval "use Test::Perl::Critic";
plan skip_all => 'Test::Perl::Critic required to criticise code' if $@;
Test::Perl::Critic->import( -profile => "perlcritic.rc" ) if -e "perlcritic.rc";
all_critic_ok();
( run in 1.272 second using v1.01-cache-2.11-cpan-98e64b0badf )