pub struct TrainingStepEvent<'a> {
pub step_index: usize,
pub reward: f32,
pub modulators: &'a NeuroModulators,
pub spike_indices: &'a [usize],
pub steps_processed: usize,
pub total_spikes: u64,
}Expand description
Borrowed telemetry for one successful network step inside a training session.
All references are valid only for the duration of
TrainingObserver::on_step. The event does not grant mutable access to
network state.
Fields§
§step_index: usize0-based index of this example in the session batch.
reward: f32Scalar reward from the crate::TrainingExample.
modulators: &'a NeuroModulatorsNeuromodulator state in effect after the step (borrowed from the network).
spike_indices: &'a [usize]Indices of neurons that spiked on this step.
steps_processed: usizeNumber of examples processed so far, including this one.
total_spikes: u64Cumulative spike count across the session, including this step.
Trait Implementations§
Source§impl<'a> Clone for TrainingStepEvent<'a>
impl<'a> Clone for TrainingStepEvent<'a>
Source§fn clone(&self) -> TrainingStepEvent<'a>
fn clone(&self) -> TrainingStepEvent<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for TrainingStepEvent<'a>
Auto Trait Implementations§
impl<'a> Freeze for TrainingStepEvent<'a>
impl<'a> RefUnwindSafe for TrainingStepEvent<'a>
impl<'a> Send for TrainingStepEvent<'a>
impl<'a> Sync for TrainingStepEvent<'a>
impl<'a> Unpin for TrainingStepEvent<'a>
impl<'a> UnsafeUnpin for TrainingStepEvent<'a>
impl<'a> UnwindSafe for TrainingStepEvent<'a>
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