mlpack  master
Public Member Functions | Private Member Functions | Private Attributes | List of all members
mlpack::ann::ParametersSetVisitor Class Reference

ParametersSetVisitor update the parameters set using the given matrix. More...

Inheritance diagram for mlpack::ann::ParametersSetVisitor:
Inheritance graph
[legend]

Public Member Functions

 ParametersSetVisitor (arma::mat &&parameters)
 Update the parameters set given the parameters matrix. More...
 
template<typename LayerType >
void operator() (LayerType *layer) const
 Update the parameters set. More...
 

Private Member Functions

template<typename T , typename P >
std::enable_if< !HasParametersCheck< T, P &(T::*)()>::value, void >::type LayerParameters (T *layer, P &output) const
 Do not update the parameters set if the module doesn't implement the Parameters() function. More...
 
template<typename T , typename P >
std::enable_if< HasParametersCheck< T, P &(T::*)()>::value, void >::type LayerParameters (T *layer, P &output) const
 Update the parameters set if the module implements the Parameters() function. More...
 

Private Attributes

arma::mat && parameters
 The parameters set. More...
 

Detailed Description

ParametersSetVisitor update the parameters set using the given matrix.

Definition at line 27 of file parameters_set_visitor.hpp.

Constructor & Destructor Documentation

mlpack::ann::ParametersSetVisitor::ParametersSetVisitor ( arma::mat &&  parameters)

Update the parameters set given the parameters matrix.

Member Function Documentation

template<typename T , typename P >
std::enable_if< !HasParametersCheck<T, P&(T::*)()>::value, void>::type mlpack::ann::ParametersSetVisitor::LayerParameters ( T *  layer,
P &  output 
) const
private

Do not update the parameters set if the module doesn't implement the Parameters() function.

template<typename T , typename P >
std::enable_if< HasParametersCheck<T, P&(T::*)()>::value, void>::type mlpack::ann::ParametersSetVisitor::LayerParameters ( T *  layer,
P &  output 
) const
private

Update the parameters set if the module implements the Parameters() function.

template<typename LayerType >
void mlpack::ann::ParametersSetVisitor::operator() ( LayerType *  layer) const

Update the parameters set.

Member Data Documentation

arma::mat&& mlpack::ann::ParametersSetVisitor::parameters
private

The parameters set.

Definition at line 39 of file parameters_set_visitor.hpp.


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