pub struct Model {
pub beta: Vec<f64>,
pub chol: Vec<f64>,
pub sd: Vec<f64>,
pub spread: [f64; 3],
pub sessions: BTreeMap<String, (f64, f64)>,
pub lessons: BTreeMap<String, (f64, f64)>,
pub judges: BTreeMap<String, (f64, f64)>,
pub judge: String,
pub converged: bool,
}Expand description
The fitted value model (module doc): its MAP and draws’ ingredients.
Fields§
§beta: Vec<f64>The coefficients (NAMES) and the lower Cholesky factor of their marginal covariance (P×P,
row-major).
chol: Vec<f64>§sd: Vec<f64>The prior sd of each coefficient the fit ended with (ARD’s learned).
spread: [f64; 3]The spread of the session, lesson and judge effects.
sessions: BTreeMap<String, (f64, f64)>Each level’s effect, (mean, marginal sd).
lessons: BTreeMap<String, (f64, f64)>§judges: BTreeMap<String, (f64, f64)>§judge: StringThe judge of the newest labelled check: the one that will judge the next.
converged: boolImplementations§
Source§impl Model
impl Model
Sourcepub fn current(&self) -> bool
pub fn current(&self) -> bool
Whether the model has this build’s layout (P coefficients). A cache written by a build with
another layout holds one that is not: its Cholesky rows would be read at the wrong places, so
decisions and the ledger take it for no model (the fixed rule) until the next fit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Model
impl<'de> Deserialize<'de> for Model
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
impl StructuralPartialEq for Model
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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