14 #ifndef VALIDATION_RMSE_TERMINATION_HPP_INCLUDED
15 #define VALIDATION_RMSE_TERMINATION_HPP_INCLUDED
23 template <
class MatType>
34 num_test_points(num_test_points),
51 }
while((t_val = V(t_row, t_col)) == 0);
90 double temp = (t_val - WH(t_row, t_col));
100 if((
rmseOld -
rmse) / rmseOld < tolerance && iteration > 4)
165 #endif // VALIDATION_RMSE_TERMINATION_HPP_INCLUDED
size_t reverseStepTolerance
Linear algebra utility functions, generally performed on matrices or vectors.
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()