Square loss function
.
More...
Square loss function
.
Contains matrix
and vector
.
Definition at line 25 of file func_sq.hpp.
◆ FuncSq()
| FuncSq |
( |
const arma::mat & |
A, |
|
|
const arma::vec & |
b |
|
) |
| |
|
inline |
Construct the square loss function.
- Parameters
-
Definition at line 34 of file func_sq.hpp.
◆ Evaluate()
| double Evaluate |
( |
const arma::mat & |
coords | ) |
|
|
inline |
Evaluation of the function.

- Parameters
-
- Returns
.
Definition at line 44 of file func_sq.hpp.
◆ Gradient()
| void Gradient |
( |
const arma::mat & |
coords, |
|
|
arma::mat & |
gradient |
|
) |
| |
|
inline |
Gradient of square loss function.

- Parameters
-
| coords | input vector x. |
| gradient | output gradient vector. |
Definition at line 57 of file func_sq.hpp.
◆ MatrixA() [1/2]
| arma::mat MatrixA |
( |
| ) |
const |
|
inline |
◆ MatrixA() [2/2]
◆ Vectorb() [1/2]
| arma::vec Vectorb |
( |
| ) |
const |
|
inline |
◆ Vectorb() [2/2]
The documentation for this class was generated from the following file:
- /home/ryan/src/mlpack.org/_src/mlpack-3.0.4/src/mlpack/core/optimizers/fw/func_sq.hpp