[mlpack-git] master: Shorten names to reduce file size. (65bcfb2)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Wed Dec 23 11:44:37 EST 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/de9cc4b05069e1fa4793d9355f2f595af5ff45d2...6070527af14296cd99739de6c62666cc5d2a2125

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

commit 65bcfb20d58c2eab4bc32d02fd9e5e5f4fcb9c17
Author: Ryan Curtin <ryan at ratml.org>
Date:   Sat Oct 17 11:41:49 2015 -0400

    Shorten names to reduce file size.


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

65bcfb20d58c2eab4bc32d02fd9e5e5f4fcb9c17
 .../methods/hoeffding_trees/hoeffding_numeric_split_impl.hpp      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/mlpack/methods/hoeffding_trees/hoeffding_numeric_split_impl.hpp b/src/mlpack/methods/hoeffding_trees/hoeffding_numeric_split_impl.hpp
index cfe71b5..5f573db 100644
--- a/src/mlpack/methods/hoeffding_trees/hoeffding_numeric_split_impl.hpp
+++ b/src/mlpack/methods/hoeffding_trees/hoeffding_numeric_split_impl.hpp
@@ -203,12 +203,12 @@ void HoeffdingNumericSplit<FitnessFunction, ObservationType>::Serialize(
     for (size_t i = 0; i < samplesSeen; ++i)
     {
       std::ostringstream oss;
-      oss << "observation" << i;
+      oss << "obs" << i;
       ar & CreateNVP(observations[i], oss.str());
 
-      oss.clear();
-      oss << "label" << i;
-      ar & CreateNVP(labels[i], oss.str());
+      std::ostringstream oss2;
+      oss2 << "label" << i;
+      ar & CreateNVP(labels[i], oss2.str());
     }
 
     if (Archive::is_loading::value)



More information about the mlpack-git mailing list