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 an 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)
paramPairs
- (undocumented)public ParamGridBuilder baseOn(ParamMap paramMap)
paramMap
- (undocumented)public ParamGridBuilder baseOn(scala.collection.Seq<ParamPair<?>> paramPairs)
paramPairs
- (undocumented)public <T> ParamGridBuilder addGrid(Param<T> param, scala.collection.Iterable<T> values)
param
- (undocumented)values
- (undocumented)public ParamGridBuilder addGrid(DoubleParam param, double[] values)
param
- (undocumented)values
- (undocumented)public ParamGridBuilder addGrid(IntParam param, int[] values)
param
- (undocumented)values
- (undocumented)public ParamGridBuilder addGrid(FloatParam param, float[] values)
param
- (undocumented)values
- (undocumented)public ParamGridBuilder addGrid(LongParam param, long[] values)
param
- (undocumented)values
- (undocumented)public ParamGridBuilder addGrid(BooleanParam param)
param
- (undocumented)public ParamMap[] build()