TSTAGEWISE_Solver: T-Stagewise Solver

TSTAGEWISE_SolverR Documentation

T-Stagewise Solver

Description

Terminating Stagewise Regression solver. Inherits all common methods from TSolver_Base.

Super class

TSolver_Base -> TSTAGEWISE_Solver

Methods

Public methods

Inherited methods

TSTAGEWISE_Solver$new()

Create a new TSTAGEWISE_Solver.

Usage
TSTAGEWISE_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 (default: tsolver_options()).


TSTAGEWISE_Solver$get_num_removals()

Get the number of coefficient removals.

Usage
TSTAGEWISE_Solver$get_num_removals()
Returns

Integer count of removals.


TSTAGEWISE_Solver$get_cycling_ratio()

Get the cycling ratio (removals / total steps).

Usage
TSTAGEWISE_Solver$get_cycling_ratio()
Returns

Scalar numeric cycling ratio.


TSTAGEWISE_Solver$get_lambda()

Get the regularization (lambda) path.

Usage
TSTAGEWISE_Solver$get_lambda()
Returns

Numeric vector of lambda values, one per step.


TSTAGEWISE_Solver$clone()

The objects of this class are cloneable with this method.

Usage
TSTAGEWISE_Solver$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

References

B. Efron, T. Hastie, I. Johnstone, and R. Tibshirani, "Least Angle Regression," Ann. Statist., vol. 32, no. 2, pp. 407-499, 2004.

T. Hastie, J. Taylor, R. Tibshirani, and G. Walther, "Forward Stagewise Regression and the Monotone Lasso," Electron. J. Stat., vol. 1, pp. 1-29, 2007, doi: 10.1214/07-EJS004.

R. J. Tibshirani, "A General Framework for Fast Stagewise Algorithms," J. Mach. Learn. Res., vol. 16, no. 78, pp. 2543-2588, 2015.

J. Machkour, M. Muma, and D. P. Palomar, "The Terminating-Random Experiments Selector: Fast High-Dimensional Variable Selection with False Discovery Rate Control," Signal Process., vol. 231, Art. no. 109894, 2025, doi: 10.1016/j.sigpro.2025.109894.

See Also

Other T-solvers: TACGP_Solver, TAFS_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, 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 <- TSTAGEWISE_Solver$new(X, D, y)
solver$execute_step(T_stop = 3)
solver$get_beta()


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