Allow apply the function sigmoid to every element of the matrix.
$m = $m->sigmoid(); $m = sigmoid($m);
Allows apply the function relu to every element of the matrix.
$m = $m->relu(); $m = relu($m);
Allows apply the function d_relu to every element of the matrix.
$m = $m->d_relu(); $m = d_relu($m);
Allows apply the function lrelu to every element of the matrix.
$th::Lapack::Matrixref(1)m = lrelu($m, 0.0001); $m = m->lrelu(0.1);
Allows apply the function d_lrelu to every element of the matrix.
$m = softmax($m); $m = $m->softmax();
$m = d_softmax($m); $m = $m->d_softmax();
$m = tanh($m); $m = $m->tanh();
$m = d_tanh($m); $m = $m->d_tanh();
Allow apply the derivate of function sigmoid to every element of the matrix.
$m = $m->d_sigmoid(); $m = d_sigmoid($m);
put examples
To install AI::ML, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AI::ML
CPAN shell
perl -MCPAN -e shell install AI::ML
For more information on module installation, please visit the detailed CPAN module installation guide.