public class StackedEnsembleModel extends hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
Modifier and Type | Class and Description |
---|---|
static class |
StackedEnsembleModel.StackedEnsembleOutput |
static class |
StackedEnsembleModel.StackedEnsembleParameters |
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 |
---|---|
hex.Model.Parameters.FoldAssignmentScheme |
fold_assignment |
java.lang.String |
fold_column |
hex.ModelCategory |
modelCategory |
int |
nfolds |
java.lang.String |
responseColumn |
long |
seed |
long |
trainingFrameChecksum |
Constructor and Description |
---|
StackedEnsembleModel(water.Key selfKey,
StackedEnsembleModel.StackedEnsembleParameters parms,
StackedEnsembleModel.StackedEnsembleOutput output) |
Modifier and Type | Method and Description |
---|---|
void |
checkAndInheritModelProperties() |
void |
doScoreMetrics(water.Job job) |
hex.ModelMetrics |
doScoreMetricsOneFrame(water.fvec.Frame frame,
water.Job job) |
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
protected water.fvec.Frame |
predictScoreImpl(water.fvec.Frame fr,
water.fvec.Frame adaptFrm,
java.lang.String destination_key,
water.Job j,
boolean computeMetrics)
For StackedEnsemble we call score on all the base_models and then combine the results
with the metalearner to create the final predictions frame.
|
protected water.Keyed |
readAll_impl(water.AutoBuffer ab,
water.Futures fs)
Read in models (base + metalearner)
|
protected water.Futures |
remove_impl(water.Futures fs) |
protected double[] |
score0(double[] data,
double[] preds)
Should never be called: the code paths that normally go here should call predictScoreImpl().
|
protected water.AutoBuffer |
writeAll_impl(water.AutoBuffer ab)
Write out models (base + metalearner)
|
adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, auc, checksum_impl, classification_error, cleanup_adapt, closeBigScorePredict, compareTo, computeDeviances, data, defaultThreshold, deleteCrossValidationModels, deviance, deviance, fillScoringInfo, getDefaultGridSortBy, getMojo, getToEigenVec, isSupervised, last_scored, lift_top_group, logloss, loss, mae, makeBigScoreTask, makeInteraction, makeInteractions, makeInteractions, makeSchema, makeScoringNames, mean_per_class_error, mse, postProcessPredictions, rmsle, score, score, score, score, score, score0, score0, score0, scoreMetrics, scoring_history, scoringDomains, setupBigScorePredict, testJavaScoring, testJavaScoring, testJavaScoring, toJava, toJava, toJava, toJavaCheckTooBig, toJavaInit, toJavaNCLASSES, toJavaPredictBody, toJavaPROB, toJavaSuper, toString
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 hex.ModelCategory modelCategory
public long trainingFrameChecksum
public java.lang.String responseColumn
public int nfolds
public hex.Model.Parameters.FoldAssignmentScheme fold_assignment
public java.lang.String fold_column
public long seed
public StackedEnsembleModel(water.Key selfKey, StackedEnsembleModel.StackedEnsembleParameters parms, StackedEnsembleModel.StackedEnsembleOutput output)
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<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
adaptFrm
- Already adapted framecomputeMetrics
- Model.predictScoreImpl(Frame, Frame, String, Job, boolean)
protected double[] score0(double[] data, double[] preds)
score0
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
Model.score0(double[], double[])
public hex.ModelMetrics.MetricBuilder makeMetricBuilder(java.lang.String[] domain)
makeMetricBuilder
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
public hex.ModelMetrics doScoreMetricsOneFrame(water.fvec.Frame frame, water.Job job)
public void doScoreMetrics(water.Job job)
public void checkAndInheritModelProperties()
protected water.Futures remove_impl(water.Futures fs)
remove_impl
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
protected water.AutoBuffer writeAll_impl(water.AutoBuffer ab)
writeAll_impl
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
protected water.Keyed readAll_impl(water.AutoBuffer ab, water.Futures fs)
readAll_impl
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>