14 #ifndef __MLPACK_METHODS_PERCEPTRON_INITIALIZATION_METHODS_RANDOM_INIT_HPP
15 #define __MLPACK_METHODS_PERCEPTRON_INITIALIZATION_METHODS_RANDOM_INIT_HPP
20 namespace perceptron {
33 const size_t numFeatures,
34 const size_t numClasses)
36 weights.randu(numFeatures, numClasses);
37 biases.randu(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)
Include all of the base components required to write MLPACK methods, and the main MLPACK Doxygen docu...
This class is used to initialize weights for the weightVectors matrix in a random manner...