12 #ifndef MLPACK_METHODS_PERCEPTRON_INITIALIZATION_METHODS_ZERO_INIT_HPP 13 #define MLPACK_METHODS_PERCEPTRON_INITIALIZATION_METHODS_ZERO_INIT_HPP 18 namespace perceptron {
30 const size_t numFeatures,
31 const size_t numClasses)
33 weights.zeros(numFeatures, numClasses);
34 biases.zeros(numClasses);
Linear algebra utility functions, generally performed on matrices or vectors.
static void Initialize(arma::mat &weights, arma::vec &biases, const size_t numFeatures, const size_t numClasses)
The core includes that mlpack expects; standard C++ includes and Armadillo.
This class is used to initialize the matrix weightVectors to zero.