Search in sources :

Example 1 with HyperSpaceSearchCriteria

use of hex.grid.HyperSpaceSearchCriteria in project h2o-3 by h2oai.

the class HyperSpaceSearchCriteriaV99 method fillWithDefaults.

/**
   * Fill with the default values from the corresponding Iced object.
   */
public S fillWithDefaults() {
    HyperSpaceSearchCriteria defaults = null;
    if (HyperSpaceSearchCriteria.Strategy.Cartesian == strategy) {
        defaults = new HyperSpaceSearchCriteria.CartesianSearchCriteria();
    } else if (HyperSpaceSearchCriteria.Strategy.RandomDiscrete == strategy) {
        defaults = new HyperSpaceSearchCriteria.RandomDiscreteValueSearchCriteria();
    } else {
        throw new H2OIllegalArgumentException("search_criteria.strategy", strategy.toString());
    }
    fillFromImpl((I) defaults);
    return (S) this;
}
Also used : H2OIllegalArgumentException(water.exceptions.H2OIllegalArgumentException) HyperSpaceSearchCriteria(hex.grid.HyperSpaceSearchCriteria)

Aggregations

HyperSpaceSearchCriteria (hex.grid.HyperSpaceSearchCriteria)1 H2OIllegalArgumentException (water.exceptions.H2OIllegalArgumentException)1