14 #ifndef MLPACK_METHODS_BIAS_SVD_BIAS_SVD_HPP 15 #define MLPACK_METHODS_BIAS_SVD_BIAS_SVD_HPP 18 #include <ensmallen.hpp> 56 template<
typename OptimizerType = ens::StandardSGD>
68 BiasSVD(
const size_t iterations = 10,
69 const double alpha = 0.02,
70 const double lambda = 0.05);
82 void Apply(
const arma::mat& data,
102 #include "bias_svd_impl.hpp" BiasSVD(const size_t iterations=10, const double alpha=0.02, const double lambda=0.05)
Constructor of Bias SVD.
Bias SVD is an improvement on Regularized SVD which is a matrix factorization techniques.
void Apply(const arma::mat &data, const size_t rank, arma::mat &u, arma::mat &v, arma::vec &p, arma::vec &q)
Trains the model and obtains user/item matrices and user/item bias.
Linear algebra utility functions, generally performed on matrices or vectors.
The core includes that mlpack expects; standard C++ includes and Armadillo.