[mlpack] 16/44: Backport r17377.
Barak A. Pearlmutter
barak+git at pearlmutter.net
Mon Feb 15 19:35:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
bap pushed a commit to tag mlpack-1.0.11
in repository mlpack.
commit 975f67ed0faef3b226f8c1c6d36b0cf3e3a8b250
Author: Ryan Curtin <ryan at ratml.org>
Date: Sun Dec 7 19:34:01 2014 +0000
Backport r17377.
---
src/mlpack/methods/det/dtree.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/mlpack/methods/det/dtree.cpp b/src/mlpack/methods/det/dtree.cpp
index a19a5a3..d118a8f 100644
--- a/src/mlpack/methods/det/dtree.cpp
+++ b/src/mlpack/methods/det/dtree.cpp
@@ -173,9 +173,9 @@ bool DTree::FindSplit(const arma::mat& data,
bool dimSplitFound = false;
// Take an error estimate for this dimension.
double minDimError = std::pow(points, 2.0) / (max - min);
- double dimLeftError;
- double dimRightError;
- double dimSplitValue;
+ double dimLeftError = 0.0; // For -Wuninitialized. These variables will
+ double dimRightError = 0.0; // always be set to something else before use.
+ double dimSplitValue = 0.0;
// Find the log volume of all the other dimensions.
double volumeWithoutDim = logVolume - std::log(max - min);
@@ -676,7 +676,7 @@ void DTree::ComputeVariableImportance(arma::vec& importances) const
}
}
-// Return string of object.
+// Return string of object.
std::string DTree::ToString() const
{
std::ostringstream convert;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/mlpack.git
More information about the debian-science-commits
mailing list