[mlpack-git] master: No need to specify the size of the delta parameter. (6b6a446)
gitdub at big.cc.gt.atl.ga.us
gitdub at big.cc.gt.atl.ga.us
Thu Jul 9 14:54:45 EDT 2015
Repository : https://github.com/mlpack/mlpack
On branch : master
Link : https://github.com/mlpack/mlpack/compare/baeb3885b27d3b7dd552c638c605e034b1388cad...4a97187bbba7ce8a6191b714949dd818ef0f37d2
>---------------------------------------------------------------
commit 6b6a446f6e75c0bf4f6e1a0154296ae85a592864
Author: Marcus Edel <marcus.edel at fu-berlin.de>
Date: Tue Jul 7 15:38:17 2015 +0200
No need to specify the size of the delta parameter.
>---------------------------------------------------------------
6b6a446f6e75c0bf4f6e1a0154296ae85a592864
src/mlpack/methods/ann/connections/identity_connection.hpp | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/src/mlpack/methods/ann/connections/identity_connection.hpp b/src/mlpack/methods/ann/connections/identity_connection.hpp
index 39e70a0..3801020 100644
--- a/src/mlpack/methods/ann/connections/identity_connection.hpp
+++ b/src/mlpack/methods/ann/connections/identity_connection.hpp
@@ -29,7 +29,7 @@ template<
typename InputLayerType,
typename OutputLayerType,
template<typename, typename> class OptimizerType = mlpack::ann::RMSPROP,
- typename DataType = arma::cube
+ typename DataType = arma::colvec
>
class IdentityConnection
{
@@ -48,9 +48,7 @@ class IdentityConnection
inputLayer(inputLayer),
outputLayer(outputLayer),
optimizer(0),
- weights(0),
- delta(arma::zeros<DataType>(inputLayer.Delta().n_rows,
- inputLayer.Delta().n_cols, inputLayer.Delta().n_slices))
+ weights(0)
{
// Nothing to do here.
}
More information about the mlpack-git
mailing list