[mlpack-git] master: Remove unused rating matrix. (6a9ab72)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Mon Dec 21 15:32:24 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/51205e0ad285b2cf421546d8876fc63e994f2d73...e01baa6582c6ce3cfda243157159de9c30e2cbd8
>---------------------------------------------------------------
commit 6a9ab72f826284722919c65cd4b592ac1b4f8fe8
Author: ryan <ryan at ratml.org>
Date: Mon Dec 21 15:31:43 2015 -0500
Remove unused rating matrix.
>---------------------------------------------------------------
6a9ab72f826284722919c65cd4b592ac1b4f8fe8
src/mlpack/methods/cf/cf.hpp | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/mlpack/methods/cf/cf.hpp b/src/mlpack/methods/cf/cf.hpp
index 4a137d9..93e40af 100644
--- a/src/mlpack/methods/cf/cf.hpp
+++ b/src/mlpack/methods/cf/cf.hpp
@@ -191,8 +191,6 @@ class CF
const arma::mat& W() const { return w; }
//! Get the Item Matrix.
const arma::mat& H() const { return h; }
- //! Get the Rating Matrix.
- const arma::mat& Rating() const { return rating; }
//! Get the cleaned data matrix.
const arma::sp_mat& CleanedData() const { return cleanedData; }
@@ -242,6 +240,12 @@ class CF
void Predict(const arma::Mat<size_t>& combinations,
arma::vec& predictions) const;
+ /**
+ * Serialize the CF model to the given archive.
+ */
+ template<typename Archive>
+ void Serialize(Archive& ar, const unsigned int /* version */);
+
private:
//! Number of users for similarity.
size_t numUsersForSimilarity;
@@ -251,8 +255,6 @@ class CF
arma::mat w;
//! Item matrix.
arma::mat h;
- //! Rating matrix.
- arma::mat rating;
//! Cleaned data matrix.
arma::sp_mat cleanedData;
More information about the mlpack-git
mailing list