MLPACK  1.0.4
Static Public Member Functions
mlpack::sparse_coding::DataDependentRandomInitializer Class Reference

A data-dependent random dictionary initializer for SparseCoding. More...

List of all members.

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.

Detailed Description

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.

Definition at line 35 of file data_dependent_random_initializer.hpp.


Member Function Documentation

static void mlpack::sparse_coding::DataDependentRandomInitializer::Initialize ( const arma::mat &  data,
const size_t  atoms,
arma::mat &  dictionary 
) [inline, static]

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.

Parameters:
dataDataset to initialize the dictionary with.
atomsNumber of atoms in dictionary.
dictionaryDictionary to initialize.

Definition at line 47 of file data_dependent_random_initializer.hpp.

References mlpack::math::RandInt().


The documentation for this class was generated from the following file: