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 SummaryConstructors
- 
Method SummaryModifier 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> ParamGridBuilderAdds 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- 
ParamGridBuilderpublic ParamGridBuilder()
 
- 
- 
Method Details- 
addGridAdds a param with multiple values (overwrites if the input param exists).- Parameters:
- param- (undocumented)
- values- (undocumented)
- Returns:
- (undocumented)
 
- 
addGridAdds a double param with multiple values.- Parameters:
- param- (undocumented)
- values- (undocumented)
- Returns:
- (undocumented)
 
- 
addGridAdds an int param with multiple values.- Parameters:
- param- (undocumented)
- values- (undocumented)
- Returns:
- (undocumented)
 
- 
addGridAdds a float param with multiple values.- Parameters:
- param- (undocumented)
- values- (undocumented)
- Returns:
- (undocumented)
 
- 
addGridAdds a long param with multiple values.- Parameters:
- param- (undocumented)
- values- (undocumented)
- Returns:
- (undocumented)
 
- 
addGridAdds a boolean param with true and false.- Parameters:
- param- (undocumented)
- Returns:
- (undocumented)
 
- 
baseOnSets the given parameters in this grid to fixed values.- Parameters:
- paramPairs- (undocumented)
- Returns:
- (undocumented)
 
- 
baseOnSets the given parameters in this grid to fixed values.- Parameters:
- paramMap- (undocumented)
- Returns:
- (undocumented)
 
- 
baseOnSets the given parameters in this grid to fixed values.- Parameters:
- paramPairs- (undocumented)
- Returns:
- (undocumented)
 
- 
buildBuilds and returns all combinations of parameters specified by the param grid.- Returns:
- (undocumented)
 
 
-