[mlpack-git] master: Minor style changes. (2f5aa71)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Mon Jan 12 17:16:33 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/291f2da443b65bce66aaf1f0eeac25d2e6bb6568...2f5aa71b3e3b9f14ed825a20a69759471edffb31
>---------------------------------------------------------------
commit 2f5aa71b3e3b9f14ed825a20a69759471edffb31
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Jan 12 17:16:23 2015 -0500
Minor style changes.
>---------------------------------------------------------------
2f5aa71b3e3b9f14ed825a20a69759471edffb31
src/mlpack/methods/cf/cf_impl.hpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/mlpack/methods/cf/cf_impl.hpp b/src/mlpack/methods/cf/cf_impl.hpp
index c8c8e8e..1ebde00 100644
--- a/src/mlpack/methods/cf/cf_impl.hpp
+++ b/src/mlpack/methods/cf/cf_impl.hpp
@@ -193,7 +193,8 @@ void CF<FactorizerType>::GetRecommendations(const size_t numRecs,
// warning.
if (recommendations(values.n_rows - 1, i) == cleanedData.n_rows + 1)
Log::Warn << "Could not provide " << values.n_rows << " recommendations "
- << "for user " << users(i) << " (not enough un-rated items)!" << std::endl;
+ << "for user " << users(i) << " (not enough un-rated items)!"
+ << std::endl;
}
}
@@ -211,8 +212,8 @@ void CF<FactorizerType>::CleanData(const arma::mat& data)
locations(0, i) = ((arma::uword) data(1, i));
values(i) = data(2, i);
if (values(i) == 0)
- Log::Warn << "User rating of 0 ignored for user "
- << locations(1, i) << ", item " << locations(0, i) << std::endl;
+ Log::Warn << "User rating of 0 ignored for user " << locations(1, i)
+ << ", item " << locations(0, i) << "." << std::endl;
}
// Find maximum user and item IDs.
More information about the mlpack-git
mailing list