[mlpack-git] master, mlpack-1.0.x: Remove incorrect comments. (cd286ca)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Mar 5 21:45:07 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 cd286caca161eeabd8fdf856e37e44f48fcbf162
Author: Ryan Curtin <ryan at ratml.org>
Date: Sun Mar 9 17:21:52 2014 +0000
Remove incorrect comments.
>---------------------------------------------------------------
cd286caca161eeabd8fdf856e37e44f48fcbf162
src/mlpack/methods/nmf/mult_div_update_rules.hpp | 4 ----
1 file changed, 4 deletions(-)
diff --git a/src/mlpack/methods/nmf/mult_div_update_rules.hpp b/src/mlpack/methods/nmf/mult_div_update_rules.hpp
index 6f4075c..ca8eb9f 100644
--- a/src/mlpack/methods/nmf/mult_div_update_rules.hpp
+++ b/src/mlpack/methods/nmf/mult_div_update_rules.hpp
@@ -69,8 +69,6 @@ class WMultiplicativeDivergenceRule
t2(k) = 0.0;
}
- // Only update if the sum is not going to be 0, so as to prevent a
- // divide by zero. If sum(H.row(j)) is 0, then t2 should be 0 too.
W(i, j) *= sum(t2) / sum(H.row(j));
}
}
@@ -128,8 +126,6 @@ class HMultiplicativeDivergenceRule
t2(k) = 0.0;
}
- // Only update if the sum is not going to be 0, so as to prevent a
- // divide by zero. If sum(W.col(j)) is 0, then t2 should be 0 too.
H(i, j) *= sum(t2) / sum(W.col(i));
}
}
More information about the mlpack-git
mailing list