This class computes SVD using complete incremental batch learning, as described in the following paper: More...
Public Member Functions | |
SVDCompleteIncrementalLearning (double u=0.0001, double kw=0, double kh=0) | |
Initialize the SVDCompleteIncrementalLearning class with the given parameters. More... | |
void | HUpdate (const MatType &V, const arma::mat &W, arma::mat &H) |
The update rule for the encoding matrix H. More... | |
void | Initialize (const MatType &, const size_t) |
Initialize parameters before factorization. More... | |
void | WUpdate (const MatType &V, arma::mat &W, const arma::mat &H) |
The update rule for the basis matrix W. More... | |
This class computes SVD using complete incremental batch learning, as described in the following paper:
This class implements 'Algorithm 3' given in the paper. Complete incremental learning is an extreme case of incremental learning, where feature vectors are updated after looking at each single element in the input matrix (V). This approach differs from incomplete incremental learning where feature vectors are updated after seeing columns of elements in the input matrix.
Definition at line 45 of file svd_complete_incremental_learning.hpp.
|
inline |
Initialize the SVDCompleteIncrementalLearning class with the given parameters.
u | Step value used in batch learning. |
kw | Regularization constant for W matrix. |
kh | Regularization constant for H matrix. |
Definition at line 56 of file svd_complete_incremental_learning.hpp.
|
inline |
The update rule for the encoding matrix H.
The function takes in all the matrices and only changes the value of the H matrix.
V | Input matrix to be factorized. |
W | Basis matrix. |
H | Encoding matrix to be updated. |
Definition at line 123 of file svd_complete_incremental_learning.hpp.
|
inline |
Initialize parameters before factorization.
This function must be called before a new factorization. For this initialization, the input parameters are unnecessary; we are only setting the current element index to 0.
* | (dataset) Input matrix to be factorized. |
* | (rank) Rank of factorization. |
Definition at line 72 of file svd_complete_incremental_learning.hpp.
|
inline |
The update rule for the basis matrix W.
The function takes in all the matrices and only changes the value of the W matrix.
V | Input matrix to be factorized. |
W | Basis matrix to be updated. |
H | Encoding matrix. |
Definition at line 87 of file svd_complete_incremental_learning.hpp.