[mlpack-git] master: Minor style changes. (cd828ed)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 22:12:04 EST 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/904762495c039e345beba14c1142fd719b3bd50e...f94823c800ad6f7266995c700b1b630d5ffdcf40
>---------------------------------------------------------------
commit cd828ed9c1d4b647272149389467bf040ba4ab04
Author: Ryan Curtin <ryan at ratml.org>
Date: Mon Jan 12 17:16:23 2015 -0500
Minor style changes.
>---------------------------------------------------------------
cd828ed9c1d4b647272149389467bf040ba4ab04
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