pub struct GroundingDecomposition {
pub grounded: Vec<f32>,
pub hallucinated: Vec<f32>,
pub grounding_ratio: f32,
pub hallucination_ratio: f32,
}Expand description
Result of decomposing a vector into grounded and hallucinated components.
Fields§
§grounded: Vec<f32>Component supported by evidence (G·x)
hallucinated: Vec<f32>Component orthogonal to evidence ((I-G)·x)
grounding_ratio: f32‖G·x‖ / ‖x‖ — fraction of signal grounded in evidence
hallucination_ratio: f32‖(I-G)·x‖ / ‖x‖ — fraction of signal that is hallucination
Trait Implementations§
Source§impl Clone for GroundingDecomposition
impl Clone for GroundingDecomposition
Source§fn clone(&self) -> GroundingDecomposition
fn clone(&self) -> GroundingDecomposition
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 moreAuto Trait Implementations§
impl Freeze for GroundingDecomposition
impl RefUnwindSafe for GroundingDecomposition
impl Send for GroundingDecomposition
impl Sync for GroundingDecomposition
impl Unpin for GroundingDecomposition
impl UnsafeUnpin for GroundingDecomposition
impl UnwindSafe for GroundingDecomposition
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