public static class ModelMetricsBinomialUplift.MetricBuilderBinomialUplift extends ModelMetricsSupervised.MetricBuilderSupervised<ModelMetricsBinomialUplift.MetricBuilderBinomialUplift>
Modifier and Type | Field and Description |
---|---|
protected AUUC.AUUCBuilder |
_auuc |
_domain, _nclasses
_count, _customMetric, _sumsqe, _wcount, _work, _wY, _wYY
Constructor and Description |
---|
MetricBuilderBinomialUplift(java.lang.String[] domain) |
MetricBuilderBinomialUplift(java.lang.String[] domain,
double[] thresholds) |
Modifier and Type | Method and Description |
---|---|
void |
cachePrediction(double[] cdist,
Chunk[] chks,
int row,
int cacheChunkIdx,
Model m) |
ModelMetrics |
makeModelMetrics(Model m,
Frame f,
Frame frameWithExtraColumns,
Frame preds)
Create a ModelMetrics for a given model and frame
|
Frame |
makePredictionCache(Model m,
Vec response) |
double[] |
perRow(double[] ds,
float[] yact,
double weight,
double offset,
Model m) |
double[] |
perRow(double[] ds,
float[] yact,
Model m) |
void |
reduce(ModelMetricsBinomialUplift.MetricBuilderBinomialUplift mb) |
java.lang.String |
toString() |
postGlobal, postGlobal, reduce, reduceForCV, setCustomMetric, weightedSigma
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonBytes, toJsonString, write, writeExternal, writeJSON
protected AUUC.AUUCBuilder _auuc
public MetricBuilderBinomialUplift(java.lang.String[] domain, double[] thresholds)
public MetricBuilderBinomialUplift(java.lang.String[] domain)
public double[] perRow(double[] ds, float[] yact, Model m)
perRow
in class ModelMetrics.MetricBuilder<ModelMetricsBinomialUplift.MetricBuilderBinomialUplift>
public double[] perRow(double[] ds, float[] yact, double weight, double offset, Model m)
perRow
in class ModelMetrics.MetricBuilder<ModelMetricsBinomialUplift.MetricBuilderBinomialUplift>
public void reduce(ModelMetricsBinomialUplift.MetricBuilderBinomialUplift mb)
reduce
in class ModelMetrics.MetricBuilder<ModelMetricsBinomialUplift.MetricBuilderBinomialUplift>
public ModelMetrics makeModelMetrics(Model m, Frame f, Frame frameWithExtraColumns, Frame preds)
makeModelMetrics
in class ModelMetrics.MetricBuilder<ModelMetricsBinomialUplift.MetricBuilderBinomialUplift>
m
- Modelf
- FrameframeWithExtraColumns
- Frame that contains extra columns such as weightspreds
- Optional predictions (can be null), only used to compute Gains/Lift table for binomial problems @returnpublic void cachePrediction(double[] cdist, Chunk[] chks, int row, int cacheChunkIdx, Model m)
public java.lang.String toString()
toString
in class java.lang.Object