Trait EventStore
pub trait EventStore: Send {
// Required methods
fn add_event(&mut self, event: Event, split: Split);
fn find_epoch(
&mut self,
name: &str,
aggregate: Aggregate,
direction: Direction,
split: &Split,
) -> Option<usize>;
fn find_metric(
&mut self,
name: &str,
epoch: usize,
aggregate: Aggregate,
split: &Split,
) -> Option<f64>;
}Expand description
Defines how training and validation events are collected and searched.
This trait also exposes methods that uses the collected data to compute useful information.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".