SYNOPSIS

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. 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.

Private Attributes

size_t currentItemIndex

size_t currentUserIndex

double kh

double kw

size_t m

size_t n

double u

Detailed Description

template<class MatType>class mlpack::amf::SVDCompleteIncrementalLearning< MatType >

Definition at line 12 of file svd_complete_incremental_learning.hpp.

Constructor & Destructor Documentation

template<class MatType > \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::\fBSVDCompleteIncrementalLearning\fP (doubleu = \fC0.0001\fP, doublekw = \fC0\fP, doublekh = \fC0\fP)\fC [inline]\fP

Definition at line 15 of file svd_complete_incremental_learning.hpp.

Member Function Documentation

template<class MatType > void \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::HUpdate (const MatType &V, const arma::mat &W, arma::mat &H)\fC [inline]\fP

The update rule for the encoding matrix H. The function takes in all the matrices and only changes the value of the H matrix.

Parameters:

V Input matrix to be factorized.

W Basis matrix.

H Encoding matrix to be updated.

Definition at line 91 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.

template<class MatType > void \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::Initialize (const MatType &dataset, const size_trank)\fC [inline]\fP

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.

template<class MatType > void \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::WUpdate (const MatType &V, arma::mat &W, const arma::mat &H)\fC [inline]\fP

The update rule for the basis matrix W. The function takes in all the matrices and only changes the value of the W matrix.

Parameters:

V Input matrix to be factorized.

W Basis matrix to be updated.

H Encoding matrix.

This file is part of MLPACK 1.0.10.

MLPACK is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

MLPACK is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details (LICENSE.txt).

You should have received a copy of the GNU General Public License along with MLPACK. If not, see http://www.gnu.org/licenses/.

Definition at line 55 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.

Member Data Documentation

template<class MatType > size_t \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::currentItemIndex\fC [private]\fP

Definition at line 126 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().

template<class MatType > size_t \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::currentUserIndex\fC [private]\fP

Definition at line 125 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().

template<class MatType > double \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::kh\fC [private]\fP

Definition at line 120 of file svd_complete_incremental_learning.hpp.

Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::HUpdate(), and mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::HUpdate().

template<class MatType > double \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::kw\fC [private]\fP

Definition at line 119 of file svd_complete_incremental_learning.hpp.

Referenced by mlpack::amf::SVDCompleteIncrementalLearning< MatType >::WUpdate(), and mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::WUpdate().

template<class MatType > size_t \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::m\fC [private]\fP

Definition at line 123 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().

template<class MatType > size_t \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::n\fC [private]\fP

Definition at line 122 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().

template<class MatType > double \fBmlpack::amf::SVDCompleteIncrementalLearning\fP< MatType >::u\fC [private]\fP

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 >::WUpdate(), and mlpack::amf::SVDCompleteIncrementalLearning< arma::sp_mat >::WUpdate().

Author

Generated automatically by Doxygen for MLPACK from the source code.