20 #ifndef _MLPACK_METHODS_AMF_SIMPLE_TOLERANCE_TERMINATION_HPP_INCLUDED
21 #define _MLPACK_METHODS_AMF_SIMPLE_TOLERANCE_TERMINATION_HPP_INCLUDED
28 template <
class MatType>
66 for(
size_t i = 0;i < n;i++)
68 for(
size_t j = 0;j < m;j++)
71 if((temp = (*
V)(i,j)) != 0)
73 temp = (temp - WH(i, j));
147 #endif // _MLPACK_METHODS_AMF_SIMPLE_TOLERANCE_TERMINATION_HPP_INCLUDED
Linear algebra utility functions, generally performed on matrices or vectors.
const size_t & MaxIterations()
SimpleToleranceTermination(const double tolerance=1e-5, const size_t maxIterations=10000, const size_t reverseStepTolerance=3)
const size_t & Iteration()
size_t reverseStepTolerance
void Initialize(const MatType &V)
bool IsConverged(arma::mat &W, arma::mat &H)