pub struct PredictionRecord {
pub request_id: String,
pub question_id: String,
pub family: String,
pub answer_kind: String,
pub engine: String,
pub p: Option<f64>,
pub value: String,
pub probabilities: BTreeMap<String, f64>,
pub answer_space: Vec<String>,
pub calibrated: bool,
}Expand description
A forecast: what a decision engine answered (as admitted by the kernel), or what a person or agent forecast.
Fields§
§request_id: String§question_id: String§family: StringCalibration bucket; defaults to the question id.
answer_kind: Stringnoul, choice, or score.
engine: StringWho forecast: the engine identity (jev@jev-1.13.0) for a model: source, otherwise
the source principal itself (human:alex). Calibration groups by it.
p: Option<f64>Noul: probability of true. Choice/score: probability of the reported value.
None when the engine reported neither a distribution nor a confidence.
value: StringChoice option id or score level index (as text); true/false for noul.
probabilities: BTreeMap<String, f64>§answer_space: Vec<String>Every value an outcome may take (true/false, option ids, or level indices).
calibrated: boolAlways false until calibration for this family is measured from outcomes.
Trait Implementations§
Source§impl Clone for PredictionRecord
impl Clone for PredictionRecord
Source§impl Debug for PredictionRecord
impl Debug for PredictionRecord
Source§impl<'de> Deserialize<'de> for PredictionRecord
impl<'de> Deserialize<'de> for PredictionRecord
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
Source§impl PartialEq for PredictionRecord
impl PartialEq for PredictionRecord
Source§impl Serialize for PredictionRecord
impl Serialize for PredictionRecord
impl StructuralPartialEq for PredictionRecord
Auto Trait Implementations§
impl Freeze for PredictionRecord
impl RefUnwindSafe for PredictionRecord
impl Send for PredictionRecord
impl Sync for PredictionRecord
impl Unpin for PredictionRecord
impl UnsafeUnpin for PredictionRecord
impl UnwindSafe for PredictionRecord
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