hex.glm
Class GLMValidation

java.lang.Object
  extended by water.Iced
      extended by hex.glm.GLMValidation
All Implemented Interfaces:
java.lang.Cloneable, Freezable
Direct Known Subclasses:
GLMValidation.GLMXValidation

public class GLMValidation
extends Iced

Class for GLMValidation.


Nested Class Summary
static class GLMValidation.GLMXValidation
           
 
Field Summary
static DocGen.FieldDoc[] DOC_FIELDS
           
 
Constructor Summary
GLMValidation(Key dataKey, double ymu, GLMParams glm, int rank)
           
 
Method Summary
 void add(double yreal, double ymodel)
           
 void add(GLMValidation v)
           
 double aic()
           
 double auc()
           
protected  void computeAIC()
           
protected  void computeAUC()
          Computes area under the ROC curve.
protected  void finalize_AIC_AUC()
           
 void generateHTML(java.lang.String title, java.lang.StringBuilder sb)
           
static Key makeKey()
           
 double nullDeviance()
           
 long nullDOF()
           
protected  void regularize(double reg)
           
 long resDOF()
           
 double residualDeviance()
           
 java.lang.String toString()
           
 
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, wait, wait, wait
 

Field Detail

DOC_FIELDS

public static DocGen.FieldDoc[] DOC_FIELDS
Constructor Detail

GLMValidation

public GLMValidation(Key dataKey,
                     double ymu,
                     GLMParams glm,
                     int rank)
Method Detail

regularize

protected void regularize(double reg)

makeKey

public static Key makeKey()

add

public void add(double yreal,
                double ymodel)

add

public void add(GLMValidation v)

nullDeviance

public final double nullDeviance()

residualDeviance

public final double residualDeviance()

nullDOF

public final long nullDOF()

resDOF

public final long resDOF()

auc

public double auc()

aic

public double aic()

computeAIC

protected void computeAIC()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

finalize_AIC_AUC

protected void finalize_AIC_AUC()

computeAUC

protected void computeAUC()
Computes area under the ROC curve. The ROC curve is computed from the confusion matrices (there is one for each computed threshold). Area under this curve is then computed as a sum of areas of trapezoids formed by each neighboring points.


generateHTML

public void generateHTML(java.lang.String title,
                         java.lang.StringBuilder sb)