mlpack
|
Go to the source code of this file.
Namespaces | |
mlpack | |
Linear algebra utility functions, generally performed on matrices or vectors. | |
mlpack::ann | |
Artificial Neural Network. | |
Functions | |
template<typename MatType > | |
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. More... | |
Definition of scoring functions for sequence prediction problems.
mlpack is free software; you may redistribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.
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. |