public class GLMMetricBuilder extends hex.ModelMetricsSupervised.MetricBuilderSupervised<GLMMetricBuilder>
Constructor and Description |
---|
GLMMetricBuilder(java.lang.String[] domain,
double[] ymu,
GLMModel.GLMWeightsFun glmf,
int rank,
boolean computeMetrics,
boolean intercept) |
Modifier and Type | Method and Description |
---|---|
void |
add(double yreal,
double[] ymodel,
double weight,
double offset) |
void |
add(double yreal,
double ymodel,
double weight,
double offset) |
protected void |
computeAIC() |
double |
explainedDev() |
hex.ModelMetrics |
makeModelMetrics(hex.Model m,
water.fvec.Frame f,
water.fvec.Frame adaptedFrame,
water.fvec.Frame preds) |
long |
nullDOF() |
double[] |
perRow(double[] ds,
float[] yact,
double weight,
double offset,
hex.Model m) |
double[] |
perRow(double[] ds,
float[] yact,
hex.Model m) |
void |
reduce(GLMMetricBuilder v) |
long |
resDOF() |
double |
residualDeviance() |
public GLMMetricBuilder(java.lang.String[] domain, double[] ymu, GLMModel.GLMWeightsFun glmf, int rank, boolean computeMetrics, boolean intercept)
public double explainedDev()
public double[] perRow(double[] ds, float[] yact, hex.Model m)
perRow
in class hex.ModelMetricsSupervised.MetricBuilderSupervised<GLMMetricBuilder>
public double[] perRow(double[] ds, float[] yact, double weight, double offset, hex.Model m)
perRow
in class hex.ModelMetrics.MetricBuilder<GLMMetricBuilder>
public void add(double yreal, double[] ymodel, double weight, double offset)
public void add(double yreal, double ymodel, double weight, double offset)
public void reduce(GLMMetricBuilder v)
reduce
in class hex.ModelMetrics.MetricBuilder<GLMMetricBuilder>
public final double residualDeviance()
public final long nullDOF()
public final long resDOF()
protected void computeAIC()
public hex.ModelMetrics makeModelMetrics(hex.Model m, water.fvec.Frame f, water.fvec.Frame adaptedFrame, water.fvec.Frame preds)
makeModelMetrics
in class hex.ModelMetricsSupervised.MetricBuilderSupervised<GLMMetricBuilder>