public abstract class ModelingStep<M extends hex.Model> extends water.Iced<ModelingStep>
AutoML training steps.| Modifier and Type | Class and Description |
|---|---|
static class |
ModelingStep.GridStep<M extends hex.Model>
Convenient base class for steps defining a (random) grid search.
|
static class |
ModelingStep.ModelStep<M extends hex.Model>
Convenient base class for single/default model steps.
|
protected static class |
ModelingStep.SeedPolicy |
static class |
ModelingStep.SelectionStep<M extends hex.Model> |
| Modifier and Type | Field and Description |
|---|---|
protected IAlgo |
_algo |
protected java.lang.String |
_description |
protected java.lang.String |
_id |
protected AutoML.Constraint[] |
_ignoredConstraints |
protected int |
_weight |
| Modifier | Constructor and Description |
|---|---|
protected |
ModelingStep(IAlgo algo,
java.lang.String id,
int weight,
AutoML autoML) |
| Modifier and Type | Method and Description |
|---|---|
protected AutoML |
aml() |
protected void |
applyPreprocessing(hex.Model.Parameters params) |
protected boolean |
canRun() |
protected abstract WorkAllocations.Work |
getAllocatedWork() |
protected PreprocessingConfig |
getPreprocessingConfig() |
protected hex.Model[] |
getTrainedModels() |
protected water.Key<hex.Model>[] |
getTrainedModelsKeys() |
protected WorkAllocations |
getWorkAllocations() |
protected void |
initTimeConstraints(hex.Model.Parameters parms,
double upperLimit) |
protected boolean |
isCVEnabled() |
protected abstract water.Key |
makeKey(java.lang.String name,
boolean withCounter) |
protected abstract WorkAllocations.Work |
makeWork() |
protected void |
onDone(water.Job job) |
protected void |
setClassBalancingParams(hex.Model.Parameters params) |
protected void |
setCommonModelBuilderParams(hex.Model.Parameters params)
Assign common parameters to the model params before building the model or set of models.
|
protected void |
setCrossValidationParams(hex.Model.Parameters params) |
protected void |
setCustomParams(hex.Model.Parameters params) |
protected void |
setSeed(hex.Model.Parameters parms,
hex.Model.Parameters defaults,
ModelingStep.SeedPolicy seedPolicy) |
protected void |
setStoppingCriteria(hex.Model.Parameters parms,
hex.Model.Parameters defaults)
Configures early-stopping for the model or set of models to be built.
|
protected void |
setWeightingParams(hex.Model.Parameters params) |
protected abstract water.Job |
startJob() |
protected <M extends hex.Model,MP extends hex.Model.Parameters> |
startModel(water.Key<M> resultKey,
MP params) |
protected <MP extends hex.Model.Parameters> |
startSearch(water.Key<hex.grid.Grid> resultKey,
MP baseParams,
java.util.Map<java.lang.String,java.lang.Object[]> hyperParams,
hex.grid.HyperSpaceSearchCriteria searchCriteria) |
protected final IAlgo _algo
protected final java.lang.String _id
protected int _weight
protected AutoML.Constraint[] _ignoredConstraints
protected java.lang.String _description
protected <MP extends hex.Model.Parameters> water.Job<hex.grid.Grid> startSearch(water.Key<hex.grid.Grid> resultKey,
MP baseParams,
java.util.Map<java.lang.String,java.lang.Object[]> hyperParams,
hex.grid.HyperSpaceSearchCriteria searchCriteria)
protected <M extends hex.Model,MP extends hex.Model.Parameters> water.Job<M> startModel(water.Key<M> resultKey,
MP params)
protected abstract WorkAllocations.Work getAllocatedWork()
protected abstract water.Key makeKey(java.lang.String name,
boolean withCounter)
protected abstract WorkAllocations.Work makeWork()
protected abstract water.Job startJob()
protected void onDone(water.Job job)
protected AutoML aml()
protected boolean canRun()
protected WorkAllocations getWorkAllocations()
protected hex.Model[] getTrainedModels()
protected water.Key<hex.Model>[] getTrainedModelsKeys()
protected boolean isCVEnabled()
protected void setCommonModelBuilderParams(hex.Model.Parameters params)
params - the model parameters to which the common parameters will be added.protected void setCrossValidationParams(hex.Model.Parameters params)
protected void setWeightingParams(hex.Model.Parameters params)
protected void setClassBalancingParams(hex.Model.Parameters params)
protected void setCustomParams(hex.Model.Parameters params)
protected void applyPreprocessing(hex.Model.Parameters params)
protected PreprocessingConfig getPreprocessingConfig()
protected void setStoppingCriteria(hex.Model.Parameters parms,
hex.Model.Parameters defaults)
parms - the model parameters to which the stopping criteria will be added.defaults - the default parameters for the corresponding ModelBuilder.protected void setSeed(hex.Model.Parameters parms,
hex.Model.Parameters defaults,
ModelingStep.SeedPolicy seedPolicy)
parms - the model parameters to which the stopping criteria will be added.defaults - the default parameters for the corresponding ModelBuilder.seedPolicy - the policy defining how the seed will be assigned to the model parameters.protected void initTimeConstraints(hex.Model.Parameters parms,
double upperLimit)