public class SequentialWalker<MP extends Model.Parameters> extends java.lang.Object implements HyperSpaceWalker<MP,HyperSpaceSearchCriteria.SequentialSearchCriteria>
HyperSpaceWalker.BaseWalker<MP extends Model.Parameters,C extends HyperSpaceSearchCriteria>, HyperSpaceWalker.CartesianWalker<MP extends Model.Parameters>, HyperSpaceWalker.HyperSpaceIterator<MP extends Model.Parameters>, HyperSpaceWalker.RandomDiscreteValueWalker<MP extends Model.Parameters>
Constructor and Description |
---|
SequentialWalker(MP params,
java.util.Map<java.lang.String,java.lang.Object[]> hyperParams,
ModelParametersBuilderFactory<MP> paramsBuilderFactory,
HyperSpaceSearchCriteria.SequentialSearchCriteria searchCriteria) |
SequentialWalker(MP params,
java.lang.Object[][] hyperParams,
ModelParametersBuilderFactory<MP> paramsBuilderFactory,
HyperSpaceSearchCriteria.SequentialSearchCriteria searchCriteria) |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAllHyperParamNamesInSubspaces() |
java.lang.String[] |
getHyperParamNames()
Returns hyper parameters names which are used for walking the hyper parameters space.
|
java.util.Map<java.lang.String,java.lang.Object[]> |
getHyperParams() |
long |
getMaxHyperSpaceSize()
Return estimated maximum size of hyperspace, not subject to any early stopping criteria.
|
ModelParametersBuilderFactory<MP> |
getParametersBuilderFactory() |
MP |
getParams()
Return initial model parameters for search.
|
HyperSpaceWalker.HyperSpaceIterator<MP> |
iterator()
Returns an iterator to traverse this hyper-space.
|
HyperSpaceSearchCriteria.SequentialSearchCriteria |
search_criteria()
Search criteria for the hyperparameter search including directives for how to search and
when to stop the search.
|
boolean |
stopEarly(Model model,
ScoringInfo[] sk)
Based on the last model, the given array of ScoringInfo, and our stopping criteria should we stop early?
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
estimateGridWork, getAllHyperParamNames
public SequentialWalker(MP params, java.lang.Object[][] hyperParams, ModelParametersBuilderFactory<MP> paramsBuilderFactory, HyperSpaceSearchCriteria.SequentialSearchCriteria searchCriteria)
public SequentialWalker(MP params, java.util.Map<java.lang.String,java.lang.Object[]> hyperParams, ModelParametersBuilderFactory<MP> paramsBuilderFactory, HyperSpaceSearchCriteria.SequentialSearchCriteria searchCriteria)
public HyperSpaceSearchCriteria.SequentialSearchCriteria search_criteria()
HyperSpaceWalker
search_criteria
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>
public java.lang.String[] getHyperParamNames()
HyperSpaceWalker
getHyperParamNames
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>
public java.lang.String[] getAllHyperParamNamesInSubspaces()
getAllHyperParamNamesInSubspaces
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>
public java.util.Map<java.lang.String,java.lang.Object[]> getHyperParams()
getHyperParams
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>
public long getMaxHyperSpaceSize()
HyperSpaceWalker
getMaxHyperSpaceSize
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>
public MP getParams()
HyperSpaceWalker
getParams
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>
public ModelParametersBuilderFactory<MP> getParametersBuilderFactory()
getParametersBuilderFactory
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>
public boolean stopEarly(Model model, ScoringInfo[] sk)
HyperSpaceWalker
stopEarly
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>
public HyperSpaceWalker.HyperSpaceIterator<MP> iterator()
HyperSpaceWalker
iterator
in interface HyperSpaceWalker<MP extends Model.Parameters,HyperSpaceSearchCriteria.SequentialSearchCriteria>