pub struct HalvingGridSearchConfig {
pub estimator_name: String,
pub param_distributions: ParameterDistributions,
pub n_candidates: usize,
pub cv: Box<dyn CrossValidator>,
pub scoring: Scoring,
pub factor: f64,
pub resource: String,
pub max_resource: Option<usize>,
pub min_resource: Option<usize>,
pub aggressive_elimination: bool,
pub random_state: Option<u64>,
}Expand description
Configuration for HalvingGridSearch
Fields§
§estimator_name: StringEstimator to use for the search
param_distributions: ParameterDistributionsParameter distributions to search
n_candidates: usizeNumber of candidates to start with
cv: Box<dyn CrossValidator>Cross-validation strategy
scoring: ScoringScoring function
factor: f64Reduction factor for successive halving
resource: StringResource parameter (e.g., number of samples)
max_resource: Option<usize>Maximum resource to use
min_resource: Option<usize>Minimum resource to use
aggressive_elimination: boolAggressive elimination in early rounds
random_state: Option<u64>Random state for reproducibility
Auto Trait Implementations§
impl Freeze for HalvingGridSearchConfig
impl !RefUnwindSafe for HalvingGridSearchConfig
impl Send for HalvingGridSearchConfig
impl Sync for HalvingGridSearchConfig
impl Unpin for HalvingGridSearchConfig
impl !UnwindSafe for HalvingGridSearchConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more