public static final class GLM.GramSolver extends java.lang.Object implements ADMM.ProximalSolver
Constructor and Description |
---|
GLM.GramSolver(Gram gram,
double[] xy,
boolean intercept,
double l2pen,
double l1pen,
double[] beta_given,
double[] proxPen,
double[] lb,
double[] ub) |
GLM.GramSolver(Gram gram,
double[] xy,
double lmax,
double betaEps,
boolean intercept) |
Modifier and Type | Method and Description |
---|---|
OptimizationUtils.GradientInfo |
gradient(double[] beta) |
boolean |
hasGradient() |
int |
iter() |
double[] |
rho() |
void |
solve(double[] result) |
boolean |
solve(double[] beta_given,
double[] result) |
public GLM.GramSolver(Gram gram, double[] xy, double lmax, double betaEps, boolean intercept)
public GLM.GramSolver(Gram gram, double[] xy, boolean intercept, double l2pen, double l1pen, double[] beta_given, double[] proxPen, double[] lb, double[] ub)
public void solve(double[] result)
public double[] rho()
rho
in interface ADMM.ProximalSolver
public boolean solve(double[] beta_given, double[] result)
solve
in interface ADMM.ProximalSolver
public boolean hasGradient()
hasGradient
in interface ADMM.ProximalSolver
public OptimizationUtils.GradientInfo gradient(double[] beta)
gradient
in interface ADMM.ProximalSolver
public int iter()
iter
in interface ADMM.ProximalSolver