Package org.apache.spark.ml.tuning
Class ParamGridBuilder
Object
org.apache.spark.ml.tuning.ParamGridBuilder
Builder for a param grid used in grid search-based model selection.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddGrid
(BooleanParam param) Adds a boolean param with true and false.addGrid
(DoubleParam param, double[] values) Adds a double param with multiple values.addGrid
(FloatParam param, float[] values) Adds a float param with multiple values.Adds an int param with multiple values.Adds a long param with multiple values.<T> ParamGridBuilder
Adds a param with multiple values (overwrites if the input param exists).Sets the given parameters in this grid to fixed values.Sets the given parameters in this grid to fixed values.Sets the given parameters in this grid to fixed values.ParamMap[]
build()
Builds and returns all combinations of parameters specified by the param grid.
-
Constructor Details
-
ParamGridBuilder
public ParamGridBuilder()
-
-
Method Details
-
addGrid
Adds a param with multiple values (overwrites if the input param exists).- Parameters:
param
- (undocumented)values
- (undocumented)- Returns:
- (undocumented)
-
addGrid
Adds a double param with multiple values.- Parameters:
param
- (undocumented)values
- (undocumented)- Returns:
- (undocumented)
-
addGrid
Adds an int param with multiple values.- Parameters:
param
- (undocumented)values
- (undocumented)- Returns:
- (undocumented)
-
addGrid
Adds a float param with multiple values.- Parameters:
param
- (undocumented)values
- (undocumented)- Returns:
- (undocumented)
-
addGrid
Adds a long param with multiple values.- Parameters:
param
- (undocumented)values
- (undocumented)- Returns:
- (undocumented)
-
addGrid
Adds a boolean param with true and false.- Parameters:
param
- (undocumented)- Returns:
- (undocumented)
-
baseOn
Sets the given parameters in this grid to fixed values.- Parameters:
paramPairs
- (undocumented)- Returns:
- (undocumented)
-
baseOn
Sets the given parameters in this grid to fixed values.- Parameters:
paramMap
- (undocumented)- Returns:
- (undocumented)
-
baseOn
Sets the given parameters in this grid to fixed values.- Parameters:
paramPairs
- (undocumented)- Returns:
- (undocumented)
-
build
Builds and returns all combinations of parameters specified by the param grid.- Returns:
- (undocumented)
-