LinearConstrSolver for FrankWolfe algorithm. More...
Public Member Functions | |
| ConstrLpBallSolver (const double p) | |
| Construct the solver of constrained problem. More... | |
| ConstrLpBallSolver (const double p, const arma::vec lambda) | |
| Construct the solver of constrained problem, with regularization parameter lambda here. More... | |
| arma::vec | Lambda () const |
| Get the regularization parameter. More... | |
| arma::vec & | Lambda () |
| Modify the regularization parameter. More... | |
| void | Optimize (const arma::mat &v, arma::mat &s) |
| Optimizer of Linear Constrained Problem for FrankWolfe. More... | |
| double | P () const |
| Get the p-norm. More... | |
| double & | P () |
| Modify the p-norm. More... | |
| bool | RegFlag () const |
| Get regularization flag. More... | |
| bool & | RegFlag () |
| Modify regularization flag. More... | |
LinearConstrSolver for FrankWolfe algorithm.
Constraint domain given in the form of lp ball. That is, given
, solve
when
is a regularized lp ball. That is,
If
is not given in the constructor, default is using all
for all
.
In applications such as Orthogonal Matching Pursuit (OMP),
could be ideally set to the norm of the elements in the dictionary.
For
: take (one)
, then the solution is:
For
: the solution is
For
: the solution is
Definition at line 55 of file constr_lpball.hpp.
|
inline |
Construct the solver of constrained problem.
The constrained domain should be unit lp ball for this class.
| p | The constraint is unit lp ball. |
Definition at line 64 of file constr_lpball.hpp.
|
inline |
Construct the solver of constrained problem, with regularization parameter lambda here.
| p | The constraint is unit lp ball. |
| lambda | Regularization parameter. |
Definition at line 74 of file constr_lpball.hpp.
|
inline |
Get the regularization parameter.
Definition at line 145 of file constr_lpball.hpp.
|
inline |
Modify the regularization parameter.
Definition at line 147 of file constr_lpball.hpp.
|
inline |
Optimizer of Linear Constrained Problem for FrankWolfe.
| v | Input local gradient. |
| s | Output optimal solution in the constrained domain (lp ball). |
Definition at line 85 of file constr_lpball.hpp.
References Log::Fatal, and mlpack::math::Sign().
|
inline |
Get the p-norm.
Definition at line 135 of file constr_lpball.hpp.
|
inline |
Modify the p-norm.
Definition at line 137 of file constr_lpball.hpp.
|
inline |
Get regularization flag.
Definition at line 140 of file constr_lpball.hpp.
|
inline |
Modify regularization flag.
Definition at line 142 of file constr_lpball.hpp.