MLPACK
1.0.11
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
mlpack
methods
perceptron
initialization_methods
random_init.hpp
Go to the documentation of this file.
1
22
#ifndef _MLPACK_METHOS_PERCEPTRON_INITIALIZATION_METHODS_RANDOM_INIT_HPP
23
#define _MLPACK_METHOS_PERCEPTRON_INITIALIZATION_METHODS_RANDOM_INIT_HPP
24
25
#include <
mlpack/core.hpp
>
26
27
namespace
mlpack {
28
namespace
perceptron {
29
34
class
RandomInitialization
35
{
36
public
:
37
RandomInitialization
() { }
38
39
inline
static
void
Initialize
(arma::mat& W,
40
const
size_t
row,
41
const
size_t
col)
42
{
43
W = arma::randu<arma::mat>(row, col);
44
}
45
};
// class RandomInitialization
46
47
};
// namespace perceptron
48
};
// namespace mlpack
49
50
#endif
Generated by
1.8.3.1