|
mlpack
3.0.4
|
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... | |
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.
|
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.
| 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.
1.8.5