TAFS_Solver: T-AFS Solver

TAFS_SolverR Documentation

T-AFS Solver

Description

Terminating Adaptive Forward Stepwise (T-AFS) solver. The shrinkage parameter rho interpolates between Forward Stepwise (rho = 1) and LAR/LASSO (rho -> 0). Inherits all common methods from TSolver_Base.

Super class

TSolver_Base -> TAFS_Solver

Methods

Public methods

Inherited methods

TAFS_Solver$new()

Create a new TAFS_Solver.

Usage
TAFS_Solver$new(X, D, y, options = tsolver_options())
Arguments
X

Numeric matrix of predictors in memory, or mmap_matrix (the handle of a memory-mapped file).

D

Numeric matrix of dummies in memory, or mmap_matrix (the handle of a memory-mapped file).

y

Numeric response vector.

options

Solver options from tsolver_options; this solver reads rho_afs, the shrinkage parameter in (0, 1] (default 0.3; 1 is forward stepwise).


TAFS_Solver$clone()

The objects of this class are cloneable with this method.

Usage
TAFS_Solver$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

References

I. Zhang and R. Tibshirani, "Adaptive Forward Stepwise: A Method for High Sparsity Regression," J. Mach. Learn. Res., vol. 27, no. 35, pp. 1-24, 2026.

F. Scheidt and M. Muma, "Terminating Greedy Pursuits for High-Dimensional False Discovery Rate Control," in Proc. Eur. Signal Process. Conf. (EUSIPCO), 2026, pp. 2511-2515.

See Also

Other T-solvers: TACGP_Solver, TCDENET_Solver, TCDIENET_Solver, TCDLASSO_Solver, TCDTIKNET_Solver, TENETAug_Solver, TENET_Solver, TGP_Solver, TIENETAug_Solver, TIENET_Solver, TIKNET_Solver, TLARS_Solver, TLASSO_Solver, TMP_Solver, TNCGMP_Solver, TOMP_Solver, TOOLS_Solver, TSTAGEWISE_Solver, TSTEPWISE_Solver, tsolver_options()

Examples

set.seed(1)
n <- 20; p <- 5
X <- matrix(rnorm(n * p), n, p)
D <- matrix(rnorm(n * p), n, p)
y <- X[, 1] * 2 + rnorm(n)
solver <- TAFS_Solver$new(X, D, y, options = tsolver_options(rho_afs = 0.5))
solver$execute_step(T_stop = 3)
solver$get_beta()


TRexSelector documentation built on Nov. 20, 2026, 5:09 p.m.