Shrinkage

shrinkage::DualCertificate

Shrinkage for Rust · rust · 0.3.0

pub struct DualCertificate

Original-problem certificate on the observation scale.

Inherent implementation

impl DualCertificate

dual_objective

pub fn dual_objective(&self) -> f64

Dual objective D(theta) for the original, complete problem.

dual_vector

pub fn dual_vector(&self) -> &[f64]

Feasible observation-scale dual vector theta, in training-row order.

duality_gap

pub fn duality_gap(&self) -> f64

Conservatively padded G(beta_0, beta, theta) on the averaged-loss scale.

radius

pub fn radius(&self) -> f64

Euclidean radius containing the optimal observation-scale dual vector.

Implementation of Clone

impl Clone for DualCertificate

clone

fn clone(&self) -> Self

Implementation of Debug

impl Debug for DualCertificate

fmt

fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result

Implementation of Freeze

impl Freeze for DualCertificate

Implementation of RefUnwindSafe

impl RefUnwindSafe for DualCertificate

Implementation of Send

impl Send for DualCertificate

Implementation of Sync

impl Sync for DualCertificate

Implementation of Unpin

impl Unpin for DualCertificate

Implementation of UnsafeUnpin

impl UnsafeUnpin for DualCertificate

Implementation of UnwindSafe

impl UnwindSafe for DualCertificate

Implementation of Any

impl<T> Any for T where T: 'static + ?Sized

Implementation of Borrow

impl<T> Borrow<T> for T where T: ?Sized

Implementation of BorrowMut

impl<T> BorrowMut<T> for T where T: ?Sized

Implementation of ByRef

impl<T> ByRef<T> for T

Implementation of CastableFrom

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT where ST: ?Sized, DT: ?Sized

Implementation of CastableFrom

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT where ST: ?Sized, DT: ?Sized

Implementation of CloneToUninit

impl<T> CloneToUninit for T where T: Clone

Implementation of From

impl<T> From<T> for T

Implementation of Imply

impl<T, U> Imply<T> for U where T: ?Sized, U: ?Sized

Implementation of Into

impl<T, U> Into<U> for T where U: From<T>

Implementation of IntoEither

impl<T> IntoEither for T

Implementation of Pointable

impl<T> Pointable for T

Implementation of Read

impl<T> Read<Exclusive, BecauseExclusive> for T where T: ?Sized

Implementation of Same

impl<T> Same for T

Implementation of SupersetOf

impl<SS, SP> SupersetOf<SS> for SP where SS: SubsetOf<SP>

Implementation of ToOwned

impl<T> ToOwned for T where T: Clone

Implementation of TryFrom

impl<T, U> TryFrom<U> for T where U: Into<T>

Implementation of TryInto

impl<T, U> TryInto<U> for T where U: TryFrom<T>