API reference
BootstrapAsymptotics.BootstrapAsymptotics — ModuleBootstrapAsymptoticsState evolution and simulation for bootstrap-related methods applied to linear and logistic regression.
Exports
BootstrapAsymptotics.BayesOpt — Typestruct BayesOpt <: BootstrapAsymptotics.AlgorithmBayes optimal estimation algorithm.
BootstrapAsymptotics.ERM — Typestruct ERM <: BootstrapAsymptotics.AlgorithmEmpirical Risk Minimization algorithm.
BootstrapAsymptotics.FullResampling — Typestruct FullResampling <: BootstrapAsymptotics.AlgorithmFull resampling algorithm.
BootstrapAsymptotics.LabelResampling — Typestruct LabelResampling <: BootstrapAsymptotics.AlgorithmLabel resampling algorithm.
BootstrapAsymptotics.Logistic — Typestruct Logistic <: BootstrapAsymptotics.ProblemLogistic regression problem with ridge penalty.
Fields
α::Float64: ratio of population over dimensionn/dλ::Float64: regularization strengthρ::Float64: teacher weight
BootstrapAsymptotics.Overlaps — Typestruct Overlaps{hat, T1<:(AbstractVector), T2<:(AbstractMatrix), T3<:(AbstractMatrix)}Overlap or hat overlap storage for state evolution between two algorithms.
Fields
m::AbstractVectorQ::AbstractMatrixV::AbstractMatrix
BootstrapAsymptotics.PairBootstrap — Typestruct PairBootstrap <: BootstrapAsymptotics.AlgorithmStandard (pair) bootstrap algorithm.
Fields
p_max::Int64: maximum weight for state evolution
BootstrapAsymptotics.ResidualBootstrap — Typestruct ResidualBootstrap <: BootstrapAsymptotics.AlgorithmResidual bootstrap algorithm, aka ERM + label resampling.
BootstrapAsymptotics.Ridge — Typestruct Ridge <: BootstrapAsymptotics.ProblemLeast squares regression problem with ridge penalty.
Fields
α::Float64: ratio of population over dimensionn/dΔ::Float64: Gaussian noise varianceλ::Float64: regularization strengthρ::Float64: teacher weight
BootstrapAsymptotics.Subsampling — Typestruct Subsampling <: BootstrapAsymptotics.AlgorithmSubsampling algorithm.
Fields
r::Float64: subsampling fraction
BootstrapAsymptotics.bias_state_evolution — Methodbias_state_evolution(
problem,
algo;
check_convergence,
kwargs...
)
BootstrapAsymptotics.bias_variance_empirical — Methodbias_variance_empirical(rng, problem, algo; n, K)
BootstrapAsymptotics.bias_variance_empirical — Methodbias_variance_empirical(rng, problem, algo; n, K)
BootstrapAsymptotics.bias_variance_empirical — Methodbias_variance_empirical(rng, problem, algo; n, K)
BootstrapAsymptotics.bias_variance_empirical — Methodbias_variance_empirical(rng, problem, algo; n, K)
BootstrapAsymptotics.bias_variance_true — Methodbias_variance_true(rng, problem; n, K, conditional)
BootstrapAsymptotics.gamp — Methodgamp(problem, X, y; max_iter, rtol)
Run generalized approximate message passing on logistic regression to recover the Bayes optimal estimator.
BootstrapAsymptotics.sample_all — Methodsample_all(rng, problem, n)
Sample X, w and y all at once for a given problem with population size n.
BootstrapAsymptotics.sample_data — Methodsample_data(rng, problem, n)
Sample the data matrix X for a given problem with population size n.
BootstrapAsymptotics.sample_labels — Methodsample_labels(rng, , X, w)
Sample the labels vector y for a given problem from the features X and weights w.
BootstrapAsymptotics.sample_weights — Methodsample_weights(rng, problem, n)
Sample the weights vector w for a given problem with population size n (from which the dimension is deduced).
BootstrapAsymptotics.state_evolution — Methodstate_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 convergencemax_iteration: maximum number of overlap updatesshow_progress: whether to display a progress bar
BootstrapAsymptotics.state_evolution_BayesOpt — Methodstate_evolution_BayesOpt(problem; rtol, max_iteration)
Special case of state evolution for the Bayes optimal estimator.
BootstrapAsymptotics.variance_state_evolution — Methodvariance_state_evolution(
problem,
algo;
check_convergence,
kwargs...
)
BootstrapAsymptotics.variance_state_evolution — Methodvariance_state_evolution(
problem,
algo;
check_convergence,
kwargs...
)
StatsAPI.fit — Functionfit([rng], problem, algorithm, X, y, [w_star])Fit an algorithm to data X, y generated by problem, with randomness source rng.