mlpack  git-master
AddDecomposableEvaluateConst< FunctionType, true, false > Class Template Reference

If we have a decomposable const EvaluateWithGradient() but not a decomposable const Evaluate(), add a decomposable const Evaluate() method. More...

Public Member Functions

double Evaluate (const arma::mat &coordinates, const size_t begin, const size_t batchSize) const
 Return the objective function for the given coordinates, starting at the given decomposable function using the given batch size. More...

 
double Evaluate (const arma::mat &coordinates, const size_t begin, const size_t batchSize) const
 Return the objective function for the given coordinates, starting at the given decomposable function using the given batch size. More...

 

Detailed Description


template
<
typename
FunctionType
>

class mlpack::optimization::AddDecomposableEvaluateConst< FunctionType, true, false >

If we have a decomposable const EvaluateWithGradient() but not a decomposable const Evaluate(), add a decomposable const Evaluate() method.

Definition at line 129 of file add_decomposable_evaluate.hpp.

Member Function Documentation

◆ Evaluate() [1/2]

double Evaluate ( const arma::mat &  coordinates,
const size_t  begin,
const size_t  batchSize 
) const
inline

Return the objective function for the given coordinates, starting at the given decomposable function using the given batch size.

Parameters
coordinatesCoordinates to evaluate the function at.
beginIndex of first function to evaluate.
batchSizeNumber of functions to evaluate.

Definition at line 113 of file add_decomposable_evaluate_const.hpp.

◆ Evaluate() [2/2]

double Evaluate ( const arma::mat &  coordinates,
const size_t  begin,
const size_t  batchSize 
) const
inline

Return the objective function for the given coordinates, starting at the given decomposable function using the given batch size.

Parameters
coordinatesCoordinates to evaluate the function at.
beginIndex of first function to evaluate.
batchSizeNumber of functions to evaluate.

Definition at line 140 of file add_decomposable_evaluate.hpp.


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