pub trait FactoryTrainingExample {
// Required methods
fn embedding(&self) -> Vec<f32>;
fn quality(&self) -> f32;
// Provided methods
fn activations(&self) -> Vec<f32> { ... }
fn attention(&self) -> Vec<f32> { ... }
fn reward(&self) -> f32 { ... }
fn route(&self) -> Option<String> { ... }
fn context(&self) -> Vec<String> { ... }
}Expand description
Trait for training examples
Required Methods§
Provided Methods§
Sourcefn activations(&self) -> Vec<f32>
fn activations(&self) -> Vec<f32>
Get activations (can be same as embedding)