mlpack
Namespaces | Functions
score.hpp File Reference
#include <mlpack/prereqs.hpp>
#include "score_impl.hpp"
Include dependency graph for score.hpp:
This graph shows which files directly or indirectly include this file:

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...
 

Detailed Description

Author
Konstantin Sidorov

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.

Function Documentation

◆ SequencePrecision()

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.

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