|
mlpack
|
A data-dependent random dictionary initializer for SparseCoding. More...
#include <data_dependent_random_initializer.hpp>
Static Public Member Functions | |
| static void | Initialize (const arma::mat &data, const size_t atoms, arma::mat &dictionary) |
| Initialize the dictionary by adding together three random observations from the data, and then normalizing the atom. More... | |
A data-dependent random dictionary initializer for SparseCoding.
This creates random dictionary atoms by adding three random observations from the data together, and then normalizing the atom.
|
inlinestatic |
Initialize the dictionary by adding together three random observations from the data, and then normalizing the atom.
This implementation is simple enough to be included with the definition.
| data | Dataset to initialize the dictionary with. |
| atoms | Number of atoms in dictionary. |
| dictionary | Dictionary to initialize. |
1.8.13