pub struct PopulationBasedTrainingCV<E, X, Y> { /* private fields */ }Expand description
Population-based Training with cross-validation
Implementations§
Source§impl<E, X, Y> PopulationBasedTrainingCV<E, X, Y>
impl<E, X, Y> PopulationBasedTrainingCV<E, X, Y>
Sourcepub fn new(
base_estimator: E,
config: PBTConfig,
parameter_space: PBTParameterSpace,
config_fn: PBTConfigFn<E>,
) -> Self
pub fn new( base_estimator: E, config: PBTConfig, parameter_space: PBTParameterSpace, config_fn: PBTConfigFn<E>, ) -> Self
Create a new PBT with cross-validation
Sourcepub fn cv<CV>(self, cv: CV) -> Selfwhere
CV: CrossValidator + 'static,
pub fn cv<CV>(self, cv: CV) -> Selfwhere
CV: CrossValidator + 'static,
Set cross-validation strategy
Source§impl<E> PopulationBasedTrainingCV<E, Array2<f64>, Array1<f64>>where
E: Clone + Debug + Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>> + Score<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>>,
E::Fitted: Clone + Debug + Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>> + Score<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>>,
impl<E> PopulationBasedTrainingCV<E, Array2<f64>, Array1<f64>>where
E: Clone + Debug + Fit<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>> + Score<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>>,
E::Fitted: Clone + Debug + Predict<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>> + Score<ArrayBase<OwnedRepr<f64>, Dim<[usize; 2]>, f64>, ArrayBase<OwnedRepr<f64>, Dim<[usize; 1]>, f64>>,
Auto Trait Implementations§
impl<E, X, Y> Freeze for PopulationBasedTrainingCV<E, X, Y>where
E: Freeze,
impl<E, X, Y> !RefUnwindSafe for PopulationBasedTrainingCV<E, X, Y>
impl<E, X, Y> !Send for PopulationBasedTrainingCV<E, X, Y>
impl<E, X, Y> !Sync for PopulationBasedTrainingCV<E, X, Y>
impl<E, X, Y> Unpin for PopulationBasedTrainingCV<E, X, Y>
impl<E, X, Y> UnsafeUnpin for PopulationBasedTrainingCV<E, X, Y>where
E: UnsafeUnpin,
impl<E, X, Y> !UnwindSafe for PopulationBasedTrainingCV<E, X, Y>
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