Struct Choice
pub struct Choice<'choices> { /* private fields */ }Expand description
The set of hyperparameter choices OnlineTuner::suggest produced this
round — one value per cluster, borrowed from the tuner (no allocation).
Read a value by cluster name with get or by declaration
index with value_at. The borrow is released as soon as
the choices are copied out, which is why the loop pattern extracts the f64s
it needs before calling observe.
Implementations§
Trait Implementations§
impl<'choices> Copy for Choice<'choices>
§impl<'choices> IntoIterator for &Choice<'choices>
impl<'choices> IntoIterator for &Choice<'choices>
§fn into_iter(self) -> Self::IntoIter
fn into_iter(self) -> Self::IntoIter
Iterates (cluster name, chosen value) in declaration order, as
Choice::iter.
Auto Trait Implementations§
impl<'choices> Freeze for Choice<'choices>
impl<'choices> RefUnwindSafe for Choice<'choices>
impl<'choices> Send for Choice<'choices>
impl<'choices> Sync for Choice<'choices>
impl<'choices> Unpin for Choice<'choices>
impl<'choices> UnsafeUnpin for Choice<'choices>
impl<'choices> UnwindSafe for Choice<'choices>
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