This initialization rule for AMF simply fills the W and H matrices with uniform random noise in [0, 1]. More...

Public Member Functions

 RandomInitialization ()
 
template
<
typename
MatType
>
void InitializeOne (const MatType &V, const size_t r, arma::mat &M, const bool whichMatrix=true)
 Fill W or H with random uniform noise. More...

 
template
<
typename
Archive
>
void serialize (Archive &, const uint32_t)
 Serialize the object (in this case, there is nothing to serialize). More...

 

Static Public Member Functions

template
<
typename
MatType
>
static void Initialize (const MatType &V, const size_t r, arma::mat &W, arma::mat &H)
 Fill W and H with random uniform noise. More...

 

Detailed Description

This initialization rule for AMF simply fills the W and H matrices with uniform random noise in [0, 1].

Definition at line 25 of file random_init.hpp.

Constructor & Destructor Documentation

◆ RandomInitialization()

Definition at line 29 of file random_init.hpp.

Member Function Documentation

◆ Initialize()

static void Initialize ( const MatType &  V,
const size_t  r,
arma::mat &  W,
arma::mat &  H 
)
inlinestatic

Fill W and H with random uniform noise.

Parameters
VInput matrix.
rRank of decomposition.
WW matrix, to be filled with random noise.
HH matrix, to be filled with random noise.

Definition at line 40 of file random_init.hpp.

◆ InitializeOne()

void InitializeOne ( const MatType &  V,
const size_t  r,
arma::mat &  M,
const bool  whichMatrix = true 
)
inline

Fill W or H with random uniform noise.

Parameters
VInput matrix.
rRank of decomposition.
MW or H matrix, to be filled with random noise.
whichMatrixIf true, initialize W. Otherwise, initialize H.

Definition at line 63 of file random_init.hpp.

◆ serialize()

void serialize ( Archive &  ,
const uint32_t   
)
inline

Serialize the object (in this case, there is nothing to serialize).

Definition at line 85 of file random_init.hpp.


The documentation for this class was generated from the following file:
  • /home/ryan/src/mlpack.org/_src/mlpack-git/src/mlpack/methods/amf/init_rules/random_init.hpp