API reference

BootstrapAsymptotics.LogisticType
struct Logistic <: BootstrapAsymptotics.Problem

Logistic regression problem with ridge penalty.

Fields

  • α::Float64: ratio of population over dimension n/d

  • λ::Float64: regularization strength

  • ρ::Float64: teacher weight

source
BootstrapAsymptotics.OverlapsType
struct Overlaps{hat, T1<:(AbstractVector), T2<:(AbstractMatrix), T3<:(AbstractMatrix)}

Overlap or hat overlap storage for state evolution between two algorithms.

Fields

  • m::AbstractVector

  • Q::AbstractMatrix

  • V::AbstractMatrix

source
BootstrapAsymptotics.RidgeType
struct Ridge <: BootstrapAsymptotics.Problem

Least squares regression problem with ridge penalty.

Fields

  • α::Float64: ratio of population over dimension n/d

  • Δ::Float64: Gaussian noise variance

  • λ::Float64: regularization strength

  • ρ::Float64: teacher weight

source
BootstrapAsymptotics.gampMethod
gamp(problem, X, y; max_iter, rtol)

Run generalized approximate message passing on logistic regression to recover the Bayes optimal estimator.

source
BootstrapAsymptotics.state_evolutionMethod
state_evolution(
    problem,
    algo1,
    algo2;
    rtol,
    max_iteration,
    show_progress
)

Peform state evolution on a problem for the couple (algorithm1, algorithm2), by creating and then iteratively updating overlaps and hat overlaps.

Keyword arguments

  • rtol: relative tolerance used at every step of the procedure, especially to check overlap convergence
  • max_iteration: maximum number of overlap updates
  • show_progress: whether to display a progress bar
source
StatsAPI.fitFunction
fit([rng], problem, algorithm, X, y, [w_star])

Fit an algorithm to data X, y generated by problem, with randomness source rng.

source