pub struct PositionPatchResult {
pub position: usize,
pub clean_token: String,
pub corrupted_token: String,
pub logprob_clean: f64,
pub logprob_corrupted: f64,
pub patch_effect: f64,
pub normalised_effect: f64,
}Expand description
Per-position result of an activation patch experiment.
Fields§
§position: usizeToken position that was patched.
clean_token: StringThe token string at this position in the clean prompt.
corrupted_token: StringThe token string at this position in the corrupted prompt.
logprob_clean: f64Log-probability of the target token in the clean run.
logprob_corrupted: f64Log-probability of the target token in the corrupted run.
patch_effect: f64Estimated patch effect: logprob_clean - logprob_corrupted.
Positive → this position’s clean activation helps produce the target.
normalised_effect: f64Normalised patch effect (fraction of total recovery budget, 0–1).
Trait Implementations§
Source§impl Clone for PositionPatchResult
impl Clone for PositionPatchResult
Source§impl Debug for PositionPatchResult
impl Debug for PositionPatchResult
Source§impl<'de> Deserialize<'de> for PositionPatchResult
impl<'de> Deserialize<'de> for PositionPatchResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PositionPatchResult
impl RefUnwindSafe for PositionPatchResult
impl Send for PositionPatchResult
impl Sync for PositionPatchResult
impl Unpin for PositionPatchResult
impl UnsafeUnpin for PositionPatchResult
impl UnwindSafe for PositionPatchResult
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more