[mlpack-git] master: Updated layer traits (binary classification layer and one hot layer). (ce0d0fa)

gitdub at big.cc.gt.atl.ga.us gitdub at big.cc.gt.atl.ga.us
Sat Aug 29 08:23:42 EDT 2015


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

On branch  : master
Link       : https://github.com/mlpack/mlpack/compare/ea45ace1ff744390a4c35183528eda881eda5c61...fd336238de224ed72fc23b84e1e2f02ae3c879d6

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

commit ce0d0fa72772a4eb90c49af220aaa92c9e4379a0
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date:   Wed Aug 26 18:26:18 2015 +0200

    Updated layer traits (binary classification layer and one hot layer).


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

ce0d0fa72772a4eb90c49af220aaa92c9e4379a0
 src/mlpack/methods/ann/layer/binary_classification_layer.hpp | 1 +
 src/mlpack/methods/ann/layer/one_hot_layer.hpp               | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/mlpack/methods/ann/layer/binary_classification_layer.hpp b/src/mlpack/methods/ann/layer/binary_classification_layer.hpp
index 04537f4..bd44a89 100644
--- a/src/mlpack/methods/ann/layer/binary_classification_layer.hpp
+++ b/src/mlpack/methods/ann/layer/binary_classification_layer.hpp
@@ -69,6 +69,7 @@ class LayerTraits<BinaryClassificationLayer>
   static const bool IsOutputLayer = true;
   static const bool IsBiasLayer = false;
   static const bool IsLSTMLayer = false;
+  static const bool IsConnection = false;
 };
 
 }; // namespace ann
diff --git a/src/mlpack/methods/ann/layer/one_hot_layer.hpp b/src/mlpack/methods/ann/layer/one_hot_layer.hpp
index 93181f8..28c7148 100644
--- a/src/mlpack/methods/ann/layer/one_hot_layer.hpp
+++ b/src/mlpack/methods/ann/layer/one_hot_layer.hpp
@@ -72,6 +72,7 @@ class LayerTraits<OneHotLayer>
   static const bool IsBinary = true;
   static const bool IsOutputLayer = true;
   static const bool IsBiasLayer = false;
+  static const bool IsConnection = false;
 };
 
 }; // namespace ann



More information about the mlpack-git mailing list