[mlpack-git] master: remove useless data and function (0fe4172)

gitdub at mlpack.org gitdub at mlpack.org
Tue Apr 12 17:22:40 EDT 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/ebf77f8b13323a87c433b6f639deb2369188b00c...b08ae02b90e18f97366b236e7a4d8725cd6e9050

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

commit 0fe417273cbd509ffc0a2ddded78b880bfd130bb
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Wed Apr 13 05:22:40 2016 +0800

    remove useless data and function


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

0fe417273cbd509ffc0a2ddded78b880bfd130bb
 src/mlpack/core/util/split_data.hpp | 13 -------------
 1 file changed, 13 deletions(-)

diff --git a/src/mlpack/core/util/split_data.hpp b/src/mlpack/core/util/split_data.hpp
index 0b1f669..dd4b0df 100644
--- a/src/mlpack/core/util/split_data.hpp
+++ b/src/mlpack/core/util/split_data.hpp
@@ -122,18 +122,6 @@ public:
     return seed;
   }   
 
-  size_t Slice() const
-  {
-    return slice;
-  }
-  void Slice(size_t value)
-  {
-    if(value < 1){
-      throw std::out_of_range("The range of slice should not less than 1");
-    }
-    slice = value;
-  }
-
   void TestRatio(double value)
   {
     testRatio = value;
@@ -145,7 +133,6 @@ public:
 
 private:  
   arma::arma_rng::seed_type seed;  
-  size_t slice;
   double testRatio;
 };
 




More information about the mlpack-git mailing list