Struct PbtReport
pub struct PbtReport {
pub members: Vec<Member>,
pub best_number: u64,
pub best_progress: f64,
pub best_lr: f64,
pub forks: usize,
pub max_depth: u32,
pub discovered_schedule: Vec<f64>,
}Expand description
The result of a PBT run over the schedule problem.
Fields§
§members: Vec<Member>Every trial, in trial-number order.
best_number: u64The best trial’s number (highest accumulated reward).
best_progress: f64The best accumulated reward reached — PBT’s headline result.
best_lr: f64The best trial’s learning rate.
forks: usizeHow many trials were forks (exploit-and-explore children).
max_depth: u32The deepest lineage reached (in segments).
discovered_schedule: Vec<f64>The learning-rate schedule PBT discovered: the lr each ancestor of
the winning trial used, root segment first. Its length is the winner’s
depth.
Implementations§
§impl PbtReport
impl PbtReport
pub fn winning_chain(&self) -> Vec<u64>
pub fn winning_chain(&self) -> Vec<u64>
The winning lineage’s chain of trial numbers, root first.
Trait Implementations§
impl StructuralPartialEq for PbtReport
Auto Trait Implementations§
impl Freeze for PbtReport
impl RefUnwindSafe for PbtReport
impl Send for PbtReport
impl Sync for PbtReport
impl Unpin for PbtReport
impl UnsafeUnpin for PbtReport
impl UnwindSafe for PbtReport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, U> Imply<T> for U
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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