mlpack
1.0.12
|
Public Member Functions | |
SVDCompleteIncrementalLearning (double u=0.0001, double kw=0, double kh=0) | |
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 &dataset, const size_t rank) |
void | WUpdate (const MatType &V, arma::mat &W, const arma::mat &H) |
The update rule for the basis matrix W. More... | |
Private Attributes | |
size_t | currentItemIndex |
size_t | currentUserIndex |
double | kh |
double | kw |
size_t | m |
size_t | n |
double | u |
Definition at line 12 of file svd_complete_incremental_learning.hpp.
|
inline |
Definition at line 15 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 83 of file svd_complete_incremental_learning.hpp.
References mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentItemIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentUserIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::kh, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::m, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::n, and mlpack::amf::SVDCompleteIncrementalLearning< MatType >::u.
|
inline |
Definition at line 21 of file svd_complete_incremental_learning.hpp.
References mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentItemIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentUserIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::m, and mlpack::amf::SVDCompleteIncrementalLearning< MatType >::n.
|
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. |
This file is part of mlpack 1.0.12.
mlpack is free software; you may redstribute it and/or modify it under the terms of the 3-clause BSD license. You should have received a copy of the 3-clause BSD license along with mlpack. If not, see http://www.opensource.org/licenses/BSD-3-Clause for more information.
Definition at line 47 of file svd_complete_incremental_learning.hpp.
References mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentItemIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::currentUserIndex, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::kw, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::m, mlpack::amf::SVDCompleteIncrementalLearning< MatType >::n, and mlpack::amf::SVDCompleteIncrementalLearning< MatType >::u.
|
private |
Definition at line 118 of file svd_complete_incremental_learning.hpp.
Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::HUpdate(), mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::HUpdate(), mlpack::amf::SVDCompleteIncrementalLearning< MatType >::Initialize(), mlpack::amf::SVDCompleteIncrementalLearning< MatType >::WUpdate(), and mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::WUpdate().
|
private |
Definition at line 117 of file svd_complete_incremental_learning.hpp.
Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::HUpdate(), mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::HUpdate(), mlpack::amf::SVDCompleteIncrementalLearning< MatType >::Initialize(), mlpack::amf::SVDCompleteIncrementalLearning< MatType >::WUpdate(), and mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::WUpdate().
|
private |
Definition at line 112 of file svd_complete_incremental_learning.hpp.
Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::HUpdate(), and mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::HUpdate().
|
private |
Definition at line 111 of file svd_complete_incremental_learning.hpp.
Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::WUpdate(), and mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::WUpdate().
|
private |
Definition at line 115 of file svd_complete_incremental_learning.hpp.
Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::HUpdate(), mlpack::amf::SVDCompleteIncrementalLearning< MatType >::Initialize(), mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::Initialize(), and mlpack::amf::SVDCompleteIncrementalLearning< MatType >::WUpdate().
|
private |
Definition at line 114 of file svd_complete_incremental_learning.hpp.
Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::HUpdate(), mlpack::amf::SVDCompleteIncrementalLearning< MatType >::Initialize(), mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::Initialize(), and mlpack::amf::SVDCompleteIncrementalLearning< MatType >::WUpdate().
|
private |
Definition at line 110 of file svd_complete_incremental_learning.hpp.
Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::HUpdate(), mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::HUpdate(), mlpack::amf::SVDCompleteIncrementalLearning< MatType >::WUpdate(), and mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::WUpdate().