pub struct SimpleExample {
pub embedding: Vec<f32>,
pub quality: f32,
pub route: Option<String>,
pub context: Vec<String>,
}Expand description
Simple training example implementation
Fields§
§embedding: Vec<f32>Embedding vector
quality: f32Quality score
route: Option<String>Optional route
context: Vec<String>Context IDs
Implementations§
Trait Implementations§
Source§impl Clone for SimpleExample
impl Clone for SimpleExample
Source§fn clone(&self) -> SimpleExample
fn clone(&self) -> SimpleExample
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleExample
impl Debug for SimpleExample
Source§impl TrainingExample for SimpleExample
impl TrainingExample for SimpleExample
Source§fn activations(&self) -> Vec<f32>
fn activations(&self) -> Vec<f32>
Get activations (can be same as embedding)
Auto Trait Implementations§
impl Freeze for SimpleExample
impl RefUnwindSafe for SimpleExample
impl Send for SimpleExample
impl Sync for SimpleExample
impl Unpin for SimpleExample
impl UnwindSafe for SimpleExample
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