[mlpack] 234/324: Fix warnings.
Barak A. Pearlmutter
barak+git at cs.nuim.ie
Sun Aug 17 08:22:14 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 d29e7c4e735322b89d9c4972597f6f74f4d865ac
Author: rcurtin <rcurtin at 9d5b8971-822b-0410-80eb-d18c1038ef23>
Date: Mon Jul 28 17:43:20 2014 +0000
Fix warnings.
git-svn-id: http://svn.cc.gatech.edu/fastlab/mlpack/trunk@16901 9d5b8971-822b-0410-80eb-d18c1038ef23
---
src/mlpack/methods/perceptron/perceptron_impl.hpp | 4 ++--
src/mlpack/tests/emst_test.cpp | 3 +--
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/mlpack/methods/perceptron/perceptron_impl.hpp b/src/mlpack/methods/perceptron/perceptron_impl.hpp
index 8b3bd35..bfa1866 100644
--- a/src/mlpack/methods/perceptron/perceptron_impl.hpp
+++ b/src/mlpack/methods/perceptron/perceptron_impl.hpp
@@ -69,7 +69,7 @@ void Perceptron<LearnPolicy, WeightInitializationPolicy, MatType>::Classify(
arma::mat tempLabelMat;
arma::uword maxIndexRow, maxIndexCol;
- for (int i = 0; i < test.n_cols; i++)
+ for (size_t i = 0; i < test.n_cols; i++)
{
tempLabelMat = weightVectors.submat(0, 1, weightVectors.n_rows - 1,
weightVectors.n_cols - 1) *
@@ -123,7 +123,7 @@ template<
void Perceptron<LearnPolicy, WeightInitializationPolicy, MatType>::Train(
const arma::rowvec& D)
{
- int j, i = 0;
+ size_t j, i = 0;
bool converged = false;
size_t tempLabel;
arma::uword maxIndexRow, maxIndexCol;
diff --git a/src/mlpack/tests/emst_test.cpp b/src/mlpack/tests/emst_test.cpp
index a6f3742..d2b1750 100644
--- a/src/mlpack/tests/emst_test.cpp
+++ b/src/mlpack/tests/emst_test.cpp
@@ -259,8 +259,7 @@ BOOST_AUTO_TEST_CASE(BallTreeTest)
// naive mode.
DualTreeBoruvka<> bst(inputData, true);
// Ball tree.
- DualTreeBoruvka<EuclideanDistance,
- BinarySpaceTree<BallBound<>, DTBStat> > ballt(inputData);
+ DualTreeBoruvka<EuclideanDistance, TreeType> ballt(inputData);
arma::mat bstResults;
arma::mat ballResults;
--
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