AI-MXNet

 view release on metacpan or  search on metacpan

lib/AI/MXNet.pm  view on Meta::CPAN

    my $res = $mod->score($val_dataiter, mx->metric->create('acc'));
    ok($res->{accuracy} > 0.8);

=head1 DESCRIPTION

    Perl interface to MXNet machine learning library.

=head1 BUGS AND INCOMPATIBILITIES

    Parity with Python inteface is mostly achieved, few deprecated
    and not often used features left unported for now.

=head1 SEE ALSO

    http://mxnet.io/
    https://github.com/dmlc/mxnet/tree/master/perl-package
    Function::Parameters, Mouse

=head1 AUTHOR

    Sergey Kolychev, <sergeykolychev.github@gmail.com>

lib/AI/MXNet/NDArray.pm  view on Meta::CPAN

    return $self->copyto($context);
}

=head2 onehot_encode

    One hot encoding indices into matrix out.

    Parameters
    ----------
    indices: NDArray
        An NDArray containing indices of the categorical features.

    out: NDArray
        The result of the encoding.

    Returns
    -------
        $out: NDArray
=cut

method onehot_encode(AI::MXNet::NDArray $indices, AI::MXNet::NDArray $out)

lib/AI/MXNet/Profiler.pm  view on Meta::CPAN

package AI::MXNet::Profiler;
use strict;
use warnings;
use AI::MXNet::Base;
use AI::MXNet::Function::Parameters;

=head1 NAME

    AI::MXNet::Profiler - Optional profiler feature.
=cut

=head1 DESCRIPTION

    Optional profirer.
=cut

=head2 profiler_set_config

    Set up the configure of profiler.



( run in 0.369 second using v1.01-cache-2.11-cpan-4d50c553e7e )