#[non_exhaustive]pub struct TrajectoryReplaySummary {
pub path: String,
pub rows: usize,
pub patches: usize,
pub first_avg_err: Option<f64>,
pub last_avg_err: Option<f64>,
pub action_counts: Vec<(String, usize)>,
pub tail: Vec<TrajectoryReplayRow>,
}Available on crate feature
std only.Expand description
Offline summary of a trajectory.jsonl file (no world re-execution).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringPath of the trajectory file that was read.
rows: usizeNumber of valid trajectory rows parsed.
patches: usizeNumber of rows that record an accepted patch.
first_avg_err: Option<f64>First average error.
last_avg_err: Option<f64>Most recent average error.
action_counts: Vec<(String, usize)>Action names paired with their occurrence counts.
tail: Vec<TrajectoryReplayRow>Last N step lines (step, action, patched, avg_err) for operator view.
Trait Implementations§
Source§impl Clone for TrajectoryReplaySummary
impl Clone for TrajectoryReplaySummary
Source§impl Debug for TrajectoryReplaySummary
impl Debug for TrajectoryReplaySummary
Auto Trait Implementations§
impl Forget for TrajectoryReplaySummary
impl Freeze for TrajectoryReplaySummarywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<(String, usize)>: Freeze,
PhantomData<TrajectoryReplayRow>: Freeze,
impl Move for TrajectoryReplaySummary
impl RefUnwindSafe for TrajectoryReplaySummary
impl Send for TrajectoryReplaySummary
impl Sync for TrajectoryReplaySummary
impl Unpin for TrajectoryReplaySummary
impl UnsafeUnpin for TrajectoryReplaySummarywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<(String, usize)>: UnsafeUnpin,
PhantomData<TrajectoryReplayRow>: UnsafeUnpin,
impl UnwindSafe for TrajectoryReplaySummary
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