[mlpack-svn] r17463 - in mlpack/tags/mlpack-1.0.11: . src/mlpack/methods/det
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Sun Dec 7 14:34:01 EST 2014
Author: rcurtin
Date: Sun Dec 7 14:34:01 2014
New Revision: 17463
Log:
Backport r17377.
Modified:
mlpack/tags/mlpack-1.0.11/ (props changed)
mlpack/tags/mlpack-1.0.11/src/mlpack/methods/det/dtree.cpp
Modified: mlpack/tags/mlpack-1.0.11/src/mlpack/methods/det/dtree.cpp
==============================================================================
--- mlpack/tags/mlpack-1.0.11/src/mlpack/methods/det/dtree.cpp (original)
+++ mlpack/tags/mlpack-1.0.11/src/mlpack/methods/det/dtree.cpp Sun Dec 7 14:34:01 2014
@@ -173,9 +173,9 @@
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 @@
}
}
-// Return string of object.
+// Return string of object.
std::string DTree::ToString() const
{
std::ostringstream convert;
More information about the mlpack-svn
mailing list