pub struct Forecast {
pub p_a: f64,
pub chose_a: bool,
pub random_check: bool,
pub provenance: Provenance,
}Expand description
One out-of-sample duel forecast, recorded before the answer was known.
Fields§
§p_a: f64Posterior probability the model gave to candidate A winning.
chose_a: boolWhat the user actually did.
random_check: boolTrue when the pair was drawn uniformly at random rather than by the acquisition function — the unbiased subsample.
provenance: ProvenanceHow the answer was collected. #[serde(default)] because forecasts
persist with the session and every one already on disk was a dealt
duel, which is exactly what Provenance::Duel means.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Forecast
impl<'de> Deserialize<'de> for Forecast
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 Copy for Forecast
Auto Trait Implementations§
impl Freeze for Forecast
impl RefUnwindSafe for Forecast
impl Send for Forecast
impl Sync for Forecast
impl Unpin for Forecast
impl UnsafeUnpin for Forecast
impl UnwindSafe for Forecast
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