[mlpack-git] master: const correctness (ceeb19f)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Mon Nov 16 10:08:40 EST 2015


Repository : https://github.com/mlpack/mlpack

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/9d882d9461a656dfec814b0ec7ae32bd4aebf8b2...7983dc9bfef684061f040667a69de75887cd2330

>---------------------------------------------------------------

commit ceeb19f1efff0c1dd056d756b51e37ee94912e34
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Wed Nov 11 16:31:29 2015 +0800

    const correctness


>---------------------------------------------------------------

ceeb19f1efff0c1dd056d756b51e37ee94912e34
 src/mlpack/methods/softmax_regression/softmax_regression_main.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mlpack/methods/softmax_regression/softmax_regression_main.cpp b/src/mlpack/methods/softmax_regression/softmax_regression_main.cpp
index 8e870f8..f4e7885 100644
--- a/src/mlpack/methods/softmax_regression/softmax_regression_main.cpp
+++ b/src/mlpack/methods/softmax_regression/softmax_regression_main.cpp
@@ -45,7 +45,7 @@ template<typename Model>
 void testPredictAcc(const std::string &testFile,
                     const std::string &testLabels,
                     size_t numClasses,
-                    Model &model);
+                    const Model &model);
 
 template<typename Model>
 std::unique_ptr<Model> trainSoftmax(const std::string &trainingFile,
@@ -127,7 +127,7 @@ template<typename Model>
 void testPredictAcc(const std::string &testFile,
                     const std::string &testLabelsFile,
                     size_t numClasses,
-                    Model &model)
+                    const Model &model)
 {
     using namespace mlpack;
     if(testFile.empty() && testLabelsFile.empty())



More information about the mlpack-git mailing list