HDIM
1.0.0
Packages for High Dimensional Linear Regression
|
Abstract base class for solvers that do not make use of GAP SAFE screening rules. More...
#include <solver.hpp>
Public Member Functions | |
virtual Eigen::Matrix< T, Eigen::Dynamic, 1 > | operator() (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &X, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &Y, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &Beta_0, T lambda, unsigned int num_iterations) |
Run the AbstractSolver for a fixed number of steps, specified by num_iterations. More... | |
virtual Eigen::Matrix< T, Eigen::Dynamic, 1 > | operator() (const Eigen::Matrix< T, Eigen::Dynamic, Eigen::Dynamic > &X, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &Y, const Eigen::Matrix< T, Eigen::Dynamic, 1 > &Beta_0, T lambda, T duality_gap_target) |
Run the Sub-Gradient Descent algorithm until the duality gap is below the threshold specified by duality_gap_target. More... | |
Abstract base class for solvers that do not make use of GAP SAFE screening rules.
Definition at line 31 of file solver.hpp.
|
virtual |
Run the AbstractSolver for a fixed number of steps, specified by num_iterations.
X | An n x p design matrix. |
Y | A 1 x n vector of predictors. |
Beta_0 | A 1 x n vector of starting parameters. |
lambda | Current grid element. |
num_iterations | The number of times the algorithm should iterate. |
Implements hdim::internal::AbstractSolver< T >.
Reimplemented in hdim::CoordinateDescentWithScreen< T >.
Definition at line 100 of file solver.hpp.
|
virtual |
Run the Sub-Gradient Descent algorithm until the duality gap is below the threshold specified by duality_gap_target.
X | An n x p design matrix. |
Y | A 1 x n vector of predictors. |
Beta_0 | A 1 x n vector of starting parameters. |
lambda | Current grid element. |
duality_gap_target | The algorithm will iterate until the compute duality gap is below duality_gap_target. Note care should be exercised, as the algorithm can iterate ad infinitum. |
Implements hdim::internal::AbstractSolver< T >.
Reimplemented in hdim::CoordinateDescentWithScreen< T >.
Definition at line 72 of file solver.hpp.