hex
Class DLSM.LSMSolver

java.lang.Object
  extended by water.Iced
      extended by hex.DLSM.LSMSolver
All Implemented Interfaces:
java.lang.Cloneable, Freezable
Direct Known Subclasses:
DLSM.ADMMSolver, DLSM.GeneralizedGradientSolver
Enclosing class:
DLSM

public abstract static class DLSM.LSMSolver
extends Iced


Nested Class Summary
static class DLSM.LSMSolver.LSMSolverException
           
 
Field Summary
 double _alpha
           
protected  boolean _converged
           
 double _lambda
           
 
Constructor Summary
DLSM.LSMSolver(double lambda, double alpha)
           
 
Method Summary
 boolean converged()
           
abstract  java.lang.String name()
           
abstract  boolean solve(hex.DGLM.Gram gram, double[] newBeta)
           
abstract  com.google.gson.JsonObject toJson()
           
 
Methods inherited from class water.Iced
clone, frozenType, init, newInstance, read, toDocField, write, writeJSON, writeJSONFields
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_lambda

public double _lambda

_alpha

public final double _alpha

_converged

protected boolean _converged
Constructor Detail

DLSM.LSMSolver

public DLSM.LSMSolver(double lambda,
                      double alpha)
Method Detail

solve

public abstract boolean solve(hex.DGLM.Gram gram,
                              double[] newBeta)
Parameters:
xx - - gram matrix. gaussian: X'X, binomial:(1/4)X'X
xy - - guassian: -X'y binomial: -(1/4)X'(XB + (y-p)/(p*1-p))
yy - - /2
beta - - previous vector of coefficients, will be modified/destroyed
newBeta - - resulting vector of coefficients
Returns:
true if converged

toJson

public abstract com.google.gson.JsonObject toJson()

converged

public final boolean converged()

name

public abstract java.lang.String name()