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

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

Public Member Functions

double Evaluate (const arma::mat &coordinates, const size_t begin, const size_t batchSize)
 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)
 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::AddDecomposableEvaluate< FunctionType, true, false >

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

Definition at line 64 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 
)
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 73 of file add_decomposable_evaluate_const.hpp.

◆ Evaluate() [2/2]

double Evaluate ( const arma::mat &  coordinates,
const size_t  begin,
const size_t  batchSize 
)
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 75 of file add_decomposable_evaluate.hpp.


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