This class acts as a wrapper for basic termination policies to be used by SVDIncompleteIncrementalLearning.
More...
#include <incomplete_incremental_termination.hpp>
|
| IncompleteIncrementalTermination (TerminationPolicy tPolicy=TerminationPolicy()) |
| Empty constructor. 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 double & | Index () const |
| Get current value of residue.
|
|
const size_t & | Iteration () const |
| Get current iteration count.
|
|
size_t | MaxIterations () const |
| Access maximum number of iterations.
|
|
size_t & | MaxIterations () |
| Modify maximum number of iterations.
|
|
const TerminationPolicy & | TPolicy () const |
| Access the wrapped termination policy.
|
|
TerminationPolicy & | TPolicy () |
| Modify the wrapped termination policy.
|
|
template<class TerminationPolicy>
class mlpack::amf::IncompleteIncrementalTermination< TerminationPolicy >
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.
- See also
- AMF, SVDIncompleteIncrementalLearning
◆ IncompleteIncrementalTermination()
template<class TerminationPolicy >
Empty constructor.
- Parameters
-
tPolicy | object of wrapped class. |
◆ Initialize()
template<class TerminationPolicy >
template<class MatType >
Initializes the termination policy before stating the factorization.
- Parameters
-
V | Input matrix to be factorized. |
◆ IsConverged()
template<class TerminationPolicy >
Check if termination criterio is met.
- Parameters
-
W | Basis matrix of output. |
H | Encoding matrix of output. |
The documentation for this class was generated from the following file: