pub struct GraphsView {
pub train_loss: Vec<(f64, f64)>,
pub val_loss: Vec<(f64, f64)>,
pub train_acc: Vec<(f64, f64)>,
pub val_acc: Vec<(f64, f64)>,
pub learning_rate: Vec<(f64, f64)>,
pub active_chart: ChartType,
pub x_bounds: [f64; 2],
pub loss_bounds: [f64; 2],
pub acc_bounds: [f64; 2],
}Expand description
Graphs view state for training visualization
Fields§
§train_loss: Vec<(f64, f64)>Training loss data
val_loss: Vec<(f64, f64)>Validation loss data
train_acc: Vec<(f64, f64)>Training accuracy data
val_acc: Vec<(f64, f64)>Validation accuracy data
learning_rate: Vec<(f64, f64)>Learning rate schedule
active_chart: ChartTypeCurrently selected chart
x_bounds: [f64; 2]X-axis bounds
loss_bounds: [f64; 2]Y-axis bounds for loss
acc_bounds: [f64; 2]Y-axis bounds for accuracy
Implementations§
Source§impl GraphsView
impl GraphsView
Sourcepub fn load_demo_data(&mut self)
pub fn load_demo_data(&mut self)
Load demo training data for visualization
Sourcepub fn next_chart(&mut self)
pub fn next_chart(&mut self)
Switch to next chart type
Sourcepub fn prev_chart(&mut self)
pub fn prev_chart(&mut self)
Switch to previous chart type
Sourcepub fn toggle_zoom(&mut self)
pub fn toggle_zoom(&mut self)
Toggle zoom mode (placeholder for future enhancement)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphsView
impl RefUnwindSafe for GraphsView
impl Send for GraphsView
impl Sync for GraphsView
impl Unpin for GraphsView
impl UnwindSafe for GraphsView
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