public final class HyperParams extends Object
Modifier and Type | Method and Description |
---|---|
static HyperParamValues<Double> |
around(double value,
double step) |
static HyperParamValues<Integer> |
around(int value,
int step) |
static List<List<?>> |
chooseHyperParameterCombos(List<HyperParamValues<?>> ranges,
String hyperParamSearch,
int howMany) |
static HyperParamValues<Double> |
fixed(double fixedValue) |
static HyperParamValues<Integer> |
fixed(int fixedValue) |
static HyperParamValues<?> |
fromConfig(com.typesafe.config.Config config,
String key) |
static HyperParamValues<Double> |
range(double min,
double max) |
static HyperParamValues<Integer> |
range(int min,
int max) |
static <T> HyperParamValues<T> |
unorderedFromValues(Collection<T> values) |
public static HyperParamValues<Double> fixed(double fixedValue)
public static HyperParamValues<Double> range(double min, double max)
public static HyperParamValues<Double> around(double value, double step)
public static HyperParamValues<Integer> fixed(int fixedValue)
public static HyperParamValues<Integer> range(int min, int max)
public static HyperParamValues<Integer> around(int value, int step)
public static <T> HyperParamValues<T> unorderedFromValues(Collection<T> values)
public static HyperParamValues<?> fromConfig(com.typesafe.config.Config config, String key)
config
- application configurationkey
- config key to accessHyperParamValues
appropriate to the value. If an int
or
double
, returns fixed(int)
or fixed(double)
respectively.
If a List<int>
or List<double>
, returns range(int,int)
or
range(double,double)
respectively.public static List<List<?>> chooseHyperParameterCombos(List<HyperParamValues<?>> ranges, String hyperParamSearch, int howMany)
Copyright © 2014–2018. All rights reserved.