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... | |
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.
trueOutputs | Ground truth sequences. |
predOutputs | Sequences predicted by model. |
tol | Minimum absolute difference value which is considered as a model failure. |