mlpack
git-master
|
AddDecomposableEvaluateWithGradientConst< FunctionType, true, false > Class Template Reference
If we have both a decomposable const Evaluate() and a decomposable const Gradient() but not a decomposable const EvaluateWithGradient(), add a decomposable const EvaluateWithGradient() method. More...
Public Member Functions | |
double | EvaluateWithGradient (const arma::mat &coordinates, const size_t begin, arma::mat &gradient, const size_t batchSize) const |
Return both the evaluated objective function and its gradient, storing the gradient in the given matrix, starting at the given decomposable function and using the given batch size. More... | |
Detailed Description
template<typenameFunctionType>
class mlpack::optimization::AddDecomposableEvaluateWithGradientConst< FunctionType, true, false >
template
<
typename
FunctionType
>
If we have both a decomposable const Evaluate() and a decomposable const Gradient() but not a decomposable const EvaluateWithGradient(), add a decomposable const EvaluateWithGradient() method.
Definition at line 157 of file add_decomposable_evaluate_with_gradient.hpp.
Member Function Documentation
◆ EvaluateWithGradient()
|
inline |
Return both the evaluated objective function and its gradient, storing the gradient in the given matrix, starting at the given decomposable function and using the given batch size.
- Parameters
-
coordinates Coordinates to evaluate the function at. begin Index of decomposable function to begin with. gradient Matrix to store the gradient into. batchSize Number of decomposable functions to evaluate.
Definition at line 170 of file add_decomposable_evaluate_with_gradient.hpp.
The documentation for this class was generated from the following file:
- src/mlpack/core/optimizers/function/add_decomposable_evaluate_with_gradient.hpp
Generated by
