pub struct SolverState<'a, F: Float, K: Permutable<F>> { /* private fields */ }
Expand description

Current state of the SMO solver

We are solving the dual problem with linear constraints min_a f(a), s.t. y^Ta = d, 0 <= a_t < C, t = 1, …, l where f(a) = a^T Q a / 2 + p^T a

Implementations

Initialize a solver state

This is bounded by the lifetime of the kernel matrix, because it can quite large

Return number of active variables

Return number of total variables

Return target as positive/negative indicator

Return the k-th bound

Swap two variables

Return max and min gradients of free variables

Select optimal working set

In each optimization step two variables are selected and then optimized. The indices are selected such that:

  • i: maximizes -y_i * grad(f)_i, i in I_up(\alpha)
  • j: minimizes the decrease of the objective value

Select optimal working set

In each optimization step two variables are selected and then optimized. The indices are selected such that:

  • i: maximizes -y_i * grad(f)_i, i in I_up(\alpha)
  • j: minimizes the decrease of the objective value

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.