pub struct DecompositionSolver { /* private fields */ }Expand description
Decomposition-based SVM solver
Implementations§
Source§impl DecompositionSolver
impl DecompositionSolver
Sourcepub fn new(kernel: Box<dyn Kernel>, config: DecompositionConfig) -> Self
pub fn new(kernel: Box<dyn Kernel>, config: DecompositionConfig) -> Self
Create a new decomposition solver
Sourcepub fn solve(
&mut self,
x: &Array2<Float>,
y: &Array1<Float>,
c: Float,
initial_alpha: Option<&Array1<Float>>,
) -> Result<(Array1<Float>, Float)>
pub fn solve( &mut self, x: &Array2<Float>, y: &Array1<Float>, c: Float, initial_alpha: Option<&Array1<Float>>, ) -> Result<(Array1<Float>, Float)>
Solve the SVM problem using decomposition
Sourcepub fn get_convergence_history(&self) -> &[Float] ⓘ
pub fn get_convergence_history(&self) -> &[Float] ⓘ
Get convergence statistics
Sourcepub fn get_active_working_sets(&self) -> usize
pub fn get_active_working_sets(&self) -> usize
Get number of active working sets
Auto Trait Implementations§
impl !RefUnwindSafe for DecompositionSolver
impl !UnwindSafe for DecompositionSolver
impl Freeze for DecompositionSolver
impl Send for DecompositionSolver
impl Sync for DecompositionSolver
impl Unpin for DecompositionSolver
impl UnsafeUnpin for DecompositionSolver
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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