pub struct PprResult {
pub scores: FxHashMap<FragmentId, f64>,
pub truncated: bool,
pub forward_pushes: usize,
pub backward_pushes: usize,
pub seeded: bool,
}Expand description
Public PPR result. truncated is logical-OR of forward + backward
push truncation flags. When true, downstream renormalization
(sum-to-1 across nodes) hides the fact that the iteration was cut
short by max_pushes_cap; the absolute relevance scores are
biased toward seeds and not directly comparable across instances.
We surface this to Python so calibration / final-eval rows can be
filtered in post-analysis (PolyBench / Multi-SWE-bench instances
with >20k fragments are the primary suspects).
Fields§
§scores: FxHashMap<FragmentId, f64>§truncated: bool§forward_pushes: usize§backward_pushes: usize§seeded: boolFalse when no seed mass ever entered the push (no seed matched a
graph node, or seed_weights summed to <= 0 across matched seeds).
Lets the caller tell “nothing to seed from” apart from “seeded and
converged to a genuinely empty scores map” – both produce the
same empty map and forward_pushes == 0 otherwise.
Auto Trait Implementations§
impl Freeze for PprResult
impl RefUnwindSafe for PprResult
impl Send for PprResult
impl Sync for PprResult
impl Unpin for PprResult
impl UnsafeUnpin for PprResult
impl UnwindSafe for PprResult
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
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>
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>
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