public static interface HyperSpaceWalker.HyperSpaceIterator<MP extends Model.Parameters>
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getCurrentRawParameters()
Returns current "raw" state of iterator.
|
boolean |
hasNext(Model previousModel)
Returns true if the iterator can continue.
|
int |
max_models() |
double |
max_runtime_secs() |
void |
modelFailed(Model failedModel)
Inform the Iterator that a model build failed in case it needs to adjust its internal state.
|
MP |
nextModelParameters(Model previousModel)
Get next model parameters.
|
void |
reset() |
double |
time_remaining_secs() |
MP nextModelParameters(Model previousModel)
It should return model parameters for next point in hyper space.
Throws NoSuchElementException
if there is no remaining point in space
to explore.
The method can optimize based on previousModel, but should be able to handle null-value.
previousModel
- model generated for the previous point in hyper space, can be null.java.lang.IllegalArgumentException
- when model parameters cannot be constructedjava.util.NoSuchElementException
- if the iteration has no more elementsboolean hasNext(Model previousModel)
previousModel
- optional parameter which helps to determine next step, can be nullvoid reset()
double max_runtime_secs()
int max_models()
double time_remaining_secs()
void modelFailed(Model failedModel)
failedModel
- java.lang.Object[] getCurrentRawParameters()