NetworkInitialization< InitializationRuleType, CustomLayers > Class Template Reference

This class is used to initialize the network with the given initialization rule. More...

Public Member Functions

 NetworkInitialization (const InitializationRuleType &initializeRule=InitializationRuleType())
 Use the given initialization rule to initialize the specified network. More...

 
template
<
typename
eT
>
void Initialize (const std::vector< LayerTypes< CustomLayers... > > &network, arma::Mat< eT > &parameter, size_t parameterOffset=0)
 Initialize the specified network and store the results in the given parameter. More...

 

Detailed Description


template<typename InitializationRuleType, typename... CustomLayers>
class mlpack::ann::NetworkInitialization< InitializationRuleType, CustomLayers >

This class is used to initialize the network with the given initialization rule.

Definition at line 33 of file network_init.hpp.

Constructor & Destructor Documentation

◆ NetworkInitialization()

NetworkInitialization ( const InitializationRuleType &  initializeRule = InitializationRuleType())
inline

Use the given initialization rule to initialize the specified network.

Parameters
initializeRuleRule to initialize the given network.

Definition at line 41 of file network_init.hpp.

Member Function Documentation

◆ Initialize()

void Initialize ( const std::vector< LayerTypes< CustomLayers... > > &  network,
arma::Mat< eT > &  parameter,
size_t  parameterOffset = 0 
)
inline

Initialize the specified network and store the results in the given parameter.

Parameters
networkNetwork that should be initialized.
parameterThe network parameter.
parameterOffsetOffset for network paramater, default 0.

Definition at line 57 of file network_init.hpp.


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