public class GLMModel extends hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
| Modifier and Type | Class and Description |
|---|---|
static class |
GLMModel.GetScoringModelTask |
static class |
GLMModel.GLMOutput |
static class |
GLMModel.GLMParameters |
static class |
GLMModel.Submodel |
hex.Model.ModelCategory, hex.Model.Output<M extends hex.Model<M,P,O>,P extends hex.Model.Parameters<M,P,O>,O extends hex.Model.Output<M,P,O>>, hex.Model.Parameters<M extends hex.Model<M,P,O>,P extends hex.Model.Parameters<M,P,O>,O extends hex.Model.Output<M,P,O>>| Constructor and Description |
|---|
GLMModel(water.Key selfKey,
FrameTask.DataInfo dinfo,
GLMModel.GLMParameters parms,
GLMModel.GLMOutput output,
double ymu,
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
|
boolean |
isSupervised() |
int |
rank(double lambda) |
water.api.ModelSchema |
schema() |
protected float[] |
score0(water.fvec.Chunk[] chks,
int row_in_chunk,
double[] tmp,
float[] preds) |
protected float[] |
score0(double[] data,
float[] preds) |
static void |
setSubmodel(water.H2O.H2OCountedCompleter cmp,
water.Key modelKey,
double lambda,
double[] beta,
double[] norm_beta,
int iteration,
long runtime,
boolean sparseCoef,
GLMValidation val) |
static void |
setXvalidation(water.H2O.H2OCountedCompleter cmp,
water.Key modelKey,
double lambda,
GLMValidation val) |
GLMValidation |
validation() |
adapt, adapt, adapt, addWarning, checksum, computeModelMetrics, getDomainMapping, getDomainMapping, missingColumnsType, remove_impl, score, score, score, score, score, score, start_training, start_training, stop_trainingdelete_and_lock, delete, delete, delete, read_lock, read_lock, unlock_all, unlock, update, write_lockpublic GLMModel(water.Key selfKey,
FrameTask.DataInfo dinfo,
GLMModel.GLMParameters parms,
GLMModel.GLMOutput output,
double ymu,
double lambda_max,
long nobs)
public boolean isSupervised()
isSupervised in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>public water.api.ModelSchema schema()
schema in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>public double[] beta()
public GLMValidation validation()
protected float[] score0(water.fvec.Chunk[] chks,
int row_in_chunk,
double[] tmp,
float[] preds)
score0 in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>protected float[] score0(double[] data,
float[] preds)
score0 in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>public static void setSubmodel(water.H2O.H2OCountedCompleter cmp,
water.Key modelKey,
double lambda,
double[] beta,
double[] norm_beta,
int iteration,
long runtime,
boolean sparseCoef,
GLMValidation val)
public int rank(double lambda)
public static void setXvalidation(water.H2O.H2OCountedCompleter cmp,
water.Key modelKey,
double lambda,
GLMValidation val)
public java.util.HashMap<java.lang.String,java.lang.Double> coefficients()