[mlpack] 96/324: Very simple change to fix build on i386.

Barak A. Pearlmutter barak+git at cs.nuim.ie
Sun Aug 17 08:21:59 UTC 2014


This is an automated email from the git hooks/post-receive script.

bap pushed a commit to branch svn-trunk
in repository mlpack.

commit 0d0c2f8a2b6a39c801a416e86869b76bd7ae014a
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date:   Tue Jul 1 18:20:34 2014 +0000

    Very simple change to fix build on i386.
    
    
    git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16734 9d5b8971-822b-0410-80eb-d18c1038ef23
---
 src/mlpack/methods/decision_stump/decision_stump_impl.hpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mlpack/methods/decision_stump/decision_stump_impl.hpp b/src/mlpack/methods/decision_stump/decision_stump_impl.hpp
index 19a9a86..b9c58a5 100644
--- a/src/mlpack/methods/decision_stump/decision_stump_impl.hpp
+++ b/src/mlpack/methods/decision_stump/decision_stump_impl.hpp
@@ -154,13 +154,13 @@ double DecisionStump<MatType>::SetupSplitAttribute(
   {
     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 @@ double DecisionStump<MatType>::SetupSplitAttribute(
       // 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 @@ double DecisionStump<MatType>::SetupSplitAttribute(
         end = i;
       }
 
-      entropy += CalculateEntropy<double,long unsigned int>(
+      entropy += CalculateEntropy<double, size_t>(
                  sortedAtt.subvec(begin,end),sortedLabels.subvec(begin,end));
 
       i = end + 1;

-- 
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