adelie.adelie_core.state.StateBVLS32#

class adelie.adelie_core.state.StateBVLS32#

Core state class for BVLS.

Methods

__init__(*args, **kwargs)

Overloaded function.

solve(self)

Solves the state-specific problem.

Attributes

active_set

Active set buffer.

active_set_size

Active set size.

benchmark_fit_active

Benchmark time for fitting on the active set.

benchmark_fit_screen

Benchmark time for fitting on the screen set.

benchmark_gradient

Benchmark time for computing the gradient.

benchmark_viols_sort

Benchmark time for sorting the violations.

beta

Coefficient vector.

dbg_active_set

List of the active sets at each outer loop.

dbg_beta

List of the coefficient vectors at each outer loop.

dbg_iter

List of the number of iterations at each outer loop.

dbg_loss

List of the losses at each outer loop.

grad

Internal buffer that is implementation-defined.

is_active

Boolean buffer to indicate the active variables.

is_screen

Boolean buffer to indicate the screen variables.

iters

Number of coordinate descent iterations.

loss

Loss \(\frac{1}{2} \|y-X\beta\|_W^2\).

resid

Residual \(y - X \beta\).

screen_set

Screen set buffer.

screen_set_size

Screen set size.

__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: adelie.adelie_core.state.StateBVLS32, X: adelie.adelie_core.matrix.MatrixNaiveBase32, y_var: float, X_vars: numpy.ndarray[numpy.float32[1, n]], lower: numpy.ndarray[numpy.float32[1, n]], upper: numpy.ndarray[numpy.float32[1, n]], weights: numpy.ndarray[numpy.float32[1, n]], kappa: int, max_iters: int, tol: float, screen_set_size: int, screen_set: numpy.ndarray[numpy.int64[1, n], flags.writeable], is_screen: numpy.ndarray[bool[1, n], flags.writeable], active_set_size: int, active_set: numpy.ndarray[numpy.int64[1, n], flags.writeable], is_active: numpy.ndarray[bool[1, n], flags.writeable], beta: numpy.ndarray[numpy.float32[1, n], flags.writeable], resid: numpy.ndarray[numpy.float32[1, n], flags.writeable], grad: numpy.ndarray[numpy.float32[1, n], flags.writeable], loss: float) -> None

  2. __init__(self: adelie.adelie_core.state.StateBVLS32, arg0: adelie.adelie_core.state.StateBVLS32) -> None

solve(self: adelie.adelie_core.state.StateBVLS32) dict#

Solves the state-specific problem.

active_set#

Active set buffer.

active_set_size#

Active set size.

benchmark_fit_active#

Benchmark time for fitting on the active set.

benchmark_fit_screen#

Benchmark time for fitting on the screen set.

benchmark_gradient#

Benchmark time for computing the gradient.

benchmark_viols_sort#

Benchmark time for sorting the violations.

beta#

Coefficient vector.

dbg_active_set#

List of the active sets at each outer loop.

dbg_beta#

List of the coefficient vectors at each outer loop.

dbg_iter#

List of the number of iterations at each outer loop.

dbg_loss#

List of the losses at each outer loop.

grad#

Internal buffer that is implementation-defined.

is_active#

Boolean buffer to indicate the active variables.

is_screen#

Boolean buffer to indicate the screen variables.

iters#

Number of coordinate descent iterations.

loss#

Loss \(\frac{1}{2} \|y-X\beta\|_W^2\).

resid#

Residual \(y - X \beta\).

screen_set#

Screen set buffer.

screen_set_size#

Screen set size.