|
mlpack
|
A DictionaryInitializer for use with the SparseCoding class. More...
#include <random_initializer.hpp>
Static Public Member Functions | |
| static void | Initialize (const arma::mat &data, const size_t atoms, arma::mat &dictionary) |
| Initialize the dictionary randomly from a normal distribution, such that each atom has a norm of 1. More... | |
A DictionaryInitializer for use with the SparseCoding class.
This provides a random, normally distributed dictionary, such that each atom has a norm of 1.
|
inlinestatic |
Initialize the dictionary randomly from a normal distribution, such that each atom has a norm of 1.
This is simple enough to be included with the definition.
| data | Dataset to use for initialization. |
| atoms | Number of atoms (columns) in the dictionary. |
| dictionary | Dictionary to initialize. |
1.8.13