[mlpack-svn] r16734 - mlpack/trunk/src/mlpack/methods/decision_stump
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Tue Jul 1 14:20:34 EDT 2014
Author: rcurtin
Date: Tue Jul 1 14:20:34 2014
New Revision: 16734
Log:
Very simple change to fix build on i386.
Modified:
mlpack/trunk/src/mlpack/methods/decision_stump/decision_stump_impl.hpp
Modified: mlpack/trunk/src/mlpack/methods/decision_stump/decision_stump_impl.hpp
==============================================================================
--- mlpack/trunk/src/mlpack/methods/decision_stump/decision_stump_impl.hpp (original)
+++ mlpack/trunk/src/mlpack/methods/decision_stump/decision_stump_impl.hpp Tue Jul 1 14:20:34 2014
@@ -154,13 +154,13 @@
{
count++;
if (i == sortedLabels.n_elem - 1)
- {
+ {
// if we're at the end, then don't worry about the bucket size
// just take this as the last bin.
begin = i - count + 1;
end = i;
- entropy += CalculateEntropy<double,long unsigned int>(
+ entropy += CalculateEntropy<double, size_t>(
sortedAtt.subvec(begin,end),sortedLabels.subvec(begin,end));
i++;
}
@@ -169,7 +169,7 @@
// if we're not at the last element of sortedLabels, then check whether
// count is less than the current bucket size.
if (count < bucketSize)
- {
+ {
// if it is, then take the minimum bucket size anyways
begin = i - count + 1;
end = begin + bucketSize - 1;
@@ -184,7 +184,7 @@
end = i;
}
- entropy += CalculateEntropy<double,long unsigned int>(
+ entropy += CalculateEntropy<double, size_t>(
sortedAtt.subvec(begin,end),sortedLabels.subvec(begin,end));
i = end + 1;
More information about the mlpack-svn
mailing list