14 #ifndef __MLPACK_METHODS_PERCEPTRON_INITIALIZATION_METHODS_ZERO_INIT_HPP 15 #define __MLPACK_METHODS_PERCEPTRON_INITIALIZATION_METHODS_ZERO_INIT_HPP 20 namespace perceptron {
32 const size_t numFeatures,
33 const size_t numClasses)
35 weights.zeros(numFeatures, numClasses);
36 biases.zeros(numClasses);
Linear algebra utility functions, generally performed on matrices or vectors.
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
This class is used to initialize the matrix weightVectors to zero.
static void Initialize(arma::mat &weights, arma::vec &biases, const size_t numFeatures, const size_t numClasses)