mlpack::ann::augmented::scorers Namespace Reference

Functions

template
<
typename
MatType
>
double SequencePrecision (arma::field< MatType > trueOutputs, arma::field< MatType > predOutputs, double tol=1e-4)
 Function that computes the sequences precision (number of correct sequences / number of sequences) of model's answer against ground truth answer. More...

 

Function Documentation

◆ SequencePrecision()

double mlpack::ann::augmented::scorers::SequencePrecision ( arma::field< MatType >  trueOutputs,
arma::field< MatType >  predOutputs,
double  tol = 1e-4 
)

Function that computes the sequences precision (number of correct sequences / number of sequences) of model's answer against ground truth answer.

Parameters
trueOutputsGround truth sequences.
predOutputsSequences predicted by model.
tolMinimum absolute difference value which is considered as a model failure.