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

RewardSetVisitor set the reward parameter given the reward value. More...

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

Public Member Functions

 RewardSetVisitor (const double reward)
 Set the reward parameter given the reward value. More...
 
template<typename LayerType >
void operator() (LayerType *layer) const
 Set the reward parameter. More...
 

Private Member Functions

template<typename T >
std::enable_if< HasRewardCheck< T, double &(T::*)()>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type LayerReward (T *layer) const
 Set the deterministic parameter if the module implements the Deterministic() and Model() function. More...
 
template<typename T >
std::enable_if< !HasRewardCheck< T, double &(T::*)()>::value &&HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type LayerReward (T *layer) const
 Set the deterministic parameter if the module implements the Model() function. More...
 
template<typename T >
std::enable_if< HasRewardCheck< T, double &(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type LayerReward (T *layer) const
 Set the deterministic parameter if the module implements the Deterministic() function. More...
 
template<typename T >
std::enable_if< !HasRewardCheck< T, double &(T::*)()>::value &&!HasModelCheck< T, std::vector< LayerTypes > &(T::*)()>::value, void >::type LayerReward (T *layer) const
 Do not set the deterministic parameter if the module doesn't implement the Deterministic() or Model() function. More...
 

Private Attributes

const double reward
 The reward value. More...
 

Detailed Description

RewardSetVisitor set the reward parameter given the reward value.

Definition at line 27 of file reward_set_visitor.hpp.

Constructor & Destructor Documentation

mlpack::ann::RewardSetVisitor::RewardSetVisitor ( const double  reward)

Set the reward parameter given the reward value.

Member Function Documentation

template<typename T >
std::enable_if< HasRewardCheck<T, double&(T::*)()>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::RewardSetVisitor::LayerReward ( T *  layer) const
private

Set the deterministic parameter if the module implements the Deterministic() and Model() function.

template<typename T >
std::enable_if< !HasRewardCheck<T, double&(T::*)()>::value && HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::RewardSetVisitor::LayerReward ( T *  layer) const
private

Set the deterministic parameter if the module implements the Model() function.

template<typename T >
std::enable_if< HasRewardCheck<T, double&(T::*)()>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::RewardSetVisitor::LayerReward ( T *  layer) const
private

Set the deterministic parameter if the module implements the Deterministic() function.

template<typename T >
std::enable_if< !HasRewardCheck<T, double&(T::*)()>::value && !HasModelCheck<T, std::vector<LayerTypes>&(T::*)()>::value, void>::type mlpack::ann::RewardSetVisitor::LayerReward ( T *  layer) const
private

Do not set the deterministic parameter if the module doesn't implement the Deterministic() or Model() function.

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

Set the reward parameter.

Member Data Documentation

const double mlpack::ann::RewardSetVisitor::reward
private

The reward value.

Definition at line 39 of file reward_set_visitor.hpp.


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