pub struct SampleComplexity {
pub eps: f64,
pub delta: f64,
pub vc_dim: usize,
}Expand description
Sample complexity for PAC learning (Blumer et al. / Vapnik-Chervonenkis bound).
Returns m = ceil((d * ln(d/eps + 1) + ln(2/delta)) / eps) samples.
Here vc_dim is the VC dimension d of the hypothesis class.
Fields§
§eps: f64Accuracy parameter ε ∈ (0,1).
delta: f64Confidence parameter δ ∈ (0,1).
vc_dim: usizeVC dimension d of the hypothesis class.
Implementations§
Auto Trait Implementations§
impl Freeze for SampleComplexity
impl RefUnwindSafe for SampleComplexity
impl Send for SampleComplexity
impl Sync for SampleComplexity
impl Unpin for SampleComplexity
impl UnsafeUnpin for SampleComplexity
impl UnwindSafe for SampleComplexity
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