SYNOPSIS

Public Member Functions

RegularizedSVD (const arma::mat &data, arma::mat &u, arma::mat &v, const size_t rank, const size_t iterations=10, const double alpha=0.01, const double lambda=0.02)

Constructor for Regularized SVD.

Private Attributes

double alpha

Learning rate for the SGD optimizer. const arma::mat & data

Rating data. size_t iterations

Number of optimization iterations. double lambda

Regularization parameter for the optimization. mlpack::optimization::SGD

< RegularizedSVDFunction > optimizer"

Default SGD optimizer for the class. size_t rank

Rank used for matrix factorization. RegularizedSVDFunction rSVDFunc

Function that will be held by the optimizer.

Detailed Description

template<template< typename > class OptimizerType = mlpack::optimization::SGD>class mlpack::svd::RegularizedSVD< OptimizerType >

Definition at line 37 of file regularized_svd.hpp.

Constructor & Destructor Documentation

template<template< typename > class OptimizerType = mlpack::optimization::SGD> \fBmlpack::svd::RegularizedSVD\fP< OptimizerType >::\fBRegularizedSVD\fP (const arma::mat &data, arma::mat &u, arma::mat &v, const size_trank, const size_titerations = \fC10\fP, const doublealpha = \fC0.01\fP, const doublelambda = \fC0.02\fP)

Constructor for Regularized SVD. Obtains the user and item matrices after training on the passed data. The constructor initiates an object of class RegularizedSVDFunction for optimization. It uses the SGD optimizer by default. The optimizer uses a template specialization of Optimize().

Parameters:

data Dataset for which SVD is calculated.

u User matrix in the matrix decomposition.

v Item matrix in the matrix decomposition.

rank Rank used for matrix factorization.

iterations Number of optimization iterations.

lambda Regularization parameter for the optimization.

Member Data Documentation

template<template< typename > class OptimizerType = mlpack::optimization::SGD> double \fBmlpack::svd::RegularizedSVD\fP< OptimizerType >::alpha\fC [private]\fP

Learning rate for the SGD optimizer.

Definition at line 70 of file regularized_svd.hpp.

template<template< typename > class OptimizerType = mlpack::optimization::SGD> const arma::mat& \fBmlpack::svd::RegularizedSVD\fP< OptimizerType >::data\fC [private]\fP

Rating data.

Definition at line 64 of file regularized_svd.hpp.

template<template< typename > class OptimizerType = mlpack::optimization::SGD> size_t \fBmlpack::svd::RegularizedSVD\fP< OptimizerType >::iterations\fC [private]\fP

Number of optimization iterations.

Definition at line 68 of file regularized_svd.hpp.

template<template< typename > class OptimizerType = mlpack::optimization::SGD> double \fBmlpack::svd::RegularizedSVD\fP< OptimizerType >::lambda\fC [private]\fP

Regularization parameter for the optimization.

Definition at line 72 of file regularized_svd.hpp.

template<template< typename > class OptimizerType = mlpack::optimization::SGD> \fBmlpack::optimization::SGD\fP<\fBRegularizedSVDFunction\fP> \fBmlpack::svd::RegularizedSVD\fP< OptimizerType >::optimizer\fC [private]\fP

Default SGD optimizer for the class.

Definition at line 76 of file regularized_svd.hpp.

template<template< typename > class OptimizerType = mlpack::optimization::SGD> size_t \fBmlpack::svd::RegularizedSVD\fP< OptimizerType >::rank\fC [private]\fP

Rank used for matrix factorization.

Definition at line 66 of file regularized_svd.hpp.

template<template< typename > class OptimizerType = mlpack::optimization::SGD> \fBRegularizedSVDFunction\fP \fBmlpack::svd::RegularizedSVD\fP< OptimizerType >::rSVDFunc\fC [private]\fP

Function that will be held by the optimizer.

Definition at line 74 of file regularized_svd.hpp.

Author

Generated automatically by Doxygen for MLPACK from the source code.