This class acts as a wrapper for basic termination policies to be used by SVDIncompleteIncrementalLearning. More...
Public Member Functions | |
IncompleteIncrementalTermination (TerminationPolicy tPolicy=TerminationPolicy()) | |
Empty constructor. More... | |
const double & | Index () const |
Get current value of residue. More... | |
template < class MatType > | |
void | Initialize (const MatType &V) |
Initializes the termination policy before stating the factorization. More... | |
bool | IsConverged (arma::mat &W, arma::mat &H) |
Check if termination criterio is met. More... | |
const size_t & | Iteration () const |
Get current iteration count. More... | |
size_t | MaxIterations () const |
Access maximum number of iterations. More... | |
size_t & | MaxIterations () |
Modify maximum number of iterations. More... | |
const TerminationPolicy & | TPolicy () const |
Access the wrapped termination policy. More... | |
TerminationPolicy & | TPolicy () |
Modify the wrapped termination policy. More... | |
This class acts as a wrapper for basic termination policies to be used by SVDIncompleteIncrementalLearning.
This class calls the wrapped class functions after every n calls to main class functions where n is the number of rows.
Definition at line 28 of file incomplete_incremental_termination.hpp.
|
inline |
Empty constructor.
tPolicy | object of wrapped class. |
Definition at line 36 of file incomplete_incremental_termination.hpp.
|
inline |
Get current value of residue.
Definition at line 76 of file incomplete_incremental_termination.hpp.
|
inline |
Initializes the termination policy before stating the factorization.
V | Input matrix to be factorized. |
Definition at line 47 of file incomplete_incremental_termination.hpp.
|
inline |
Check if termination criterio is met.
W | Basis matrix of output. |
H | Encoding matrix of output. |
Definition at line 62 of file incomplete_incremental_termination.hpp.
|
inline |
Get current iteration count.
Definition at line 79 of file incomplete_incremental_termination.hpp.
|
inline |
Access maximum number of iterations.
Definition at line 82 of file incomplete_incremental_termination.hpp.
|
inline |
Modify maximum number of iterations.
Definition at line 84 of file incomplete_incremental_termination.hpp.
|
inline |
Access the wrapped termination policy.
Definition at line 87 of file incomplete_incremental_termination.hpp.
|
inline |
Modify the wrapped termination policy.
Definition at line 89 of file incomplete_incremental_termination.hpp.