23 #ifndef __MLPACK_METHODS_SPARSE_AUTOENCODER_SPARSE_AUTOENCODER_FUNCTION_HPP
24 #define __MLPACK_METHODS_SPARSE_AUTOENCODER_SPARSE_AUTOENCODER_FUNCTION_HPP
53 const double lambda = 0.0001,
54 const double beta = 3,
55 const double rho = 0.01);
70 double Evaluate(
const arma::mat& parameters)
const;
81 void Gradient(
const arma::mat& parameters, arma::mat& gradient)
const;
89 void Sigmoid(
const arma::mat& x, arma::mat& output)
const
91 output = (1.0 / (1 + arma::exp(-x)));
100 this->visibleSize = visible;
112 this->hiddenSize = hidden;