public class ParamGridBuilder
extends Object
Constructor and Description |
---|
ParamGridBuilder() |
Modifier and Type | Method and Description |
---|---|
ParamGridBuilder |
addGrid(BooleanParam param)
Adds a boolean param with true and false.
|
ParamGridBuilder |
addGrid(DoubleParam param,
double[] values)
Adds a double param with multiple values.
|
ParamGridBuilder |
addGrid(FloatParam param,
float[] values)
Adds a float param with multiple values.
|
ParamGridBuilder |
addGrid(IntParam param,
int[] values)
Adds a int param with multiple values.
|
ParamGridBuilder |
addGrid(LongParam param,
long[] values)
Adds a long param with multiple values.
|
<T> ParamGridBuilder |
addGrid(Param<T> param,
scala.collection.Iterable<T> values)
Adds a param with multiple values (overwrites if the input param exists).
|
ParamGridBuilder |
baseOn(ParamMap paramMap)
Sets the given parameters in this grid to fixed values.
|
ParamGridBuilder |
baseOn(ParamPair<?>... paramPairs)
Sets the given parameters in this grid to fixed values.
|
ParamGridBuilder |
baseOn(scala.collection.Seq<ParamPair<?>> paramPairs)
Sets the given parameters in this grid to fixed values.
|
ParamMap[] |
build()
Builds and returns all combinations of parameters specified by the param grid.
|
public ParamGridBuilder baseOn(ParamPair<?>... paramPairs)
public ParamGridBuilder baseOn(ParamMap paramMap)
public ParamGridBuilder baseOn(scala.collection.Seq<ParamPair<?>> paramPairs)
public <T> ParamGridBuilder addGrid(Param<T> param, scala.collection.Iterable<T> values)
public ParamGridBuilder addGrid(DoubleParam param, double[] values)
public ParamGridBuilder addGrid(IntParam param, int[] values)
public ParamGridBuilder addGrid(FloatParam param, float[] values)
public ParamGridBuilder addGrid(LongParam param, long[] values)
public ParamGridBuilder addGrid(BooleanParam param)
public ParamMap[] build()