pub struct Look {
pub metrics: BTreeMap<String, ArmSamples>,
}Expand description
One look at an experiment: the cumulative samples of every metric so far (spec 3.5 §7.12).
§Example
use adk_eval::experiments::{Look, Sample};
let look = Look::new()
.with_metric("signups", Sample::proportion(600, 24), Sample::proportion(600, 30))
.with_metric("unsubscribes", Sample::proportion(600, 3), Sample::proportion(600, 6));
assert_eq!(look.metric("signups").unwrap().variant.units(), 600);Fields§
§metrics: BTreeMap<String, ArmSamples>Samples by metric id.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Look
impl<'de> Deserialize<'de> for Look
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 Look
Auto Trait Implementations§
impl Forget for Look
impl Freeze for Lookwhere
*const LeafNode<String, ArmSamples> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, ArmSamples)>>: Freeze,
impl Move for Look
impl RefUnwindSafe for Look
impl Send for Look
impl Sync for Look
impl Unpin for Look
impl UnsafeUnpin for Lookwhere
*const LeafNode<String, ArmSamples> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, ArmSamples)>>: UnsafeUnpin,
impl UnwindSafe for Look
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