public static final class HyperSpaceSearchCriteria.RandomDiscreteValueSearchCriteria extends HyperSpaceSearchCriteria
NOTE: client ought to call set_default_stopping_tolerance_for_frame(Frame) to get a reasonable stopping tolerance, especially for small N.
HyperSpaceSearchCriteria.CartesianSearchCriteria, HyperSpaceSearchCriteria.RandomDiscreteValueSearchCriteria, HyperSpaceSearchCriteria.Strategy
_strategy
Constructor and Description |
---|
RandomDiscreteValueSearchCriteria() |
Modifier and Type | Method and Description |
---|---|
static double |
default_stopping_tolerance_for_frame(Frame frame)
Calculate a reasonable stopping tolerance for the Frame.
|
int |
max_models()
Max number of models to build.
|
double |
max_runtime_secs()
Max runtime for the entire grid, in seconds.
|
long |
seed()
Seed for the random choices of hyperparameter values.
|
void |
set_default_stopping_tolerance_for_frame(Frame frame) |
void |
set_max_models(int max_models) |
void |
set_max_runtime_secs(double max_runtime_secs) |
void |
set_seed(long seed) |
void |
set_stopping_metric(ScoreKeeper.StoppingMetric stopping_metric) |
void |
set_stopping_rounds(int stopping_rounds) |
void |
set_stopping_tolerance(double stopping_tolerance) |
ScoreKeeper.StoppingMetric |
stopping_metric()
Metric to use for convergence checking; only for _stopping_rounds > 0
|
int |
stopping_rounds()
Early stopping based on convergence of stopping_metric.
|
double |
stopping_tolerance()
Relative tolerance for metric-based stopping criterion: stop if relative improvement is not at least this much.
|
strategy
asBytes, clone, copyOver, frozenType, read, readExternal, readJSON, reloadFromBytes, toJsonString, write, writeExternal, writeJSON
public long seed()
public int max_models()
public double max_runtime_secs()
public int stopping_rounds()
public ScoreKeeper.StoppingMetric stopping_metric()
stopping_metric
in class HyperSpaceSearchCriteria
public double stopping_tolerance()
public static double default_stopping_tolerance_for_frame(Frame frame)
1/Math.sqrt(frame.naFraction() * frame.numRows())
public void set_default_stopping_tolerance_for_frame(Frame frame)
public void set_seed(long seed)
public void set_max_models(int max_models)
public void set_max_runtime_secs(double max_runtime_secs)
public void set_stopping_rounds(int stopping_rounds)
public void set_stopping_metric(ScoreKeeper.StoppingMetric stopping_metric)
public void set_stopping_tolerance(double stopping_tolerance)