Enum Policy
#[non_exhaustive]pub enum Policy {
Mabc(Mabc),
PbtLite(PbtLite),
}Expand description
Which in-loop policy an crate::online::OnlineTuner runs. Constructed from
a Mabc or a PbtLite via crate::online::OnlineTunerBuilder::policy
(both impl Into<Policy>).
This enum may gain variants; downstream matches must handle unknown variants.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Mabc(Mabc)
The clustered sliding-window UCB bandit.
PbtLite(PbtLite)
The deterministic scalar-perturbation policy.
Trait Implementations§
impl Copy for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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