public class GLMModel extends hex.SupervisedModel<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
| Modifier and Type | Class and Description |
|---|---|
static class |
GLMModel.GLMOutput |
static class |
GLMModel.GLMParameters |
static class |
GLMModel.Submodel |
| Modifier and Type | Field and Description |
|---|---|
double |
_lambda_max |
long |
_nobs |
double |
_ymu |
double |
_ySigma |
| Constructor and Description |
|---|
GLMModel(water.Key selfKey,
GLMModel.GLMParameters parms,
GLM job,
double ymu,
double ySigma,
double lambda_max,
long nobs) |
| Modifier and Type | Method and Description |
|---|---|
double[] |
beta() |
java.util.HashMap<java.lang.String,java.lang.Double> |
coefficients()
get beta coefficients in a map indexed by name
|
DataInfo |
dinfo() |
water.util.TwoDimTable |
generateSummary(water.Key train,
int iter)
Re-do the TwoDim table generation with updated model.
|
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
java.lang.String[] |
names() |
double[] |
score0(water.fvec.Chunk[] chks,
int row_in_chunk,
double[] tmp,
double[] preds) |
protected double[] |
score0(double[] data,
double[] preds) |
void |
setSubmodel(GLMModel.Submodel sm) |
protected boolean |
toJavaCheckTooBig() |
protected water.util.SB |
toJavaInit(water.util.SB sb,
water.util.SB fileContext) |
protected void |
toJavaPredictBody(water.util.SB body,
water.util.SB classCtx,
water.util.SB file) |
adaptTestForTrain, adaptTestForTrain, addMetrics, addWarning, checksum_impl, cleanup_adapt, isSupervised, remove_impl, score, score, score, scoreImpl, testJavaScoring, toJava, toJava, toJavaNCLASSES, toJavaSuperdelete_and_lock, delete, delete, delete, read_lock, read_lock, unlock_all, unlock, update, write_lockpublic final double _lambda_max
public final double _ymu
public final double _ySigma
public final long _nobs
public GLMModel(water.Key selfKey,
GLMModel.GLMParameters parms,
GLM job,
double ymu,
double ySigma,
double lambda_max,
long nobs)
protected boolean toJavaCheckTooBig()
toJavaCheckTooBig in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>public DataInfo dinfo()
public hex.ModelMetrics.MetricBuilder makeMetricBuilder(java.lang.String[] domain)
makeMetricBuilder in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>public double[] beta()
public java.lang.String[] names()
public java.util.HashMap<java.lang.String,java.lang.Double> coefficients()
public void setSubmodel(GLMModel.Submodel sm)
public water.util.TwoDimTable generateSummary(water.Key train,
int iter)
public double[] score0(water.fvec.Chunk[] chks,
int row_in_chunk,
double[] tmp,
double[] preds)
score0 in class hex.SupervisedModel<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>protected double[] score0(double[] data,
double[] preds)
score0 in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>protected void toJavaPredictBody(water.util.SB body,
water.util.SB classCtx,
water.util.SB file)
toJavaPredictBody in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>protected water.util.SB toJavaInit(water.util.SB sb,
water.util.SB fileContext)
toJavaInit in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>