This initialization rule for AMF simply fills the W and H matrices with uniform random noise in [0, 1].
More...
#include <random_init.hpp>
|
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).
|
|
|
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...
|
|
This initialization rule for AMF simply fills the W and H matrices with uniform random noise in [0, 1].
◆ Initialize()
template<typename MatType >
static void mlpack::amf::RandomInitialization::Initialize |
( |
const MatType & |
V, |
|
|
const size_t |
r, |
|
|
arma::mat & |
W, |
|
|
arma::mat & |
H |
|
) |
| |
|
inlinestatic |
Fill W and H with random uniform noise.
- Parameters
-
V | Input matrix. |
r | Rank of decomposition. |
W | W matrix, to be filled with random noise. |
H | H matrix, to be filled with random noise. |
◆ InitializeOne()
template<typename MatType >
void mlpack::amf::RandomInitialization::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
-
V | Input matrix. |
r | Rank of decomposition. |
M | W or H matrix, to be filled with random noise. |
whichMatrix | If true, initialize W. Otherwise, initialize H. |
The documentation for this class was generated from the following file: