pub struct Builder { /* private fields */ }
Expand description
A builder for CategoricalParameterRange
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the categorical hyperparameter to tune.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the categorical hyperparameter to tune.
sourcepub fn values(self, input: impl Into<String>) -> Self
pub fn values(self, input: impl Into<String>) -> Self
Appends an item to values
.
To override the contents of this collection use set_values
.
A list of the categories for the hyperparameter.
sourcepub fn set_values(self, input: Option<Vec<String>>) -> Self
pub fn set_values(self, input: Option<Vec<String>>) -> Self
A list of the categories for the hyperparameter.
sourcepub fn build(self) -> CategoricalParameterRange
pub fn build(self) -> CategoricalParameterRange
Consumes the builder and constructs a CategoricalParameterRange
.