[mlpack-git] master: implement serialize (fb7f435)

gitdub at mlpack.org gitdub at mlpack.org
Sat Feb 27 03:23:08 EST 2016


Repository : https://github.com/mlpack/mlpack
On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/a2e57d617e952f1ea2fda8a23e1c6bd2f78beb6d...1bedf15126f6bd0bc93a3233914ac95486a3c0da

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

commit fb7f43512add6d9b2cbb41b777327c38c9fd8b6c
Author: stereomatchingkiss <stereomatchingkiss at gmail.com>
Date:   Sat Feb 27 16:23:08 2016 +0800

    implement serialize


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

fb7f43512add6d9b2cbb41b777327c38c9fd8b6c
 src/mlpack/methods/ann/layer/binary_classification_layer.hpp | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/mlpack/methods/ann/layer/binary_classification_layer.hpp b/src/mlpack/methods/ann/layer/binary_classification_layer.hpp
index ae5fb46..9761458 100644
--- a/src/mlpack/methods/ann/layer/binary_classification_layer.hpp
+++ b/src/mlpack/methods/ann/layer/binary_classification_layer.hpp
@@ -60,6 +60,14 @@ class BinaryClassificationLayer
     for (size_t i = 0; i < output.n_elem; i++)
       output(i) = output(i) > 0.5 ? 1 : 0;
   }
+  
+  /**
+   * Serialize the layer
+   */
+  template<typename Archive>
+  void Serialize(Archive& ar, const unsigned int /* version */)
+  {    				
+  }
 }; // class BinaryClassificationLayer
 
 //! Layer traits for the binary class classification layer.




More information about the mlpack-git mailing list