Enum Pairing
pub enum Pairing {
Paired,
Independent,
}Expand description
How a replicate’s seed depends on the trial it belongs to.
Variants§
Paired
Common random numbers: replicate j uses the same seed in every trial, so two configurations are compared under identical randomness.
This is the cheap-to-offer variance reduction the RL protocol calls out. The seed does not depend on the trial number.
Independent
Every replicate of every trial draws a fresh seed: the trial number is folded into the derivation as well.
Trait Implementations§
impl Copy for Pairing
§impl<'de> Deserialize<'de> for Pairing
impl<'de> Deserialize<'de> for Pairing
§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 Eq for Pairing
impl StructuralPartialEq for Pairing
Auto Trait Implementations§
impl Freeze for Pairing
impl RefUnwindSafe for Pairing
impl Send for Pairing
impl Sync for Pairing
impl Unpin for Pairing
impl UnsafeUnpin for Pairing
impl UnwindSafe for Pairing
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