public class GLMModel extends hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
Modifier and Type | Class and Description |
---|---|
static class |
GLMModel.GLMOutput |
static class |
GLMModel.GLMParameters |
static class |
GLMModel.GLMWeights |
static class |
GLMModel.GLMWeightsFun |
static class |
GLMModel.RegularizationPath |
static class |
GLMModel.Submodel |
hex.Model.BigScore, hex.Model.DeepFeatures, hex.Model.ExemplarMembers, hex.Model.GetMostImportantFeatures, hex.Model.GLRMArchetypes, hex.Model.GridSortBy, hex.Model.InteractionPair, hex.Model.JavaModelStreamWriter, hex.Model.LeafNodeAssignment, hex.Model.Output, hex.Model.Parameters
Modifier and Type | Field and Description |
---|---|
double |
_lambda_max |
long |
_nobs |
long |
_nullDOF |
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 |
---|---|
GLMModel |
addSubmodel(GLMModel.Submodel sm) |
protected double[] |
beta_internal() |
double[] |
beta_std(double lambda) |
double[] |
beta() |
double[] |
beta(double lambda) |
long |
checksum_impl() |
GLMModel |
clone2() |
java.util.HashMap<java.lang.String,java.lang.Double> |
coefficients()
get beta coefficients in a map indexed by name
|
double |
deviance(double w,
double y,
double f) |
DataInfo |
dinfo() |
water.util.TwoDimTable |
generateSummary(water.Key train,
int iter)
Re-do the TwoDim table generation with updated model.
|
GLMMojoWriter |
getMojo() |
GLMModel.RegularizationPath |
getRegularizationPath() |
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
java.lang.String[] |
makeScoringNames() |
java.lang.String[] |
names() |
protected water.fvec.Frame |
predictScoreImpl(water.fvec.Frame fr,
water.fvec.Frame adaptFrm,
java.lang.String destination_key,
water.Job j,
boolean computeMetrics)
Score an already adapted frame.
|
protected double[] |
score0(double[] data,
double[] preds) |
protected double[] |
score0(double[] data,
double[] preds,
double o) |
protected hex.ModelMetrics.MetricBuilder |
scoreMetrics(water.fvec.Frame adaptFrm)
Score an already adapted frame.
|
protected java.lang.String[][] |
scoringDomains() |
void |
setVcov(double[][] inv) |
void |
setZValues(double[] zValues,
double dispersion,
boolean dispersionEstimated) |
protected boolean |
toJavaCheckTooBig() |
protected water.util.SBPrintStream |
toJavaInit(water.util.SBPrintStream sb,
water.codegen.CodeGeneratorPipeline fileCtx) |
protected void |
toJavaPredictBody(water.util.SBPrintStream body,
water.codegen.CodeGeneratorPipeline classCtx,
water.codegen.CodeGeneratorPipeline fileCtx,
boolean verboseCode) |
void |
update(double[] beta,
double devianceTrain,
double devianceTest,
int iter) |
GLMModel |
updateSubmodel(GLMModel.Submodel sm) |
adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, auc, classification_error, cleanup_adapt, closeBigScorePredict, compareTo, computeDeviances, data, defaultThreshold, deleteCrossValidationModels, deviance, fillScoringInfo, getDefaultGridSortBy, getToEigenVec, isSupervised, last_scored, lift_top_group, logloss, loss, mae, makeBigScoreTask, makeInteraction, makeInteractions, makeInteractions, makeSchema, mean_per_class_error, mse, postProcessPredictions, readAll_impl, remove_impl, rmsle, score, score, score, score, score, score0, score0, scoring_history, setupBigScorePredict, testJavaScoring, testJavaScoring, testJavaScoring, toJava, toJava, toJava, toJavaNCLASSES, toJavaPROB, toJavaSuper, toString, writeAll_impl
delete_and_lock, delete_and_lock, delete_and_lock, delete, delete, delete, read_lock, read_lock, read_lock, unlock_all, unlock, unlock, unlock, unlock, update, update, update, write_lock, write_lock, write_lock
checksum, readAll, remove, remove, remove, remove, writeAll
public final double _lambda_max
public final double[] _ymu
public final long _nullDOF
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)
public void setVcov(double[][] inv)
public GLMModel.RegularizationPath getRegularizationPath()
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>
protected double[] beta_internal()
public double[] beta()
public double[] beta(double lambda)
public double[] beta_std(double lambda)
public java.lang.String[] names()
public double deviance(double w, double y, double f)
deviance
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
public GLMModel addSubmodel(GLMModel.Submodel sm)
public GLMModel updateSubmodel(GLMModel.Submodel sm)
public void update(double[] beta, double devianceTrain, double devianceTest, int iter)
public GLMModel clone2()
protected java.lang.String[][] scoringDomains()
scoringDomains
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
public void setZValues(double[] zValues, double dispersion, boolean dispersionEstimated)
public java.util.HashMap<java.lang.String,java.lang.Double> coefficients()
public water.util.TwoDimTable generateSummary(water.Key train, int iter)
public long checksum_impl()
checksum_impl
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
protected double[] score0(double[] data, double[] preds)
score0
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
protected double[] score0(double[] data, double[] preds, double o)
score0
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
protected void toJavaPredictBody(water.util.SBPrintStream body, water.codegen.CodeGeneratorPipeline classCtx, water.codegen.CodeGeneratorPipeline fileCtx, boolean verboseCode)
toJavaPredictBody
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
protected water.util.SBPrintStream toJavaInit(water.util.SBPrintStream sb, water.codegen.CodeGeneratorPipeline fileCtx)
toJavaInit
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
protected water.fvec.Frame predictScoreImpl(water.fvec.Frame fr, water.fvec.Frame adaptFrm, java.lang.String destination_key, water.Job j, boolean computeMetrics)
predictScoreImpl
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
adaptFrm
- Already adapted framecomputeMetrics
- public java.lang.String[] makeScoringNames()
makeScoringNames
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
protected hex.ModelMetrics.MetricBuilder scoreMetrics(water.fvec.Frame adaptFrm)
scoreMetrics
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>
adaptFrm
- Already adapted framepublic GLMMojoWriter getMojo()
getMojo
in class hex.Model<GLMModel,GLMModel.GLMParameters,GLMModel.GLMOutput>