12 #ifndef MLPACK_METHODS_PERCEPTRON_INITIALIZATION_METHODS_ZERO_INIT_HPP 13 #define MLPACK_METHODS_PERCEPTRON_INITIALIZATION_METHODS_ZERO_INIT_HPP 18 namespace perceptron {
28 inline static void Initialize(arma::mat& weights,
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.
Definition: cv.hpp:1
The core includes that mlpack expects; standard C++ includes and Armadillo.
This class is used to initialize the matrix weightVectors to zero.
Definition: zero_init.hpp:23