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 |
static class |
StackedEnsembleModel.StackingStrategy |
hex.Model.AdaptFrameParameters, hex.Model.BigScore, hex.Model.BigScoreChunkPredict, hex.Model.BigScorePredict, hex.Model.Contributions, hex.Model.DeepFeatures, hex.Model.ExemplarMembers, hex.Model.FeatureFrequencies, hex.Model.GetMostImportantFeatures, hex.Model.GetNTrees, hex.Model.GLRMArchetypes, hex.Model.GridSortBy, hex.Model.H2OModelDescriptor, hex.Model.InteractionBuilder, hex.Model.InteractionPair, hex.Model.InteractionSpec, hex.Model.JavaModelStreamWriter, hex.Model.JavaScoringOptions, hex.Model.LeafNodeAssignment, hex.Model.Output, hex.Model.Parameters, hex.Model.PredictScoreResult, hex.Model.RowToTreeAssignment, hex.Model.StagedPredictions, hex.Model.UpdateAuxTreeWeights
Modifier and Type | Field and Description |
---|---|
hex.ModelCategory |
modelCategory |
java.lang.String |
responseColumn |
long |
trainingFrameRows |
Constructor and Description |
---|
StackedEnsembleModel(water.Key selfKey,
StackedEnsembleModel.StackedEnsembleParameters parms,
StackedEnsembleModel.StackedEnsembleOutput output) |
Modifier and Type | Method and Description |
---|---|
void |
deleteBaseModelPredictions() |
void |
deleteCrossValidationFoldAssignment() |
void |
deleteCrossValidationModels() |
void |
deleteCrossValidationPreds() |
StackedEnsembleMojoWriter |
getMojo() |
boolean |
haveMojo() |
void |
initActualParamValues() |
hex.ModelMetrics.MetricBuilder |
makeMetricBuilder(java.lang.String[] domain) |
protected hex.Model.PredictScoreResult |
predictScoreImpl(water.fvec.Frame fr,
water.fvec.Frame adaptFrm,
java.lang.String destination_key,
water.Job j,
boolean computeMetrics,
water.udf.CFuncRef customMetricFunc)
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,
boolean cascade) |
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)
|
adaptFrameForScore, adaptTestForJavaScoring, adaptTestForTrain, adaptTestForTrain, adaptTestForTrain, addMetrics, addModelMetrics, addWarning, auc, AUCPR, checksum_impl, classification_error, compareTo, computeDeviances, containsResponse, data, defaultThreshold, defaultThreshold, deviance, deviance, evaluateAutoModelParameters, exportBinaryModel, exportMojo, fetchAll, fillScoringInfo, getDefaultGridSortBy, getGenModelEncoding, getPojoInterfaces, getToEigenVec, havePojo, importBinaryModel, isDistributionHuber, isFeatureUsedInPredict, isFeatureUsedInPredict, isSupervised, last_scored, lift_top_group, likelihood, logloss, loss, mae, makeAdaptFrameParameters, makeBigScoreTask, makeInteraction, makeInteractions, makeInteractions, makePojoWriter, makeSchema, makeScoringDomains, makeScoringNames, makeScoringNames, mean_per_class_error, modelDescriptor, mse, needsPostProcess, postProcessPredictions, r2, resetThreshold, result, rmsle, score, score, score, score, score, score, score, score, score0, score0, score0, score0PostProcessSupervised, scoreMetrics, scoring_history, scoringDomains, setInputParms, setupBigScorePredict, testJavaScoring, testJavaScoring, testJavaScoring, testJavaScoring, testJavaScoring, toJava, toJava, toJava, toJavaAlgo, toJavaCheckTooBig, toJavaInit, toJavaModelClassName, toJavaPredictBody, toJavaTransform, toJavaUUID, toMojo, toMojo, toString, transform, uploadBinaryModel, writeTo
delete_and_lock, delete_and_lock, delete_and_lock, delete, delete, delete, delete, read_lock, read_lock, read_lock, unlock_all, unlock, unlock, unlock, unlock, update, update, update, write_lock_to_read_lock, write_lock, write_lock, write_lock
checksum_impl, checksum, checksum, getKey, readAll, remove_impl, remove_self_key_impl, remove, remove, remove, remove, remove, remove, removeQuietly, writeAll
public hex.ModelCategory modelCategory
public long trainingFrameRows
public java.lang.String responseColumn
public StackedEnsembleModel(water.Key selfKey, StackedEnsembleModel.StackedEnsembleParameters parms, StackedEnsembleModel.StackedEnsembleOutput output)
public void initActualParamValues()
initActualParamValues
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
public boolean haveMojo()
haveMojo
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
protected hex.Model.PredictScoreResult predictScoreImpl(water.fvec.Frame fr, water.fvec.Frame adaptFrm, java.lang.String destination_key, water.Job j, boolean computeMetrics, water.udf.CFuncRef customMetricFunc)
predictScoreImpl
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
adaptFrm
- Already adapted framecomputeMetrics
- Model.predictScoreImpl(Frame, Frame, String, Job, boolean, CFuncRef)
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 void deleteBaseModelPredictions()
protected water.Futures remove_impl(water.Futures fs, boolean cascade)
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>
public StackedEnsembleMojoWriter getMojo()
getMojo
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
public void deleteCrossValidationModels()
deleteCrossValidationModels
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
public void deleteCrossValidationPreds()
deleteCrossValidationPreds
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>
public void deleteCrossValidationFoldAssignment()
deleteCrossValidationFoldAssignment
in class hex.Model<StackedEnsembleModel,StackedEnsembleModel.StackedEnsembleParameters,StackedEnsembleModel.StackedEnsembleOutput>