Skip to main content

Summary

Struct Summary 

Source
pub struct Summary {
Show 22 fields pub sv: u32, pub at: u64, pub fit: Fit, pub hash: String, pub sessions: Vec<Session>, pub fresh: BTreeMap<String, Fresh>, pub lessons: Vec<String>, pub models: Vec<String>, pub judges: Vec<String>, pub checks: Vec<Check>, pub applies: Vec<Apply>, pub pool: Pool, pub early: Early, pub signals: [Signals; 2], pub spend: [Spent; 2], pub fell_back: [u64; 3], pub experiment: Experiment, pub era: bool, pub gate: Gate, pub monitor: Monitor, pub dropped: u64, pub past: Past,
}
Expand description

The selection state of one store (module doc).

Fields§

§sv: u32

SV when written.

§at: u64

The bytes of outcomes.jsonl folded so far, and a hash chained over its lines.

§fit: Fit

The value model decisions draw from; the prior without data.

§hash: String§sessions: Vec<Session>§fresh: BTreeMap<String, Fresh>

Sessions shown lessons before they have a tick, by session id (module doc: what a session had).

§lessons: Vec<String>

Lesson ids, model-and-prompt keys and judge keys, by index.

§models: Vec<String>§judges: Vec<String>§checks: Vec<Check>§applies: Vec<Apply>§pool: Pool§early: Early§signals: [Signals; 2]§spend: [Spent; 2]§fell_back: [u64; 3]

Graded checks whose learned decision fell back to the fixed rule, per reason (FELL_BACK), with applies or none: a guard that binds often shows (top.rs Selection::fallbacks).

§experiment: Experiment

The question-count test’s checks (module doc).

§era: bool

A check of the learned policy was folded: the signals count as after.

§gate: Gate§monitor: Monitor§dropped: u64

Applies compaction dropped, and what it kept of the sessions it dropped.

§past: Past

Implementations§

Source§

impl Summary

Source

pub fn key(&self) -> String

What a fit on this summary is keyed by: the bytes folded and the line hash’s first 8 hex digits (protocol: logged with each check, Log::fit).

Source

pub fn tallies(&self, h: Option<u32>) -> [(f64, f64); 5]

Every folded session’s delivery tallies as (delivered, not), each weighted by its age in sessions under half-life h (select/policy.rs decay), the compacted ones included (Past, kept for the half-lives a fit chooses from, policy::HALF_LIVES).

Source

pub fn checked(&self) -> (u64, u64)

Sessions with graded checks, and their graded checks, the compacted ones included (Past): what spend per session divides by (top.rs).

Trait Implementations§

Source§

impl Clone for Summary

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Summary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Summary

Source§

fn default() -> Self

The prior: nothing folded, every decision the fixed rule’s.

Source§

impl<'de> Deserialize<'de> for Summary

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for Summary

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for Summary

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Summary

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.