pub struct DPConfig {
pub target_epsilon: f32,
pub target_delta: f32,
pub clip_norm: f32,
pub noise_multiplier: f32,
pub batch_size: usize,
pub num_examples: usize,
}Expand description
Differential privacy configuration
Fields§
§target_epsilon: f32Target epsilon (privacy budget)
target_delta: f32Target delta (failure probability)
clip_norm: f32Gradient clipping norm
noise_multiplier: f32Noise multiplier
batch_size: usizeBatch size for sampling
num_examples: usizeTotal number of training examples
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DPConfig
impl RefUnwindSafe for DPConfig
impl Send for DPConfig
impl Sync for DPConfig
impl Unpin for DPConfig
impl UnwindSafe for DPConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more