[mlpack-git] master, mlpack-1.0.x: Update documentation due to API change. (f200cd5)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:46:02 EST 2015


Repository : https://github.com/mlpack/mlpack

On branches: master,mlpack-1.0.x
Link       : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40

>---------------------------------------------------------------

commit f200cd5a3f58c008b5920e2b775451f23911ec2c
Author: Ryan Curtin <ryan at ratml.org>
Date:   Mon Apr 7 17:59:18 2014 +0000

    Update documentation due to API change.


>---------------------------------------------------------------

f200cd5a3f58c008b5920e2b775451f23911ec2c
 src/mlpack/methods/cf/cf.hpp | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/mlpack/methods/cf/cf.hpp b/src/mlpack/methods/cf/cf.hpp
index 0283091..4eda91f 100644
--- a/src/mlpack/methods/cf/cf.hpp
+++ b/src/mlpack/methods/cf/cf.hpp
@@ -34,15 +34,14 @@ namespace cf /** Collaborative filtering. */{
  * extern arma::mat data; // (user, item, rating) table
  * extern arma::Col<size_t> users; // users seeking recommendations
  * arma::Mat<size_t> recommendations; // Recommendations
- * size_t numRecommendations = 10;
  *
  * CF<> cf(data); // Default options.
  *
  * // Generate 10 recommendations for all users.
- * cf.GetRecommendations(recommendations, numRecommendations);
+ * cf.GetRecommendations(10, recommendations);
  *
  * // Generate 10 recommendations for specified users.
- * cf.GetRecommendations(recommendations, numRecommendations, users);
+ * cf.GetRecommendations(10, recommendations, users);
  *
  * @endcode
  *



More information about the mlpack-git mailing list