22 #ifndef VALIDATION_RMSE_TERMINATION_HPP_INCLUDED
23 #define VALIDATION_RMSE_TERMINATION_HPP_INCLUDED
31 template <
class MatType>
42 num_test_points(num_test_points),
59 }
while((t_val = V(t_row, t_col)) == 0);
98 double temp = (t_val - WH(t_row, t_col));
108 if((
rmseOld -
rmse) / rmseOld < tolerance && iteration > 4)
173 #endif // VALIDATION_RMSE_TERMINATION_HPP_INCLUDED
size_t reverseStepTolerance
const size_t & MaxIterations()
ValidationRMSETermination(MatType &V, size_t num_test_points, double tolerance=1e-5, size_t maxIterations=10000, size_t reverseStepTolerance=3)
arma::Mat< double > test_points
void Initialize(const MatType &)
bool IsConverged(arma::mat &W, arma::mat &H)
const size_t & Iteration()